@ -81,6 +81,9 @@ The function ``imshow`` displays an image in the specified window. If the window
If window was created with OpenGL support, ``imshow`` also support :ocv:class:`ogl::Buffer` , :ocv:class:`ogl::Texture2D` and :ocv:class:`gpu::GpuMat` as input.
If window was created with OpenGL support, ``imshow`` also support :ocv:class:`ogl::Buffer` , :ocv:class:`ogl::Texture2D` and :ocv:class:`gpu::GpuMat` as input.
..note:: This function should be followed by ``waitKey`` function which displays the image for specified milliseconds. Otherwise, it won't display the image.
@ -759,7 +759,7 @@ Dilates an image by using a specific structuring element.
:param dst:output image of the same size and type as ``src``.
:param dst:output image of the same size and type as ``src``.
:param element:structuring element used for dilation; if ``element=Mat()`` , a ``3 x 3`` rectangular structuring element is used.
:param kernel:structuring element used for dilation; if ``element=Mat()`` , a ``3 x 3`` rectangular structuring element is used. Kernel can be created using :ocv:func:`getStructuringElement`
:param anchor:position of the anchor within the element; default value ``(-1, -1)`` means that the anchor is at the element center.
:param anchor:position of the anchor within the element; default value ``(-1, -1)`` means that the anchor is at the element center.
@ -782,11 +782,16 @@ The function supports the in-place mode. Dilation can be applied several ( ``ite
:ocv:func:`erode`,
:ocv:func:`erode`,
:ocv:func:`morphologyEx`,
:ocv:func:`morphologyEx`,
:ocv:func:`createMorphologyFilter`
:ocv:func:`createMorphologyFilter`
:ocv:func:`getStructuringElement`
.. Sample code::
.. Sample code::
* : An example using the morphological dilate operation can be found at opencv_source_code/samples/cpp/morphology2.cpp
* : An example using the morphological dilate operation can be found at opencv_source_code/samples/cpp/morphology2.cpp
erode
erode
-----
-----
Erodes an image by using a specific structuring element.
Erodes an image by using a specific structuring element.
@ -801,7 +806,7 @@ Erodes an image by using a specific structuring element.
:param dst:output image of the same size and type as ``src``.
:param dst:output image of the same size and type as ``src``.
:param element:structuring element used for erosion; if ``element=Mat()`` , a ``3 x 3`` rectangular structuring element is used.
:param kernel:structuring element used for erosion; if ``element=Mat()`` , a ``3 x 3`` rectangular structuring element is used. Kernel can be created using :ocv:func:`getStructuringElement`.
:param anchor:position of the anchor within the element; default value ``(-1, -1)`` means that the anchor is at the element center.
:param anchor:position of the anchor within the element; default value ``(-1, -1)`` means that the anchor is at the element center.
@ -823,7 +828,8 @@ The function supports the in-place mode. Erosion can be applied several ( ``iter
@ -799,7 +799,6 @@ See the sample ``grabcut.cpp`` to learn how to use the function.
..[Meyer92] Meyer, F. *Color Image Segmentation*, ICIP92, 1992
..[Meyer92] Meyer, F. *Color Image Segmentation*, ICIP92, 1992
..[Telea04] Alexandru Telea, *An Image Inpainting Technique Based on the Fast Marching Method*. Journal of Graphics, GPU, and Game Tools 9 1, pp 23-34 (2004)
@ -23,7 +23,7 @@ Restores the selected region in an image using the region neighborhood.
:param flags:Inpainting method that could be one of the following:
:param flags:Inpainting method that could be one of the following:
* **INPAINT_NS** Navier-Stokes based method.
* **INPAINT_NS** Navier-Stokes based method [Navier01]
* **INPAINT_TELEA** Method by Alexandru Telea [Telea04]_.
* **INPAINT_TELEA** Method by Alexandru Telea [Telea04]_.
@ -36,3 +36,9 @@ for more details.
* : An example using the inpainting technique can be found at opencv_source_code/samples/cpp/inpaint.cpp
* : An example using the inpainting technique can be found at opencv_source_code/samples/cpp/inpaint.cpp
* : PYTHON : An example using the inpainting technique can be found at opencv_source_code/samples/python2/inpaint.py
* : PYTHON : An example using the inpainting technique can be found at opencv_source_code/samples/python2/inpaint.py
..[Telea04] Telea, Alexandru. "An image inpainting technique based on the fast marching method." Journal of graphics tools 9, no. 1 (2004): 23-34.
..[Navier01] Bertalmio, Marcelo, Andrea L. Bertozzi, and Guillermo Sapiro. "Navier-stokes, fluid dynamics, and image and video inpainting." In Computer Vision and Pattern Recognition, 2001. CVPR 2001. Proceedings of the 2001 IEEE Computer Society Conference on, vol. 1, pp. I-355. IEEE, 2001.
:param templateImage:single-channel template image; ``CV_8U`` or ``CV_32F`` array.
:param templateImage:single-channel template image; ``CV_8U`` or ``CV_32F`` array.
:param inputImage:single-channel input image which should be warped with the final ``warpMatrix`` in order to provide an image similar to ``templateImage``, same type as ``temlateImage``.
:param inputImage:single-channel input image which should be warped with the final ``warpMatrix`` in order to provide an image similar to ``templateImage``, same type as ``temlateImage``.