Click or drag to resize

Cv2TextureFlattening Method

By retaining only the gradients at edge locations, before integrating with the Poisson solver, one washes out the texture of the selected region, giving its contents a flat aspect. Here Canny Edge Detector is used.

Namespace:  OpenCvSharp
Assembly:  OpenCvSharp (in OpenCvSharp.dll) Version: 1.0.0
Syntax
public static void TextureFlattening(
	InputArray src,
	InputArray mask,
	OutputArray dst,
	float lowThreshold = 30f,
	float highThreshold = 45f,
	int kernelSize = 3
)

Parameters

src
Type: OpenCvSharpInputArray
Input 8-bit 3-channel image.
mask
Type: OpenCvSharpInputArray
Input 8-bit 1 or 3-channel image.
dst
Type: OpenCvSharpOutputArray
Output image with the same size and type as src.
lowThreshold (Optional)
Type: SystemSingle
Range from 0 to 100.
highThreshold (Optional)
Type: SystemSingle
Value > 100.
kernelSize (Optional)
Type: SystemInt32
The size of the Sobel kernel to be used.
See Also