Interpolating 1 dimensional array using OpenCV

我只是一个虾纸丫 提交于 2019-12-03 17:29:10

It's really simple. OpenCV is an image processing library. So you should remember that we are working on images.

Take a look at the output when we have only 8 pixels in destination image

0 0 0.125 0.375 0.625 0.875 1 1

If you take a look at this image it's very straightforward to understand resize behaviour

As you can see in this link you're using a Image transformation library: "The functions in this section perform various geometrical transformations of 2D images"

You want this results

but it will not interpolate properly the original 2 pixels image

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!