Since I cannot find any implementation online to convert images between color spaces (rgb, lab, xyz), I decided to write one.
The results are verified using skimage
and the scripts are executed with python3, tensorflow r1.8
For further usage (or examples), please refer to the file, unit_test.py
. I compared the results to the corresponding functions in skimage
and can be executed like python3 unit_test.py --target [TARGET]