cv.textureFlattening - MATLAB File Help |
Texture Flattening
dst = cv.textureFlattening(src, mask)
dst = cv.textureFlattening(src, mask, 'OptionName',optionValue, ...)
src
.src
and mask
and output dst
, between MATLAB's RGB order and OpenCV's
BGR (input: RGB->BGR, output: BGR->RGB). default falseBy 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.
The algorithm assumes that the color of the source image is close to that of the destination. This assumption means that when the colors don't match, the source image color gets tinted toward the color of the destination image.