You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Interpolation algorithms such as bilinear interpolation requires an inverse mapping from the output image to the original image. How exactly was it performed?
MATLAB's imresize uses internal functions to perform to interpolation, which are invisible to users. But a MATLAB stuff posed the inverse mapping formula in his answer.
Noted that C's index is 0-based and MATLAB's index is 1-based. These two implementations are the same. Why choosing this particular formula as the inverse mapping?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Interpolation algorithms such as bilinear interpolation requires an inverse mapping from the output image to the original image. How exactly was it performed?
After some intense searching:
OpenCV: OpenCL resizeLN source code
OpenCV's source code is available on GitHub. Locating the resize function yielded such a surprising result.
MATLAB: imresize discussion
MATLAB's imresize uses internal functions to perform to interpolation, which are invisible to users. But a MATLAB stuff posed the inverse mapping formula in his answer.
Noted that C's index is 0-based and MATLAB's index is 1-based. These two implementations are the same. Why choosing this particular formula as the inverse mapping?
Beta Was this translation helpful? Give feedback.
All reactions