Ask Your Question
2

WarpPerspective with BORDER_TRANSPARENT gives aliasing stairs

asked 2013-11-13 18:31:36 -0600

aktk gravatar image

updated 2013-11-13 18:43:56 -0600

Hi, OpenCV stuff! Thanks for great framework. While using warpPerspective feature with BORDER_TRANSPARENT flag I`v got some aliasing stairs on a border of destination and transformed images. How it can be avoided?image description

edit retag flag offensive close merge delete

Comments

+1. Interesting question and good observation. Does this effect only occur with BORDER_TRANSPARENT or with other flags too?

SR gravatar imageSR ( 2013-11-14 14:26:13 -0600 )edit

Any other border types I`ve tested works great.

aktk gravatar imageaktk ( 2013-11-15 13:55:31 -0600 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2013-11-14 14:29:16 -0600

SR gravatar image

It could be (not really sure) a relict of the (sub-optimal) interpolation method CV_INTER_LINEAR. For example, cv::resize() does support other interpolation modes like CV_INTER_CUBIC. However, I do not know if cv::warpPerspectice() does so too.

edit flag offensive delete link more

Comments

Cubic interpolation was used for sample picture generation.

aktk gravatar imageaktk ( 2013-11-15 13:57:27 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2013-11-13 18:31:36 -0600

Seen: 1,396 times

Last updated: Nov 14 '13