Color transfer from source image to target image using opencv
Learn open cv from openCV documentation
This module is imported in color.py
-
Convert the images from the RGB to L*a*b* color space
-
Compute color statistics for the source and target images
-
Subtract the means from the target image. Scale by the standard deviations
-
Add in the source mean
-
Merge the channels together and convert back to the RGB colorspace
- Open terminal
- Run command in this sequence :
$ python color.py -source source.jpg -target target.jpg