Introduction - If you have any usage issues, please Google them yourself
The Code is created based on the method described in the following paper "Contrast Preserving Decolorization", Cewu Lu, Li Xu, Jiaya Jia, IEEE International Conference on Computational Photography (ICCP), 2012