mirror of
https://github.com/opencv/opencv.git
synced 2024-11-30 06:10:02 +08:00
f85a615f3f
Update 1 update 2 Update 3 Update 4 Update 5 update 6 Update 7 Update 8 Update 9 Update 10 Update 11 Update 12 Update 13 Update 14 Update 15 Update 16 Update 17 Update 18 Update 19 Update 20 Update 21 Update 22 Removed Headers Update 23 Update 24 Update 25 Update 26 Update 27 Update 28
90 lines
2.5 KiB
ReStructuredText
90 lines
2.5 KiB
ReStructuredText
Non-Photorealistic Rendering
|
|
============================
|
|
|
|
.. highlight:: cpp
|
|
|
|
edgePreservingFilter
|
|
--------------------
|
|
|
|
Filtering is the fundamental operation in image and video processing. Edge-preserving smoothing filters are used in many different applications.
|
|
|
|
.. ocv:function:: void edgePreservingFilter(InputArray src, OutputArray dst, int flags = 1, float sigma_s = 60, float sigma_r = 0.4)
|
|
|
|
:param src: Input 8-bit 3-channel image.
|
|
|
|
:param dst: Output 8-bit 3-channel image.
|
|
|
|
:param flags: Edge preserving filters:
|
|
|
|
* **RECURS_FILTER**
|
|
|
|
* **NORMCONV_FILTER**
|
|
|
|
:param sigma_s: Range between 0 to 200.
|
|
|
|
:param sigma_r: Range between 0 to 1.
|
|
|
|
|
|
detailEnhance
|
|
-------------
|
|
This filter enhances the details of a particular image.
|
|
|
|
.. ocv:function:: void detailEnhance(InputArray src, OutputArray dst, float sigma_s = 10, float sigma_r = 0.15)
|
|
|
|
:param src: Input 8-bit 3-channel image.
|
|
|
|
:param dst: Output image with the same size and type as ``src``.
|
|
|
|
:param sigma_s: Range between 0 to 200.
|
|
|
|
:param sigma_r: Range between 0 to 1.
|
|
|
|
|
|
pencilSketch
|
|
------------
|
|
Pencil-like non-photorealistic line drawing
|
|
|
|
.. ocv:function:: void pencilSketch(InputArray src, OutputArray dst1, OutputArray dst2, float sigma_s = 60, float sigma_r = 0.07, float shade_factor = 0.02)
|
|
|
|
:param src: Input 8-bit 3-channel image.
|
|
|
|
:param dst1: Output 8-bit 1-channel image.
|
|
|
|
:param dst2: Output image with the same size and type as ``src``.
|
|
|
|
:param sigma_s: Range between 0 to 200.
|
|
|
|
:param sigma_r: Range between 0 to 1.
|
|
|
|
:param shade_factor: Range between 0 to 0.1.
|
|
|
|
|
|
stylization
|
|
-----------
|
|
Stylization aims to produce digital imagery with a wide variety of effects not focused on photorealism. Edge-aware filters are ideal for stylization, as they can abstract regions of low contrast while preserving, or enhancing, high-contrast features.
|
|
|
|
.. ocv:function:: void stylization(InputArray src, OutputArray dst, float sigma_s = 60, float sigma_r = 0.45)
|
|
|
|
:param src: Input 8-bit 3-channel image.
|
|
|
|
:param dst: Output image with the same size and type as ``src``.
|
|
|
|
:param sigma_s: Range between 0 to 200.
|
|
|
|
:param sigma_r: Range between 0 to 1.
|
|
|
|
|
|
edgeEnhance
|
|
-----------
|
|
Able to suppress low-amplitude details and enhance edges.
|
|
|
|
.. ocv:function:: void edgeEnhance(InputArray src, OutputArray dst, float sigma_s = 60, float sigma_r = 0.45)
|
|
|
|
:param src: Input 8-bit 3-channel image.
|
|
|
|
:param dst: Output 8-bit 1-channel image.
|
|
|
|
:param sigma_s: Range between 0 to 200.
|
|
|
|
:param sigma_r: Range between 0 to 1.
|