Method TextureFlattening
- Namespace
- OpenCvSharp
- Assembly
- OpenCvSharp.dll
TextureFlattening(InputArray, InputArray, OutputArray, float, float, int)
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.
public static void TextureFlattening(InputArray src, InputArray mask, OutputArray dst, float lowThreshold = 30, float highThreshold = 45, int kernelSize = 3)
Parameters
srcInputArrayInput 8-bit 3-channel image.
maskInputArrayInput 8-bit 1 or 3-channel image.
dstOutputArrayOutput image with the same size and type as src.
lowThresholdfloatRange from 0 to 100.
highThresholdfloatValue > 100.
kernelSizeintThe size of the Sobel kernel to be used.