[−][src]Function opencv::photo::pencil_sketch
pub fn pencil_sketch(
src: &dyn ToInputArray,
dst1: &mut dyn ToOutputArray,
dst2: &mut dyn ToOutputArray,
sigma_s: f32,
sigma_r: f32,
shade_factor: f32
) -> Result<()>
@example samples/cpp/tutorial_code/photo/non_photorealistic_rendering/npr_demo.cpp An example using non-photorealistic line drawing functions
Pencil-like non-photorealistic line drawing
Parameters
- src: Input 8-bit 3-channel image.
- dst1: Output 8-bit 1-channel image.
- dst2: Output image with the same size and type as src.
- sigma_s: %Range between 0 to 200.
- sigma_r: %Range between 0 to 1.
- shade_factor: %Range between 0 to 0.1.
C++ default parameters
- sigma_s: 60
- sigma_r: 0.07f
- shade_factor: 0.02f