I am working on one project and for that i need to scale up image.
I have tried re size function of OpenCv library for re sizing.But image quality is decreased.
Suppose i have image of 136x136 size and i want to re size it to 209x209 with same quality.How can i do it?
As suggested in the comments, there is no way to increase the size of your image and generate new information between the pixels. All resizing methods involve some kind of interpolation between the original information.
If you look at the OpenCV documentation for the resize function you will see these options:
You may find that INTER_CUBIC or INTER_LANCZOS4 produce an image with higher "quality".
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With