-2

I have a very specific problem. I have 2 image sets of the same photos watermarked. One image dataset is 1280x960 resolution. The second dataset is the 640x480 resolution. I am trying to find which downsampling algorithm being used to downscale 1280x960 to 640x480 images. Is there anyone who has some example code for it? or any guidance is welcome.

Zek'i B. Ulu
  • 77
  • 1
  • 8

1 Answers1

1

I think the most common method for downsampling is ndimage.interpolation.zoom. It uses bicubic splines internally. Something like:

from scipy import ndimage
low_resolution_frame = ndimage.interpolation.zoom(frame, 0.5)