How to detect the skin color of face from the source image in ios 5?

青春壹個敷衍的年華 提交于 2019-11-29 02:46:01

you can create the two images one is the original image and other one is the modified image pixels alone and fix that... and and overlay the images by adding the original image first and the modified pixel alone over the original....

  for (int index=0; index<length; index+=4) 
        {
            if (data2[index]==data1[index])
            {
                data1[index]=data2[index];
                data1[index+1]=data2[index+1];//aRed+value;//aRed;//13; 
                data1[index+2]=data2[index+2];//aGreen;//aGreen;//43; 
                data1[index+3]=data2[index+3];
            }
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!