rgb2ycgcr convert RGB image to YCgCr and HSI image refer to: https://blog.csdn.net/lkj345/article/details/50786280