mirror of
https://github.com/opencv/opencv.git
synced 2025-01-18 22:44:02 +08:00
Updated Documentation
This commit is contained in:
parent
41df63aacd
commit
14631be59f
@ -7,7 +7,7 @@ seamlessClone
|
||||
-------------
|
||||
Image editing tasks concern either global changes (color/intensity corrections, filters, deformations) or local changes concerned to a selection.
|
||||
Here we are interested in achieving local changes, ones that are restricted to a region manually selected (ROI), in a seamless and effortless manner.
|
||||
The extent of the changes ranges from slight distortions to complete replacement by novel content.
|
||||
The extent of the changes ranges from slight distortions to complete replacement by novel content [PM03]_.
|
||||
|
||||
.. ocv:function:: void seamlessClone( InputArray src, InputArray dst, InputArray mask, Point p, OutputArray blend, int flags)
|
||||
|
||||
@ -25,13 +25,9 @@ The extent of the changes ranges from slight distortions to complete replacement
|
||||
|
||||
* **NORMAL_CLONE** The power of the method is fully expressed when inserting objects with complex outlines into a new background
|
||||
|
||||
* **MIXED_CLONE** The classic method, color-based selection and alpha
|
||||
masking might be time consuming and often leaves an undesirable halo. Seamless
|
||||
cloning, even averaged with the original image, is not effective. Mixed seamless
|
||||
cloning based on a loose selection proves effective.
|
||||
* **MIXED_CLONE** The classic method, color-based selection and alpha masking might be time consuming and often leaves an undesirable halo. Seamless cloning, even averaged with the original image, is not effective. Mixed seamless cloning based on a loose selection proves effective.
|
||||
|
||||
* **FEATURE_EXCHANGE** Feature exchange allows the user to replace easily certain
|
||||
features of one object by alternative features.
|
||||
* **FEATURE_EXCHANGE** Feature exchange allows the user to easily replace certain features of one object by alternative features.
|
||||
|
||||
|
||||
|
||||
@ -97,3 +93,6 @@ region, giving its contents a flat aspect. Here Canny Edge Detector is used.
|
||||
**NOTE:**
|
||||
|
||||
The algorithm assumes that the color of the source image is close to that of the destination. This assumption means that when the colors don't match, the source image color gets tinted toward the color of the destination image.
|
||||
|
||||
.. [PM03] Patrick Perez, Michel Gangnet, Andrew Blake, "Poisson image editing", ACM Transactions on Graphics (SIGGRAPH), 2003.
|
||||
|
||||
|
@ -6,14 +6,16 @@ Decolorization
|
||||
decolor
|
||||
-------
|
||||
|
||||
Transforms a color image to a grayscale image. It is a basic tool in digital printing, stylized black-and-white photograph rendering, and in many single channel image processing applications.
|
||||
Transforms a color image to a grayscale image. It is a basic tool in digital printing, stylized black-and-white photograph rendering, and in many single channel image processing applications [CL12]_.
|
||||
|
||||
.. ocv:function:: void decolor( InputArray src, OutputArray grayscale, OutputArray color_boost )
|
||||
|
||||
:param src: Input 8-bit 3-channel image.
|
||||
:param src: Input 8-bit 3-channel image.
|
||||
|
||||
:param grayscale: Output 8-bit 1-channel image.
|
||||
|
||||
:param color_boost: Output 8-bit 3-channel image.
|
||||
|
||||
This function is to be applied on color images.
|
||||
|
||||
.. [CL12] Cewu Lu, Li Xu, Jiaya Jia, "Contrast Preserving Decolorization", IEEE International Conference on Computational Photography (ICCP), 2012.
|
||||
|
@ -356,7 +356,7 @@ Creates MergeRobertson object
|
||||
.. ocv:function:: Ptr<MergeRobertson> createMergeRobertson()
|
||||
|
||||
References
|
||||
==========
|
||||
---------------------------
|
||||
|
||||
.. [DM03] F. Drago, K. Myszkowski, T. Annen, N. Chiba, "Adaptive Logarithmic Mapping For Displaying High Contrast Scenes", Computer Graphics Forum, 2003, 22, 419 - 426.
|
||||
|
||||
|
@ -6,7 +6,7 @@ Non-Photorealistic Rendering
|
||||
edgePreservingFilter
|
||||
--------------------
|
||||
|
||||
Filtering is the fundamental operation in image and video processing. Edge-preserving smoothing filters are used in many different applications.
|
||||
Filtering is the fundamental operation in image and video processing. Edge-preserving smoothing filters are used in many different applications [EM11]_.
|
||||
|
||||
.. ocv:function:: void edgePreservingFilter(InputArray src, OutputArray dst, int flags = 1, float sigma_s = 60, float sigma_r = 0.4f)
|
||||
|
||||
@ -16,9 +16,9 @@ Filtering is the fundamental operation in image and video processing. Edge-prese
|
||||
|
||||
:param flags: Edge preserving filters:
|
||||
|
||||
* **RECURS_FILTER**
|
||||
* **RECURS_FILTER** = 1
|
||||
|
||||
* **NORMCONV_FILTER**
|
||||
* **NORMCONV_FILTER** = 2
|
||||
|
||||
:param sigma_s: Range between 0 to 200.
|
||||
|
||||
@ -72,3 +72,5 @@ Stylization aims to produce digital imagery with a wide variety of effects not f
|
||||
:param sigma_s: Range between 0 to 200.
|
||||
|
||||
:param sigma_r: Range between 0 to 1.
|
||||
|
||||
.. [EM11] Eduardo S. L. Gastal, Manuel M. Oliveira, "Domain transform for edge-aware image and video processing", ACM Trans. Graph. 30(4): 69, 2011.
|
||||
|
Loading…
Reference in New Issue
Block a user