Blurring of image in resizing
Hello everyone I am doing project on video watermarking where i have to resize given watermark several times from arbitrary values say 81x81 to 84x84 to 78x78. I have used resize function each time but watermark is getting blurred and looking bad. How to resize it without getting blurred? Thanks in advance!!!
Can you please share your code on how you are doing it? How else can we decide what is wrong?
I was resizing as resize(imcap,imcap,Size(81,81),0,0,1); dst and input image names were same so I was getting blured image but now by different dst, problem is resolved..
Indeed, most geometric applications change the source image in order to achieve their desired output. Therefore it is always suggested to use a deep clone of the input image to avoid this. For example:
This will ensure that you do not adapt the original data! Reason that this is happening is the use of smart pointers all pointing to the same data location!