So I have implemented the bi-linear interpolation as in wiki,and other sources where they use the fraction of distance from the neighboring pixels to compute their contributions. My two issues are:
- my results don't tally with the matlab implementation of resize that uses bi-linear interpolation
- I expand the original image I_org to generate I_expanded with scale s, the I expand I_expanded with scale 1/s to generate I_shrunk. The issue is I_org and I_shrunk are always invariably the exact same, I was expecting at least some pixels to differ.
now original image and shrunk image are always same, I was expecting that due to the expanding and shrinking the shrunk image will slightly different from original.