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.

  1. Resize texture to match the source image size.
  2. Apply sepia matrix transform to the src.
  3. Calculate the weighted sum of the texture and src.
  4. Convert resulting image to the same color format as src.

Example.

srcImage dstImage