Start » Filter Reference » OpenCV » Computational Photography » cvTextureFlattening
Module: | OpenCV |
---|
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.
Name | Type | Range | Description | |
---|---|---|---|---|
inImage | Image | Input image | ||
inMask | Region | |||
inLowThreshold | Real | 0.0 - 100.0 | ||
inHighThreshold | Real | 0.0 - 100.0 | ||
inKernelSize | Integer | 3 - 7 | The size of the Sobel kernel to be used. | |
outImage | Image | Output image |
Requirements
For input inImage only pixel formats are supported: 3⨯uint8.
Read more about pixel formats in Image documentation.
Errors
This filter can throw an exception to report error. Read how to deal with errors in Error Handling.
List of possible exceptions:
Error type | Description |
---|---|
DomainError | Not supported inImage pixel format in AvsFilter_cvTextureFlattening. Supported formats: 3xUInt8. |
Complexity Level
This filter is available on Basic Complexity Level.