Skip to content

Commit cd428fb

Browse files
fakabbirvpisarev
authored andcommitted
Error in the documentation for cv::getRectSubPix. opencv#9788 (opencv#9871)
* Error in the documentation for cv::getRectSubPix. opencv#9788 The function name is corrected to GetRectSubPix since, it uses the notation of src, dst and center. Also added the number of channel assertion criteria. * Error in the documentation for cv::getRectSubPix. opencv#9788 Replace dst with patch in the formula, reverted function name to getRectSubPix, removed BorderTypes comment line due to no explicit call to the function found. * Error in the documentation for cv::getRectSubPix. opencv#9788 Replace dst with patch in the formula, reverted function name to getRectSubPix, removed BorderTypes comment line due to no explicit call to the function found.
1 parent 476c513 commit cd428fb

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

modules/imgproc/include/opencv2/imgproc.hpp

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2470,13 +2470,12 @@ CV_EXPORTS_W Mat getAffineTransform( InputArray src, InputArray dst );
24702470
24712471
The function getRectSubPix extracts pixels from src:
24722472
2473-
\f[dst(x, y) = src(x + \texttt{center.x} - ( \texttt{dst.cols} -1)*0.5, y + \texttt{center.y} - ( \texttt{dst.rows} -1)*0.5)\f]
2473+
\f[patch(x, y) = src(x + \texttt{center.x} - ( \texttt{dst.cols} -1)*0.5, y + \texttt{center.y} - ( \texttt{dst.rows} -1)*0.5)\f]
24742474
24752475
where the values of the pixels at non-integer coordinates are retrieved using bilinear
2476-
interpolation. Every channel of multi-channel images is processed independently. While the center of
2477-
the rectangle must be inside the image, parts of the rectangle may be outside. In this case, the
2478-
replication border mode (see cv::BorderTypes) is used to extrapolate the pixel values outside of
2479-
the image.
2476+
interpolation. Every channel of multi-channel images is processed independently. Also
2477+
the image should be a single channel or three channel image. While the center of the
2478+
rectangle must be inside the image, parts of the rectangle may be outside.
24802479
24812480
@param image Source image.
24822481
@param patchSize Size of the extracted patch.

0 commit comments

Comments
 (0)