Antique¶
Applies antique effect to image.
- int antique(cv::InputArray src, cv::InputArray texture, cv::OutputArray dst)¶
Parameters: - src – RGB image.
- texture – RGB image that is overlaid with the src image as a texture of an old photo.
- dst – Destination image of the same size and the same type as src.
Returns: Error code.
The algorithm.
- Resize texture to match the source image size.
- Apply sepia matrix transform to the src.
- Calculate the weighted sum of the texture and src.
- Convert resulting image to the same color format as src.
Example.

