colorTrans
Color transfer from source image to target image using opencv
openCV documentation
Learn open cv fromTransferColor Module
This module is imported in color.py
trans_color function
-
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
In order to run this script
- Open terminal
- Run command in this sequence :
$ python color.py -source source.jpg -target target.jpg