![]() Note that map_y and map_x are both of the same size as src map_y: Same as above, but in y direction.It is equivalent to the first component of \(h(i,j)\) map_x: The mapping function in the x direction.dst: Destination image of same size as src.The function that applies the remapping is cv::remap. What would happen? It is easily seen that the image would flip in the \(x\) direction. Imagine that we have an image \(I\) and, say, we want to do a remap such that: Where \(g()\) is the remapped image, \(f()\) the source image and \(h(x,y)\) is the mapping function that operates on \((x,y)\). ![]() We can express the remap for every pixel location \((x,y)\) as: To accomplish the mapping process, it might be necessary to do some interpolation for non-integer pixel locations, since there will not always be a one-to-one-pixel correspondence between source and destination images.It is the process of taking pixels from one place in the image and locating them in another position in a new image.Use the OpenCV function cv::remap to implement simple remapping routines. Next Tutorial: Affine Transformations GoalĪ.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |