Introduction - If you have any usage issues, please Google them yourself
To read into the color, non-color pictures, all pictures in the RGB conversion from YCbCr. Reading came when I was using four-dimensional array to save color images and non-color pictures. The first dimension is used to store a few pictures, followed by the resolution, there are several channel. Respectively after reading came in color, non-color of the Cb, Cr to make the statistical. Respectively, will be Cb, Cr of the mean and variance. Then in turn were brought into the Multivariate Normal Density formula to obtain color, the probability of non-skin color appears. Finally got two chances and then divided the value obtained values, brought, and compared with threshold values, thereby to determine the Input of the map whether the color pixel.