How to get the image pixel at real locations in opencv?

前端 未结 4 2052
臣服心动
臣服心动 2020-12-08 15:49

I want to retrieve the rgb of a pixel in the image. But the location is not integer location but real values (x,y). I want a bilinear interpolated value. How could

4条回答
  •  余生分开走
    2020-12-08 16:26

    Using mapping can be more efficient if you want to do this repeatedly or consistently. ANother advantage is choosing an interpolation method and how to handle border conditions. Finally some of the interpolation functions are also implemented on GPU. remap

提交回复
热议问题