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
I use cv::remap in combination with CV_32F maps to rectify images using a non-standard lens model. With cv::INTER_LINEAR, I observe regular artifacts at the left and top borders of the transformed image. The problem does not occur at the right and bottom borders or with cv::INTER_CUBIC. Due to the image size, what follows is only the top-left corner of the image transformed using bilinear and bicubic interpolation for comparison purposes. The border color is deliberately set to magenta to illustrate the problem.
Unfortunately, it is not easy to extract a minimum working example due to complexity of the original code. However, I'm providing the values for the x and y coordinate maps for the above image transform:
System information (version)
Detailed description
I use
cv::remap
in combination withCV_32F
maps to rectify images using a non-standard lens model. Withcv::INTER_LINEAR
, I observe regular artifacts at the left and top borders of the transformed image. The problem does not occur at the right and bottom borders or withcv::INTER_CUBIC
. Due to the image size, what follows is only the top-left corner of the image transformed using bilinear and bicubic interpolation for comparison purposes. The border color is deliberately set to magenta to illustrate the problem.Unfortunately, it is not easy to extract a minimum working example due to complexity of the original code. However, I'm providing the values for the x and y coordinate maps for the above image transform:
x:
y:
I am able to backtrace the problem to
cv::UMat
usage as input tocv::remap
. The image does not exhibit any artifacts withcv::Mat
.The text was updated successfully, but these errors were encountered: