updated gpu image filtering and image processing docs
authorVladislav Vinogradov <no@email>
Mon, 17 Jan 2011 10:19:11 +0000 (10:19 +0000)
committerVladislav Vinogradov <no@email>
Mon, 17 Jan 2011 10:19:11 +0000 (10:19 +0000)
doc/gpu_image_filtering.tex
doc/gpu_image_processing.tex

index 29b5620..df3a0ae 100644 (file)
@@ -87,7 +87,7 @@ while (...)
 filter.release();\r
 \end{lstlisting}\r
 \r
-\texttt{FilterEngine\_GPU} can process a rectangular sub-region of an image. By default, if \texttt{roi == Rect(0,0,-1,-1)}, \texttt{FilterEngine\_GPU} process inner region of image (\texttt{Rect(anchor.x, anchor.y, src\_size.width - ksize.width, src\_size.height - ksize.height)}), because some filters doesn't check indexies outside the image for better perfomace. Which filters supports processing the whole image and which not and image type limitations see below.\r
+\texttt{FilterEngine\_GPU} can process a rectangular sub-region of an image. By default, if \texttt{roi == Rect(0,0,-1,-1)}, \texttt{FilterEngine\_GPU} process inner region of image (\texttt{Rect(anchor.x, anchor.y, src\_size.width - ksize.width, src\_size.height - ksize.height)}), because some filters doesn't check indexes outside the image for better perfomace. Which filters supports processing the whole image and which not and image type limitations see below.\r
 \r
 The GPU filters doesn't support the in-place mode.\r
 \r
@@ -98,6 +98,11 @@ Create the non-separable filter engine with the specified filter.
 \cvdefCpp{\r
 Ptr<FilterEngine\_GPU> createFilter2D\_GPU(\par const Ptr<BaseFilter\_GPU>\& filter2D, \par int srcType, int dstType);\r
 }\r
+\begin{description}\r
+\cvarg{filter2D} {The non separable 2D filter.}\r
+\cvarg{srcType}{The input image type. It must be supported by \texttt{filter2D}.}\r
+\cvarg{dstType}{The output image type. It must be supported by \texttt{filter2D}.}\r
+\end{description}\r
 Usually this function is used inside high-level functions, like \hyperref[cppfunc.gpu.createLinearFilter]{createLinearFilter\_GPU}, \hyperref[cppfunc.gpu.createBoxFilter]{createBoxFilter\_GPU}.\r
 \r
 \cvfunc{gpu::createSeparableFilter\_GPU}\label{cppfunc.gpu.createSeparableFilter}\r
@@ -105,45 +110,89 @@ Create the separable filter engine with the specified filters.
 \cvdefCpp{\r
 Ptr<FilterEngine\_GPU> createSeparableFilter\_GPU(\par const Ptr<BaseRowFilter\_GPU>\& rowFilter, \par const Ptr<BaseColumnFilter\_GPU>\& columnFilter, \par int srcType, int bufType, int dstType);\r
 }\r
+\begin{description}\r
+\cvarg{rowFilter} {The "horizontal" 1D filter.}\r
+\cvarg{columnFilter} {The "vertical" 1D filter.}\r
+\cvarg{srcType}{The input image type. It must be supported by \texttt{rowFilter}.}\r
+\cvarg{bufType}{The buffer image type. It must be supported by \texttt{rowFilter} and \texttt{columnFilter}.}\r
+\cvarg{dstType}{The output image type. It must be supported by \texttt{columnFilter}.}\r
+\end{description}\r
 Usually this function is used inside high-level functions, like \hyperref[cppfunc.gpu.createSeparableLinearFilter]{createSeparableLinearFilter\_GPU}.\r
 \r
 \cvfunc{gpu::getRowSumFilter\_GPU}\label{cppfunc.gpu.getRowSumFilter}\r
-Create horizontal 1D box filter. Supports only \texttt{CV\_8UC1} source type and \texttt{CV\_32FC1} sum type.\r
+Create horizontal 1D box filter.\r
 \cvdefCpp{\r
 Ptr<BaseRowFilter\_GPU> getRowSumFilter\_GPU(int srcType, int sumType, \par int ksize, int anchor = -1);\r
 }\r
+\begin{description}\r
+\cvarg{srcType}{The input image type. Now support only \texttt{CV\_8UC1}.}\r
+\cvarg{sumType}{The output image type. Now support only \texttt{CV\_32FC1}.}\r
+\cvarg{ksize}{The kernel size.}\r
+\cvarg{anchor}{The anchor point. The default value (-1) means that the anchor is at the kernel center.}\r
+\end{description}\r
+This filter doesn't check indexes outside the image, so it can process only inner area. \r
 \r
 \cvfunc{gpu::getColumnSumFilter\_GPU}\label{cppfunc.gpu.getColumnSumFilter}\r
-Create vertical 1D box filter. Supports only \texttt{CV\_8UC1} sum type and \texttt{CV\_32FC1} dst type.\r
+Create vertical 1D box filter.\r
 \cvdefCpp{\r
 Ptr<BaseColumnFilter\_GPU> getColumnSumFilter\_GPU(int sumType, \par int dstType, int ksize, int anchor = -1);\r
 }\r
+\begin{description}\r
+\cvarg{sumType}{The input image type. Now support only \texttt{CV\_8UC1}.}\r
+\cvarg{dstType}{The output image type. Now support only \texttt{CV\_32FC1}.}\r
+\cvarg{ksize}{The kernel size.}\r
+\cvarg{anchor}{The anchor point. The default value (-1) means that the anchor is at the kernel center.}\r
+\end{description}\r
+This filter doesn't check indexes outside the image, so it can process only inner area. \r
 \r
 \cvfunc{gpu::createBoxFilter\_GPU}\label{cppfunc.gpu.createBoxFilter}\r
-Create normalized 2D box filter. Supports \texttt{CV\_8UC1} and \texttt{CV\_8UC4} source type, dst type must be the same as source type. This filter doesn't check indexies outside the image.\r
+Create normalized 2D box filter.\r
 \cvdefCpp{\r
 Ptr<FilterEngine\_GPU> createBoxFilter\_GPU(int srcType, int dstType, \par const Size\& ksize, \par const Point\& anchor = Point(-1,-1));\r
 }\r
 \cvdefCpp{\r
 Ptr<BaseFilter\_GPU> getBoxFilter\_GPU(int srcType, int dstType, \par const Size\& ksize, \par Point anchor = Point(-1, -1));\r
 }\r
+\begin{description}\r
+\cvarg{srcType}{The input image type. Now support \texttt{CV\_8UC1} and \texttt{CV\_8UC4}.}\r
+\cvarg{dstType}{The output image type. Now support only the same as source type.}\r
+\cvarg{ksize}{The kernel size.}\r
+\cvarg{anchor}{The anchor point. The default value Point(-1, -1) means that the anchor is at the kernel center.}\r
+\end{description}\r
+This filter doesn't check indexes outside the image, so it can process only inner area.\newline\r
+See also: \cvCppCross{boxFilter}.\r
 \r
 \cvCppFunc{gpu::boxFilter}\r
-Smooths the image using the normalized box filter. Supports \texttt{CV\_8UC1} and \texttt{CV\_8UC4} source type, dst type must be the same as source type.\r
+Smooths the image using the normalized box filter.\r
 \cvdefCpp{\r
 void boxFilter(const GpuMat\& src, GpuMat\& dst, int ddepth, Size ksize, \par Point anchor = Point(-1,-1));            \r
 }\r
-See \cvCppCross{boxFilter}, \hyperref[cppfunc.gpu.createBoxFilter]{createBoxFilter\_GPU}.\r
+\begin{description}\r
+\cvarg{src}{The input image. Now support \texttt{CV\_8UC1} and \texttt{CV\_8UC4} source type.}\r
+\cvarg{dst}{The output image type. Will have the same size and the same type as \texttt{src}.}\r
+\cvarg{ddepth}{The output image depth. Now support only the same as source depth (\texttt{CV\_8U}) or -1 what means use source depth.}\r
+\cvarg{ksize}{The kernel size.}\r
+\cvarg{anchor}{The anchor point. The default value Point(-1, -1) means that the anchor is at the kernel center.}\r
+\end{description}\r
+This filter doesn't check indexes outside the image, so it can process only inner area.\newline\r
+See also: \cvCppCross{boxFilter}, \hyperref[cppfunc.gpu.createBoxFilter]{createBoxFilter\_GPU}.\r
 \r
 \cvCppFunc{gpu::blur}\r
 A synonym for normalized box filter.\r
 \cvdefCpp{\r
 void blur(const GpuMat\& src, GpuMat\& dst, Size ksize, \par Point anchor = Point(-1,-1));\r
 }\r
-See \cvCppCross{blur}, \cvCppCross{gpu::boxFilter}.\r
+\begin{description}\r
+\cvarg{src}{The input image. Now support \texttt{CV\_8UC1} and \texttt{CV\_8UC4} source type.}\r
+\cvarg{dst}{The output image type. Will have the same size and the same type as \texttt{src}.}\r
+\cvarg{ksize}{The kernel size.}\r
+\cvarg{anchor}{The anchor point. The default value Point(-1, -1) means that the anchor is at the kernel center.}\r
+\end{description}\r
+This filter doesn't check indexes outside the image, so it can process only inner area.\newline\r
+See also: \cvCppCross{blur}, \cvCppCross{gpu::boxFilter}.\r
 \r
 \cvfunc{gpu::createMorphologyFilter\_GPU}\label{cppfunc.gpu.createMorphologyFilter}\r
-Create 2D morphological filter. Supports \texttt{CV\_8UC1} and \texttt{CV\_8UC4} source type. This filter doesn't check indexies outside the image.\r
+Create 2D morphological filter.\r
 \cvdefCpp{\r
 Ptr<FilterEngine\_GPU> createMorphologyFilter\_GPU(int op, int type, \par const Mat\& kernel, \par const Point\& anchor = Point(-1,-1), \par int iterations = 1);\r
 }\r
