mirror of
https://github.com/opencv/opencv.git
synced 2025-08-06 06:26:29 +08:00
Merge pull request #25726 from chacha21:remap_relative_doc
Relates to #24603 ### Pull Request Readiness Checklist See details at https://github.com/opencv/opencv/wiki/How_to_contribute#making-a-good-pull-request - [X] I agree to contribute to the project under Apache 2 License. - [X] To the best of my knowledge, the proposed patch is not based on a code under GPL or another license that is incompatible with OpenCV - [X] The PR is proposed to the proper branch - [X] There is a reference to the original bug report and related work - [ ] There is accuracy test, performance test and test data in opencv_extra repository, if applicable Patch to opencv_extra has the same branch name. - [ ] The feature is well documented and sample code can be built with the project CMake
This commit is contained in:
parent
cc6f85e1ba
commit
bdf986ee51
@ -2485,7 +2485,10 @@ CV_EXPORTS_W void warpPerspective( InputArray src, OutputArray dst,
|
||||
The function remap transforms the source image using the specified map:
|
||||
|
||||
\f[\texttt{dst} (x,y) = \texttt{src} (map_x(x,y),map_y(x,y))\f]
|
||||
\f[\texttt{dst} (x,y) = \texttt{src} (x+map_x(x,y),y+map_y(x,y))\f] with WARP_RELATIVE_MAP
|
||||
|
||||
with the WARP_RELATIVE_MAP flag :
|
||||
|
||||
\f[\texttt{dst} (x,y) = \texttt{src} (x+map_x(x,y),y+map_y(x,y))\f]
|
||||
|
||||
where values of pixels with non-integer coordinates are computed using one of available
|
||||
interpolation methods. \f$map_x\f$ and \f$map_y\f$ can be encoded as separate floating-point maps
|
||||
@ -2506,7 +2509,7 @@ representation to fixed-point for speed.
|
||||
if map1 is (x,y) points), respectively.
|
||||
@param interpolation Interpolation method (see #InterpolationFlags). The methods #INTER_AREA
|
||||
#INTER_LINEAR_EXACT and #INTER_NEAREST_EXACT are not supported by this function.
|
||||
The extra flag WARP_RELATIVE_MAP that can be ORed to the interpolation method
|
||||
The extra flag WARP_RELATIVE_MAP can be ORed to the interpolation method
|
||||
(e.g. INTER_LINEAR | WARP_RELATIVE_MAP)
|
||||
@param borderMode Pixel extrapolation method (see #BorderTypes). When
|
||||
borderMode=#BORDER_TRANSPARENT, it means that the pixels in the destination image that
|
||||
|
Loading…
Reference in New Issue
Block a user