@@ -153,63 +202,127 @@ Ptr<BaseFilter\_GPU> getMorphologyFilter\_GPU(int op, int type, \par const Mat\&
 \begin{description}\r
 \cvarg{op} {The morphology operation id. Only \texttt{MORPH\_ERODE} and \texttt{MORPH\_DILATE} are supported.}\r
 \cvarg{type}{The input/output image type. Only \texttt{CV\_8UC1} and \texttt{CV\_8UC4} are supported.}\r
-\cvarg{kernel}{The 2D 8-bit structuring element for the morphological operation. It must be continuous matrix.}\r
+\cvarg{kernel}{The 2D 8-bit structuring element for the morphological operation.}\r
 \cvarg{size}{The horizontal or vertical structuring element size for separable morphological operations}\r
 \cvarg{anchor}{The anchor position within the structuring element; negative values mean that the anchor is at the center}\r
 \end{description}\r
-See \cvCppCross{createMorphologyFilter}.\r
+This filter doesn't check indexes outside the image, so it can process only inner area.\newline\r
+See also: \cvCppCross{createMorphologyFilter}.\r
 \r
 \cvCppFunc{gpu::erode}\r
-Erodes an image by using a specific structuring element. Supports \texttt{CV\_8UC1} and \texttt{CV\_8UC4} source type.\r
+Erodes an image by using a specific structuring element.\r
 \cvdefCpp{\r
 void erode(const GpuMat\& src, GpuMat\& dst, const Mat\& kernel, \par Point anchor = Point(-1, -1), \par int iterations = 1);\r
 }\r
-See \cvCppCross{erode}, \hyperref[cppfunc.gpu.createMorphologyFilter]{createMorphologyFilter\_GPU}.\r
+\begin{description}\r
+\cvarg{src}{The source image. Only \texttt{CV\_8UC1} and \texttt{CV\_8UC4} are supported.}\r
+\cvarg{dst}{The destination image. It will have the same size and the same type as \texttt{src}}\r
+\cvarg{kernel}{The structuring element used for dilation. If \texttt{kernel=Mat()}, a $3\times 3$ rectangular structuring element is used.}\r
+\cvarg{anchor}{Position of the anchor within the element. The default value $(-1, -1)$ means that the anchor is at the element center.}\r
+\cvarg{iterations}{The number of times erosion is applied.}\r
+\end{description}\r
+This filter doesn't check indexes outside the image, so it can process only inner area.\newline\r
+See also: \cvCppCross{erode}, \hyperref[cppfunc.gpu.createMorphologyFilter]{createMorphologyFilter\_GPU}.\r
 \r
 \cvCppFunc{gpu::dilate}\r
-Dilates an image by using a specific structuring element. Supports \texttt{CV\_8UC1} and \texttt{CV\_8UC4} source type.\r
+Dilates an image by using a specific structuring element.\r
 \cvdefCpp{\r
 void dilate(const GpuMat\& src, GpuMat\& dst, const Mat\& kernel, \par Point anchor = Point(-1, -1), \par int iterations = 1);\r
 }\r
-See \cvCppCross{dilate}, \hyperref[cppfunc.gpu.createMorphologyFilter]{createMorphologyFilter\_GPU}.\r
+\begin{description}\r
+\cvarg{src}{The source image. Supports \texttt{CV\_8UC1} and \texttt{CV\_8UC4} source type.}\r
+\cvarg{dst}{The destination image. It will have the same size and the same type as \texttt{src}}\r
+\cvarg{kernel}{The structuring element used for dilation. If \texttt{kernel=Mat()}, a $3\times 3$ rectangular structuring element is used.}\r
+\cvarg{anchor}{Position of the anchor within the element. The default value $(-1, -1)$ means that the anchor is at the element center.}\r
+\cvarg{iterations}{The number of times dilation is applied.}\r
+\end{description}\r
+This filter doesn't check indexes outside the image, so it can process only inner area.\newline\r
+See also: \cvCppCross{dilate}, \hyperref[cppfunc.gpu.createMorphologyFilter]{createMorphologyFilter\_GPU}.\r
 \r
 \cvCppFunc{gpu::morphologyEx}\r
-Applies an advanced morphological operation to the image. Supports \texttt{CV\_8UC1} and \texttt{CV\_8UC4} source type.\r
+Applies an advanced morphological operation to the image.\r
 \cvdefCpp{\r
 void morphologyEx(const GpuMat\& src, GpuMat\& dst, int op, \par const Mat\& kernel, \par Point anchor = Point(-1, -1), \par int iterations = 1);\r
 }\r
-See \cvCppCross{morphologyEx}.\r
+\begin{description}\r
+\cvarg{src}{Source image. Supports \texttt{CV\_8UC1} and \texttt{CV\_8UC4} source type.}\r
+\cvarg{dst}{Destination image. It will have the same size and the same type as \texttt{src}}\r
+\cvarg{op}{Type of morphological operation, one of the following:\r
+\begin{description}\r
+\cvarg{MORPH\_OPEN}{opening}\r
+\cvarg{MORPH\_CLOSE}{closing}\r
+\cvarg{MORPH\_GRADIENT}{morphological gradient}\r
+\cvarg{MORPH\_TOPHAT}{"top hat"}\r
+\cvarg{MORPH\_BLACKHAT}{"black hat"}\r
+\end{description}}\r
+\cvarg{kernel}{Structuring element.}\r
+\cvarg{anchor}{Position of the anchor within the element. The default value Point(-1, -1) means that the anchor is at the element center.}\r
+\cvarg{iterations}{Number of times erosion and dilation are applied.}\r
+\end{description}\r
+This filter doesn't check indexes outside the image, so it can process only inner area.\newline\r
+See also: \cvCppCross{morphologyEx}.\r
 \r
 \cvfunc{gpu::createLinearFilter\_GPU}\label{cppfunc.gpu.createLinearFilter}\r
-Create the non-separable linear filter. Supports \texttt{CV\_8UC1} and \texttt{CV\_8UC4} source type. This filter doesn't check indexies outside the image.\r
+Create the non-separable linear filter.\r
 \cvdefCpp{\r
 Ptr<FilterEngine\_GPU> createLinearFilter\_GPU(int srcType, int dstType, \par const Mat\& kernel, \par const Point\& anchor = Point(-1,-1));\r
 }\r
 \cvdefCpp{\r
 Ptr<BaseFilter\_GPU> getLinearFilter\_GPU(int srcType, int dstType, \par const Mat\& kernel, const Size\& ksize, \par Point anchor = Point(-1, -1));\r
 }\r
+\begin{description}\r
+\cvarg{srcType}{The input image type. Now support \texttt{CV\_8UC1} and \texttt{CV\_8UC4}.}\r
+\cvarg{dstType}{The output image type. Now support only the same as source type.}\r
+\cvarg{kernel}{The 2D array of filter coefficients. This filter works with integers kernels, if \texttt{kernel} has \texttt{float} or \texttt{double} type it will be used fixed point arithmetic.}\r
+\cvarg{ksize}{The kernel size.}\r
+\cvarg{anchor}{The anchor point. The default value Point(-1, -1) means that the anchor is at the kernel center.}\r
+\end{description}\r
+This filter doesn't check indexes outside the image, so it can process only inner area.\newline\r
+See also: \cvCppCross{createLinearFilter}.\r
 \r
 \cvCppFunc{gpu::filter2D}\r
-Applies non-separable 2D linear filter to the image. Supports \texttt{CV\_8UC1} and \texttt{CV\_8UC4} source type.\r
+Applies non-separable 2D linear filter to the image.\r
 \cvdefCpp{\r
 void filter2D(const GpuMat\& src, GpuMat\& dst, int ddepth, \par const Mat\& kernel, \par Point anchor=Point(-1,-1));\r
 }\r
-See \cvCppCross{filter2D}, \hyperref[cppfunc.gpu.createLinearFilter]{createLinearFilter\_GPU}.\r
+\begin{description}\r
+\cvarg{src}{The source image. Supports \texttt{CV\_8UC1} and \texttt{CV\_8UC4} source type.}\r
+\cvarg{dst}{The destination image. It will have the same size and the same number of channels as \texttt{src}}\r
+\cvarg{ddepth}{The desired depth of the destination image. If it is negative, it will be the same as \texttt{src.depth()}. Now support only the same depth as source image.}\r
+\cvarg{kernel}{The 2D array of filter coefficients. This filter works with integers kernels, if \texttt{kernel} has \texttt{float} or \texttt{double} type it will use fixed point arithmetic.}\r
+\cvarg{anchor}{The anchor of the kernel that indicates the relative position of a filtered point within the kernel. The anchor should lie within the kernel. The special default value (-1,-1) means that the anchor is at the kernel center.}\r
+\end{description}\r
+This filter doesn't check indexes outside the image, so it can process only inner area.\newline\r
+See also: \cvCppCross{filter2D}, \hyperref[cppfunc.gpu.createLinearFilter]{createLinearFilter\_GPU}.\r
 \r
 \cvCppFunc{gpu::Laplacian}\r
-Applies Laplacian operator to the image. Supports \texttt{CV\_8UC1} and \texttt{CV\_8UC4} source type. Supports only \texttt{ksize} = 1 and \texttt{ksize} = 3.\r
+Applies Laplacian operator to the image.\r
 \cvdefCpp{\r
 void Laplacian(const GpuMat\& src, GpuMat\& dst, int ddepth, \par int ksize = 1, double scale = 1);\r
 }\r
-See \cvCppCross{Laplacian}, \cvCppCross{gpu::filter2D}.\r
+\begin{description}\r
+\cvarg{src}{Source image. Supports \texttt{CV\_8UC1} and \texttt{CV\_8UC4} source type.}\r
+\cvarg{dst}{Destination image; will have the same size and the same number of channels as \texttt{src}.}\r
+\cvarg{ddepth}{The desired depth of the destination image. Now support only tha same depth as source image.}\r
+\cvarg{ksize}{The aperture size used to compute the second-derivative filters, see \cvCppCross{getDerivKernels}. It must be positive and odd. Now supports only \texttt{ksize} = 1 and \texttt{ksize} = 3.}\r
+\cvarg{scale}{The optional scale factor for the computed Laplacian values (by default, no scaling is applied, see \cvCppCross{getDerivKernels}).}\r
+\end{description}\r
+This filter doesn't check indexes outside the image, so it can process only inner area.\newline\r
+See also: \cvCppCross{Laplacian}, \cvCppCross{gpu::filter2D}.\r
 \r
 \cvfunc{gpu::getLinearRowFilter\_GPU}\label{cppfunc.gpu.getLinearRowFilter}\r
 Create the primitive row filter with the specified kernel.\r
 \cvdefCpp{\r
 Ptr<BaseRowFilter\_GPU> getLinearRowFilter\_GPU(int srcType, \par int bufType, const Mat\& rowKernel, int anchor = -1, \par int borderType = BORDER\_CONSTANT);\r
 }\r
-Supports only \texttt{CV\_8UC1}, \texttt{CV\_8UC4}, \texttt{CV\_16SC1}, \texttt{CV\_16SC2}, \texttt{CV\_32SC1}, \texttt{CV\_32FC1} source type. There are two version of algorithm: NPP and OpenCV. NPP calls when \texttt{srcType == CV\_8UC1} or \texttt{srcType == CV\_8UC4} and \texttt{bufType == srcType}, otherwise calls OpenCV version. NPP supports only \texttt{BORDER\_CONSTANT} border type and doesn't check indexies outside image. OpenCV version supports only \texttt{CV\_32F} as buffer depth and \texttt{BORDER\_REFLECT101}, \texttt{BORDER\_REPLICATE} and \texttt{BORDER\_CONSTANT} border types and checks indexies outside image.\r
-\r
+\begin{description}\r
+\cvarg{srcType}{The source array type. Supports only \texttt{CV\_8UC1}, \texttt{CV\_8UC4}, \texttt{CV\_16SC1}, \texttt{CV\_16SC2}, \texttt{CV\_32SC1}, \texttt{CV\_32FC1} source type.}\r
+\cvarg{bufType}{The inermediate buffer type; must have as many channels as \texttt{srcType}.}\r
+\cvarg{rowKernel}{The coefficients for filtering each row.}\r
+\cvarg{anchor}{The anchor position within the kernel; negative values mean that anchor is positioned at the aperture center.}\r
+\cvarg{borderType}{The pixel extrapolation methods; see \cvCppCross{borderInterpolate}. About limitation see below.}\r
+\end{description}\r
+There are two version of algorithm: NPP and OpenCV. NPP calls when \texttt{srcType == CV\_8UC1} or \texttt{srcType == CV\_8UC4} and \texttt{bufType == srcType}, otherwise calls OpenCV version. NPP supports only \texttt{BORDER\_CONSTANT} border type and doesn't check indexes outside image. OpenCV version supports only \texttt{CV\_32F} as buffer depth and \texttt{BORDER\_REFLECT101}, \texttt{BORDER\_REPLICATE} and \texttt{BORDER\_CONSTANT} border types and checks indexes outside image.\newline\r
 See also: \hyperref[cppfunc.gpu.getLinearColumnFilter]{getLinearColumnFilter\_GPU}, \cvCppCross{createSeparableLinearFilter}.\r
 \r
 \cvfunc{gpu::getLinearColumnFilter\_GPU}\label{cppfunc.gpu.getLinearColumnFilter}\r
@@ -217,8 +330,14 @@ Create the primitive column filter with the specified kernel.
 \cvdefCpp{\r
 Ptr<BaseColumnFilter\_GPU> getLinearColumnFilter\_GPU(int bufType, \par int dstType, const Mat\& columnKernel, int anchor = -1, \par int borderType = BORDER\_CONSTANT);\r
 }\r
-Supports only \texttt{CV\_8UC1}, \texttt{CV\_8UC4}, \texttt{CV\_16SC1}, \texttt{CV\_16SC2}, \texttt{CV\_32SC1}, \texttt{CV\_32FC1} dst type. There are two version of algorithm: NPP and OpenCV. NPP calls when \texttt{dstType == CV\_8UC1} or \texttt{dstType == CV\_8UC4} and \texttt{bufType == dstType}, otherwise calls OpenCV version. NPP supports only \texttt{BORDER\_CONSTANT} border type and doesn't check indexies outside image. OpenCV version supports only \texttt{CV\_32F} as buffer depth and \texttt{BORDER\_REFLECT101}, \texttt{BORDER\_REPLICATE} and \texttt{BORDER\_CONSTANT} border types and checks indexies outside image.\r
-\r
+\begin{description}\r
+\cvarg{bufType}{The inermediate buffer type; must have as many channels as \texttt{dstType}.}\r
+\cvarg{dstType}{The destination array type. Supports only \texttt{CV\_8UC1}, \texttt{CV\_8UC4}, \texttt{CV\_16SC1}, \texttt{CV\_16SC2}, \texttt{CV\_32SC1}, \texttt{CV\_32FC1} source type.}\r
+\cvarg{columnKernel}{The coefficients for filtering each column.}\r
+\cvarg{anchor}{The anchor position within the kernel; negative values mean that anchor is positioned at the aperture center.}\r
+\cvarg{borderType}{The pixel extrapolation methods; see \cvCppCross{borderInterpolate}. About limitation see below.}\r
+\end{description}\r
+There are two version of algorithm: NPP and OpenCV. NPP calls when \texttt{dstType == CV\_8UC1} or \texttt{dstType == CV\_8UC4} and \texttt{bufType == dstType}, otherwise calls OpenCV version. NPP supports only \texttt{BORDER\_CONSTANT} border type and doesn't check indexes outside image. OpenCV version supports only \texttt{CV\_32F} as buffer depth and \texttt{BORDER\_REFLECT101}, \texttt{BORDER\_REPLICATE} and \texttt{BORDER\_CONSTANT} border types and checks indexes outside image.\newline\r
 See also: \hyperref[cppfunc.gpu.getLinearRowFilter]{getLinearRowFilter\_GPU}, \cvCppCross{createSeparableLinearFilter}.\r
 \r
 \cvfunc{gpu::createSeparableLinearFilter\_GPU}\label{cppfunc.gpu.createSeparableLinearFilter}\r
@@ -226,58 +345,129 @@ Create the separable linear filter engine.
 \cvdefCpp{\r
 Ptr<FilterEngine\_GPU> createSeparableLinearFilter\_GPU(int srcType, \par int dstType, const Mat\& rowKernel, const Mat\& columnKernel, \par const Point\& anchor = Point(-1,-1), \par int rowBorderType = BORDER\_DEFAULT, \par int columnBorderType = -1);\r
 }\r
-See \hyperref[cppfunc.gpu.getLinearRowFilter]{getLinearRowFilter\_GPU}, \hyperref[cppfunc.gpu.getLinearColumnFilter]{getLinearColumnFilter\_GPU}, \cvCppCross{createSeparableLinearFilter}.\r
+\begin{description}\r
+\cvarg{srcType}{The source array type. Supports \texttt{CV\_8UC1}, \texttt{CV\_8UC4}, \texttt{CV\_16SC1}, \texttt{CV\_16SC2}, \texttt{CV\_32SC1}, \texttt{CV\_32FC1} source type.}\r
+\cvarg{dstType}{The destination array type. Supports \texttt{CV\_8UC1}, \texttt{CV\_8UC4}, \texttt{CV\_16SC1}, \texttt{CV\_16SC2}, \texttt{CV\_32SC1}, \texttt{CV\_32FC1} source type.}\r
+\cvarg{rowKernel}{The coefficients for filtering each row.}\r
+\cvarg{columnKernel}{The coefficients for filtering each column.}\r
+\cvarg{anchor}{The anchor position within the kernel; negative values mean that anchor is positioned at the aperture center.}\r
+\cvarg{rowBorderType, columnBorderType}{The pixel extrapolation methods in the horizontal and the vertical directions; see \cvCppCross{borderInterpolate}. About limitation see \hyperref[cppfunc.gpu.getLinearRowFilter]{getLinearRowFilter\_GPU}, \hyperref[cppfunc.gpu.getLinearColumnFilter]{getLinearColumnFilter\_GPU}, \cvCppCross{createSeparableLinearFilter}.}\r
+\end{description}\r
 \r
 \cvCppFunc{gpu::sepFilter2D}\r
 Applies separable 2D linear filter to the image.\r
 \cvdefCpp{\r
 void sepFilter2D(const GpuMat\& src, GpuMat\& dst, int ddepth, \par const Mat\& kernelX, const Mat\& kernelY, \par Point anchor = Point(-1,-1), \par int rowBorderType = BORDER\_DEFAULT, \par int columnBorderType = -1);\r
 }\r
-See \hyperref[cppfunc.gpu.createSeparableLinearFilter]{createSeparableLinearFilter\_GPU}, \cvCppCross{sepFilter2D}.\r
+\begin{description}\r
+\cvarg{src}{The source image.}\r
+\cvarg{dst}{The destination image; will have the same size and the same number of channels as \texttt{src}.}\r
+\cvarg{ddepth}{The destination image depth.}\r
+\cvarg{kernelX}{The coefficients for filtering each row.}\r
+\cvarg{kernelY}{The coefficients for filtering each column.}\r
+\cvarg{anchor}{The anchor position within the kernel; The default value $(-1, 1)$ means that the anchor is at the kernel center.}\r
+\cvarg{rowBorderType, columnBorderType}{The pixel extrapolation method; see \cvCppCross{borderInterpolate}.}\r
+\end{description}\r
+See also: \hyperref[cppfunc.gpu.createSeparableLinearFilter]{createSeparableLinearFilter\_GPU}, \cvCppCross{sepFilter2D}.\r
 \r
 \cvfunc{gpu::createDerivFilter\_GPU}\label{cppfunc.gpu.createDerivFilter}\r
 Create filter engine for the generalized Sobel operator.\r
 \cvdefCpp{\r
 Ptr<FilterEngine\_GPU> createDerivFilter\_GPU(int srcType, int dstType, \par int dx, int dy, int ksize, \par int rowBorderType = BORDER\_DEFAULT, \par int columnBorderType = -1);\r
 }\r
-See \hyperref[cppfunc.gpu.createSeparableLinearFilter]{createSeparableLinearFilter\_GPU}, \cvCppCross{createDerivFilter}.\r
+\begin{description}\r
+\cvarg{srcType}{The source image type.}\r
+\cvarg{dstType}{The destination image type; must have as many channels as \texttt{srcType}.}\r
+\cvarg{dx}{The derivative order in respect with x.}\r
+\cvarg{dy}{The derivative order in respect with y.}\r
+\cvarg{ksize}{The aperture size; see \cvCppCross{getDerivKernels}.}\r
+\cvarg{rowBorderType, columnBorderType}{Which border type to use; see \cvCppCross{borderInterpolate}.}\r
+\end{description}\r
+See also: \hyperref[cppfunc.gpu.createSeparableLinearFilter]{createSeparableLinearFilter\_GPU}, \cvCppCross{createDerivFilter}.\r
 \r
 \cvCppFunc{gpu::Sobel}\r
 Applies generalized Sobel operator to the image.\r
 \cvdefCpp{\r
 void Sobel(const GpuMat\& src, GpuMat\& dst, int ddepth, int dx, int dy, \par int ksize = 3, double scale = 1, \par int rowBorderType = BORDER\_DEFAULT, \par int columnBorderType = -1);\r
 }\r
-See \hyperref[cppfunc.gpu.createSeparableLinearFilter]{createSeparableLinearFilter\_GPU}, \cvCppCross{Sobel}.\r
+\begin{description}\r
+\cvarg{srcType}{The source image.}\r
+\cvarg{dstType}{The destination image. Will have the same size and number of channels as source image.}\r
+\cvarg{ddepth}{The destination image depth.}\r
+\cvarg{dx}{The derivative order in respect with x.}\r
+\cvarg{dy}{The derivative order in respect with y.}\r
+\cvarg{ksize}{Size of the extended Sobel kernel, must be 1, 3, 5 or 7.}\r
+\cvarg{scale}{The optional scale factor for the computed derivative values (by default, no scaling is applied, see \cvCppCross{getDerivKernels}).}\r
+\cvarg{rowBorderType, columnBorderType}{Which border type to use; see \cvCppCross{borderInterpolate}.}\r
+\end{description}\r
+See also: \hyperref[cppfunc.gpu.createSeparableLinearFilter]{createSeparableLinearFilter\_GPU}, \cvCppCross{Sobel}.\r
 \r
 \cvCppFunc{gpu::Scharr}\r
 Calculates the first x- or y- image derivative using Scharr operator.\r
 \cvdefCpp{\r
 void Scharr(const GpuMat\& src, GpuMat\& dst, int ddepth, \par int dx, int dy, double scale = 1, \par int rowBorderType = BORDER\_DEFAULT, \par int columnBorderType = -1);\r
 }\r
-See \hyperref[cppfunc.gpu.createSeparableLinearFilter]{createSeparableLinearFilter\_GPU}, \cvCppCross{Scharr}.\r
+\begin{description}\r
+\cvarg{src}{The source image.}\r
+\cvarg{dst}{The destination image; will have the same size and the same number of channels as \texttt{src}.}\r
+\cvarg{ddepth}{The destination image depth.}\r
+\cvarg{xorder}{Order of the derivative x.}\r
+\cvarg{yorder}{Order of the derivative y.}\r
+\cvarg{scale}{The optional scale factor for the computed derivative values (by default, no scaling is applied, see \cvCppCross{getDerivKernels}).}\r
+\cvarg{rowBorderType, columnBorderType}{The pixel extrapolation method, see \cvCppCross{borderInterpolate}}\r
+\end{description}\r
+See also: \hyperref[cppfunc.gpu.createSeparableLinearFilter]{createSeparableLinearFilter\_GPU}, \cvCppCross{Scharr}.\r
 \r
 \cvfunc{gpu::createGaussianFilter\_GPU}\label{cppfunc.gpu.createGaussianFilter}\r
 Create the Gaussian filter engine.\r
 \cvdefCpp{\r
-Ptr<FilterEngine\_GPU> createGaussianFilter\_GPU(int type, Size ksize, \par double sigma1, double sigma2 = 0, \par int rowBorderType = BORDER\_DEFAULT, \par int columnBorderType = -1);\r
+Ptr<FilterEngine\_GPU> createGaussianFilter\_GPU(int type, Size ksize, \par double sigmaX, double sigmaY = 0, \par int rowBorderType = BORDER\_DEFAULT, \par int columnBorderType = -1);\r
 }\r
-See \hyperref[cppfunc.gpu.createSeparableLinearFilter]{createSeparableLinearFilter\_GPU}, \cvCppCross{createGaussianFilter}.\r
+\begin{description}\r
+\cvarg{type}{The source and the destination image type.}\r
+\cvarg{ksize}{The aperture size; see \cvCppCross{getGaussianKernel}.}\r
+\cvarg{sigmaX}{The Gaussian sigma in the horizontal direction; see \cvCppCross{getGaussianKernel}.}\r
+\cvarg{sigmaY}{The Gaussian sigma in the vertical direction; if 0, then $\texttt{sigmaY}\leftarrow\texttt{sigmaX}$.}\r
+\cvarg{rowBorderType, columnBorderType}{Which border type to use; see \cvCppCross{borderInterpolate}}\r
+\end{description}\r
+See also: \hyperref[cppfunc.gpu.createSeparableLinearFilter]{createSeparableLinearFilter\_GPU}, \cvCppCross{createGaussianFilter}.\r
 \r
 \cvCppFunc{gpu::GaussianBlur}\r
 Smooths the image using Gaussian filter.\r
 \cvdefCpp{\r
-void GaussianBlur(const GpuMat\& src, GpuMat\& dst, Size ksize, \par double sigma1, double sigma2 = 0, \par int rowBorderType = BORDER\_DEFAULT, \par int columnBorderType = -1);\r
+void GaussianBlur(const GpuMat\& src, GpuMat\& dst, Size ksize, \par double sigmaX, double sigmaY = 0, \par int rowBorderType = BORDER\_DEFAULT, \par int columnBorderType = -1);\r
 }\r
-See \hyperref[cppfunc.gpu.createGaussianFilter]{createGaussianFilter\_GPU}, \cvCppCross{GaussianBlur}.\r
+\begin{description}\r
+\cvarg{src}{The source image.}\r
+\cvarg{dst}{The destination image; will have the same size and the same type as \texttt{src}.}\r
+\cvarg{ksize}{The Gaussian kernel size; \texttt{ksize.width} and \texttt{ksize.height} can differ, but they both must be positive and odd. Or, they can be zero's, then they are computed from \texttt{sigma*}.}\r
+\cvarg{sigmaX, sigmaY}{The Gaussian kernel standard deviations in X and Y direction. If \texttt{sigmaY} is zero, it is set to be equal to \texttt{sigmaX}. If they are both zeros, they are computed from \texttt{ksize.width} and \texttt{ksize.height}, respectively, see \cvCppCross{getGaussianKernel}. To fully control the result regardless of possible future modification of all this semantics, it is recommended to specify all of \texttt{ksize}, \texttt{sigmaX} and \texttt{sigmaY}.}\r
+\cvarg{rowBorderType, columnBorderType}{The pixel extrapolation method; see \cvCppCross{borderInterpolate}.}\r
+\end{description}\r
+See also: \hyperref[cppfunc.gpu.createGaussianFilter]{createGaussianFilter\_GPU}, \cvCppCross{GaussianBlur}.\r
 \r
 \cvfunc{gpu::getMaxFilter\_GPU}\label{cppfunc.gpu.getMaxFilter}\r
-Create maximum filter. Supports only \texttt{CV\_8UC1} and \texttt{CV\_8UC4} source and dst type.\r
+Create maximum filter.\r
 \cvdefCpp{\r
 Ptr<BaseFilter\_GPU> getMaxFilter\_GPU(int srcType, int dstType, \par const Size\& ksize, Point anchor = Point(-1,-1));\r
 }\r
+\begin{description}\r
+\cvarg{srcType}{The input image type. Now support only \texttt{CV\_8UC1} and \texttt{CV\_8UC4}.}\r
+\cvarg{dstType}{The output image type. Now support only the same type as source.}\r
+\cvarg{ksize}{The kernel size.}\r
+\cvarg{anchor}{The anchor point. The default value (-1) means that the anchor is at the kernel center.}\r
+\end{description}\r
+This filter doesn't check indexes outside the image, so it can process only inner area. \r
 \r
 \cvfunc{gpu::getMinFilter\_GPU}\label{cppfunc.gpu.getMinFilter}\r
-Create minimum filter. Supports only \texttt{CV\_8UC1} and \texttt{CV\_8UC4} source and dst type.\r
+Create minimum filter.\r
 \cvdefCpp{\r
 Ptr<BaseFilter\_GPU> getMinFilter\_GPU(int srcType, int dstType, \par const Size\& ksize, Point anchor = Point(-1,-1));\r
 }\r
+\begin{description}\r
+\cvarg{srcType}{The input image type. Now support only \texttt{CV\_8UC1} and \texttt{CV\_8UC4}.}\r
+\cvarg{dstType}{The output image type. Now support only the same type as source.}\r
+\cvarg{ksize}{The kernel size.}\r
+\cvarg{anchor}{The anchor point. The default value (-1) means that the anchor is at the kernel center.}\r
+\end{description}\r
+This filter doesn't check indexes outside the image, so it can process only inner area. \r
index b692840..8b9ff28 100644 (file)
@@ -259,4 +259,211 @@ Following methods are supported for 32F images for now:
 \item CV\_TM\_SQDIFF \item CV\_TM\_CCORR\r
 \end{itemize}\r
 \r
-See also: \cvCppCross{matchTemplate}. 
\ No newline at end of file
+See also: \cvCppCross{matchTemplate}. \r
+\r
+\cvCppFunc{gpu::remap}\r
+Applies a generic geometrical transformation to an image.\r
+\cvdefCpp{\r
+void remap(const GpuMat\& src, GpuMat\& dst, \par const GpuMat\& xmap, const GpuMat\& ymap);\r
+}\r
+\begin{description}\r
+\cvarg{src}{Source image. Only \texttt{CV\_8UC1} and \texttt{CV\_8UC3} source types are supported.}\r
+\cvarg{dst}{Destination image. It will have the same size as \texttt{xmap} and the same type as \texttt{src}.}\r
+\cvarg{xmap}{The x values. Only \texttt{CV\_32FC1} type are supported.}\r
+\cvarg{ymap}{The y values. Only \texttt{CV\_32FC1} type are supported.}\r
+\end{description}\r
+The function remap transforms the source image using the specified map:\r
+\[\r
+\texttt{dst}(x,y) = \texttt{src}(xmap(x,y), ymap(x,y))\r
+\]\r
+Where values of pixels with non-integer coordinates are computed using bilinear interpolation.\newline\r
+See also: \cvCppCross{remap}.\r
+\r
+\cvCppFunc{gpu::drawColorDisp}\r
+Does coloring of disparity image.\r
+\cvdefCpp{\r
+void drawColorDisp(const GpuMat\& src\_disp, GpuMat\& dst\_disp, int ndisp);\r
+}\r
+\cvdefCpp{\r
+void drawColorDisp(const GpuMat\& src\_disp, GpuMat\& dst\_disp, int ndisp, \par const Stream\& stream);\r
+}\r
+\begin{description}\r
+\cvarg{src\_disp}{Source disparity image. Supports \texttt{CV\_8UC1} and \texttt{CV\_16SC1} types.}\r
+\cvarg{dst\_disp}{Output disparity image. Will have the same size as \texttt{src\_disp} and \texttt{CV\_8UC4} type in \texttt{BGRA} format (alpha = 255).}\r
+\cvarg{ndisp}{Number of disparities.}\r
+\cvarg{stream}{Stream fo async version.}\r
+\end{description}\r
+This function converts $[0..ndisp)$ interval to $[0..240, 1, 1]$ in \texttt{HSV} color space, than convert \texttt{HSV} color space to \texttt{RGB}.\r
+\r
+\cvCppFunc{gpu::reprojectImageTo3D}\r
+Reprojects disparity image to 3D space.\r
+\cvdefCpp{\r
+void reprojectImageTo3D(const GpuMat\& disp, GpuMat\& xyzw, \par const Mat\& Q);\r
+}\r
+\cvdefCpp{\r
+void reprojectImageTo3D(const GpuMat\& disp, GpuMat\& xyzw, \par const Mat\& Q, const Stream\& stream);\r
+}\r
+\begin{description}\r
+\cvarg{disp}{The input single-channel 8-bit unsigned ot 16-bit signed integer disparity image.}\r
+\cvarg{xyzw}{The output 4-channel floating-point image of the same size as \texttt{disp}. Each element of \texttt{xyzw(x,y)} will contain the 3D coordinates \texttt{(x,y,z,1)} of the point \texttt{(x,y)}, computed from the disparity map.}\r
+\cvarg{Q}{The $4 \times 4$ perspective transformation matrix that can be obtained with \cvCross{StereoRectify}{stereoRectify}.}\r
+\cvarg{stream}{Stream fo async version.}\r
+\end{description}\r
+See also: \cvCppCross{reprojectImageTo3D}.\r
+\r
+\cvCppFunc{gpu::cvtColor}\r
+Converts image from one color space to another.\r
+\cvdefCpp{\r
+void cvtColor(const GpuMat\& src, GpuMat\& dst, int code, int dcn = 0);\r
+}\r
+\cvdefCpp{\r
+void cvtColor(const GpuMat\& src, GpuMat\& dst, int code, int dcn, \par const Stream\& stream);\r
+}\r
+\begin{description}\r
+\cvarg{src}{The source image, 8-bit unsigned, 16-bit unsigned (\texttt{CV\_16UC...}) or single-precision floating-point.}\r
+\cvarg{dst}{The destination image; will have the same size and the same depth as \texttt{src}.}\r
+\cvarg{code}{The color space conversion code.}\r
+\cvarg{dcn}{The number of channels in the destination image; if the parameter is 0, the number of the channels will be derived automatically from \texttt{src} and the \texttt{code}.}\r
+\cvarg{stream}{Stream fo async version.}\r
+\end{description}\r
+3-channels color spaces (like \texttt{HSV}, \texttt{XYZ}, etc) can be stored to 4-channels image for better perfomance.\newline\r
+See also: \cvCppCross{cvtColor}.\r
+\r
+\cvCppFunc{gpu::threshold}\r
+Applies a fixed-level threshold to each array element.\r
+\cvdefCpp{\r
+double threshold(const GpuMat\& src, GpuMat\& dst, double thresh);\r
+}\r
+\begin{description}\r
+\cvarg{src}{Source array. Supports only \texttt{CV\_32FC1} type.}\r
+\cvarg{dst}{Destination array; will have the same size and the same type as \texttt{src}.}\r
+\cvarg{thresh}{Threshold value.}\r
+\end{description}\r
+Does only \texttt{THRESH\_TRUNC} threshold.\newline\r
+See also: \cvCppCross{threshold}.\r
+\r
+\cvCppFunc{gpu::resize}\r
+Resizes the image.\r
+\cvdefCpp{\r
+void resize(const GpuMat\& src, GpuMat\& dst, Size dsize, \par double fx=0, double fy=0, \par int interpolation = INTER\_LINEAR);\r
+}\r
+\begin{description}\r
+\cvarg{src}{Source image. Supports \texttt{CV\_8UC1}, \texttt{CV\_8UC4} types.}\r
+\cvarg{dst}{Destination image. It will have size \texttt{dsize} (when it is non-zero) or the size computed from \texttt{src.size()} and \texttt{fx} and \texttt{fy}. The type of \texttt{dst} will be the same as of \texttt{src}.}\r
+\cvarg{dsize}{The destination image size. If it is zero, then it is computed as: \[\texttt{dsize = Size(round(fx*src.cols), round(fy*src.rows))}\] Either \texttt{dsize} or both \texttt{fx} or \texttt{fy} must be non-zero.}\r
+\cvarg{fx}{The scale factor along the horizontal axis. When 0, it is computed as \[\texttt{(double)dsize.width/src.cols}\]} \r
+\cvarg{fy}{The scale factor along the vertical axis. When 0, it is computed as \[\texttt{(double)dsize.height/src.rows}\]}\r
+\cvarg{interpolation}{The interpolation method. Supports only \texttt{INTER\_NEAREST} and \texttt{INTER\_LINEAR}.}\r
+\end{description}\r
+See also: \cvCppCross{resize}.\r
+\r
+\cvCppFunc{gpu::warpAffine}\r
+Applies an affine transformation to an image.\r
+\cvdefCpp{\r
+void warpAffine(const GpuMat\& src, GpuMat\& dst, const Mat\& M, \par Size dsize, int flags = INTER\_LINEAR);\r
+}\r
+\begin{description}\r
+\cvarg{src}{Source image. Supports 8-bit unsigned, 16-bit unsigned, 32-bit signed amd 32-bit floating one, three and four channels images.}\r
+\cvarg{dst}{Destination image; will have size \texttt{dsize} and the same type as \texttt{src}.}\r
+\cvarg{M}{$2\times 3$ transformation matrix.}\r
+\cvarg{dsize}{Size of the destination image.}\r
+\cvarg{flags}{A combination of interpolation methods, see \cvCppCross{resize}, and the optional flag \texttt{WARP\_INVERSE\_MAP} that means that \texttt{M} is the inverse transformation ($\texttt{dst}\rightarrow\texttt{src}$). Supports only \texttt{INTER\_NEAREST}, \texttt{INTER\_LINEAR} and \texttt{INTER\_CUBIC} interpolation methods.}\r
+\end{description}\r
+See also: \cvCppCross{warpAffine}.\r
+\r
+\cvCppFunc{gpu::warpPerspective}\r
+Applies a perspective transformation to an image.\r
+\cvdefCpp{\r
+void warpPerspective(const GpuMat\& src, GpuMat\& dst, const Mat\& M, \par Size dsize, int flags = INTER\_LINEAR);\r
+}\r
+\begin{description}\r
+\cvarg{src}{Source image. Supports 8-bit unsigned, 16-bit unsigned, 32-bit signed amd 32-bit floating one, three and four channels images.}\r
+\cvarg{dst}{Destination image; will have size \texttt{dsize} and the same type as \texttt{src}.}\r
+\cvarg{M}{$2\times 3$ transformation matrix.}\r
+\cvarg{dsize}{Size of the destination image.}\r
+\cvarg{flags}{A combination of interpolation methods, see \cvCppCross{resize}, and the optional flag \texttt{WARP\_INVERSE\_MAP} that means that \texttt{M} is the inverse transformation ($\texttt{dst}\rightarrow\texttt{src}$). Supports only \texttt{INTER\_NEAREST}, \texttt{INTER\_LINEAR} and \texttt{INTER\_CUBIC} interpolation methods.}\r
+\end{description}\r
+See also: \cvCppCross{warpPerspective}.\r
+\r
+\cvCppFunc{gpu::rotate}\r
+Rotates an image around the origin (0,0) and then shifts it.\r
+\cvdefCpp{\r
+void rotate(const GpuMat\& src, GpuMat\& dst, Size dsize, \par double angle, double xShift = 0, double yShift = 0, \par int interpolation = INTER\_LINEAR);\r
+}\r
+\begin{description}\r
+\cvarg{src}{Source image. Supports \texttt{CV\_8UC1}, \texttt{CV\_8UC4} types.}\r
+\cvarg{dst}{Destination image; will have size \texttt{dsize} and the same type as \texttt{src}.}\r
+\cvarg{dsize}{Size of the destination image.}\r
+\cvarg{angle}{The angle of rotation in degrees.}\r
+\cvarg{xShift}{Shift along horizontal axis.}\r
+\cvarg{yShift}{Shift along vertical axis.}\r
+\cvarg{interpolation}{The interpolation method. Supports only \texttt{INTER\_NEAREST}, \texttt{INTER\_LINEAR} and \texttt{INTER\_CUBIC}.}\r
+\end{description}\r
+See also: \cvCppCross{gpu::warpAffine}.\r
+\r
+\cvCppFunc{gpu::copyMakeBorder}\r
+Copies 2D array to a larger destination array and pads borders with user-specifiable constant.\r
+\cvdefCpp{\r
+void copyMakeBorder(const GpuMat\& src, GpuMat\& dst, \par int top, int bottom, int left, int right, \par const Scalar\& value = Scalar());\r
+}\r
+\begin{description}\r
+\cvarg{src}{The source image. Supports \texttt{CV\_8UC1}, \texttt{CV\_8UC4}, \texttt{CV\_32SC1} and \texttt{CV\_32FC1} types.}\r
+\cvarg{dst}{The destination image; will have the same type as \texttt{src} and the size \texttt{Size(src.cols+left+right, src.rows+top+bottom)}.}\r
+\cvarg{top, bottom, left, right}{Specify how much pixels in each direction from the source image rectangle one needs to extrapolate, e.g. \texttt{top=1, bottom=1, left=1, right=1} mean that 1 pixel-wide border needs to be built.}\r
+\cvarg{value}{The border value.}\r
+\end{description}\r
+See also: \cvCppCross{copyMakeBorder}\r
+\r
+\cvCppFunc{gpu::rectStdDev}\r
+Computes the standard deviation of integral images. \r
+\cvdefCpp{\r
+void rectStdDev(const GpuMat\& src, const GpuMat\& sqr, GpuMat\& dst, \par const Rect\& rect);\r
+}\r
+\begin{description}\r
+\cvarg{src}{The source image. Supports only \texttt{CV\_32SC1} type.}\r
+\cvarg{sqr}{The squared source image. Supports only \texttt{CV\_32FC1} type.}\r
+\cvarg{dst}{The destination image; will have the same type and the same size as \texttt{src}.}\r
+\cvarg{rect}{Rectangular window.}\r
+\end{description}\r
+\r
+\cvCppFunc{gpu::evenLevels}\r
+Compute levels with even distribution.\r
+\cvdefCpp{\r
+void evenLevels(GpuMat\& levels, int nLevels, \par int lowerLevel, int upperLevel);\r
+}\r
+\begin{description}\r
+\cvarg{levels}{The destination array. \texttt{levels} will have 1 row and \texttt{nLevels} cols and \texttt{CV\_32SC1} type.}\r
+\cvarg{nLevels}{The number of levels being computed. \texttt{nLevels} must be at least 2}\r
+\cvarg{lowerLevel}{Lower boundary value of the lowest level.}\r
+\cvarg{upperLevel}{Upper boundary value of the greatest level.}\r
+\end{description}\r
+\r
+\cvCppFunc{gpu::histEven}\r
+Calculates histogram with evenly distributed bins.\r
+\cvdefCpp{\r
+void histEven(const GpuMat\& src, GpuMat\& hist, \par int histSize, int lowerLevel, int upperLevel);\r
+}\r
+\cvdefCpp{\r
+void histEven(const GpuMat\& src, GpuMat hist[4], \par int histSize[4], int lowerLevel[4], int upperLevel[4]);\r
+}\r
+\begin{description}\r
+\cvarg{src}{The source image. Supports 8-bit unsigned, 16-bit unsigned and 16-bit one or four channel images. For four channels image all channels are processed separately.}\r
+\cvarg{hist}{Destination histogram. Will have one row, \texttt{histSize} cols and \texttt{CV\_32S} type.}\r
+\cvarg{histSize}{Size of histogram.}\r
+\cvarg{lowerLevel}{Lower boundary of lowest level bin.}\r
+\cvarg{upperLevel}{Upper boundary of highest level bin.}\r
+\end{description}\r
+\r
+\cvCppFunc{gpu::histRange}\r
+Calculates histogram with bins determined by levels array.\r
+\cvdefCpp{\r
+void histRange(const GpuMat\& src, GpuMat\& hist, const GpuMat\& levels);\r
+}\r
+\cvdefCpp{\r
+void histRange(const GpuMat\& src, GpuMat hist[4], \par const GpuMat levels[4]);\r
+}\r
+\begin{description}\r
+\cvarg{src}{The source image. Supports 8-bit unsigned, 16-bit unsigned and 16-bit one or four channel images. For four channels image all channels are processed separately.}\r
+\cvarg{hist}{Destination histogram. Will have one row, \texttt{(levels.cols-1)} cols and \texttt{CV\_32SC1} type.}\r
+\cvarg{levels}{Number of levels in histogram.}\r
+\end{description}\r