예제 #1
0
        public static IplImage extractSkinAsIpl(IplImage target)
        {
            IplImage origin  = target.Clone();
            IplImage maskImg = ConvertToBinaryIpl(origin);

            maskImg.Not(maskImg);
            target.AndS(0, target, maskImg);
            target.Smooth(target, SmoothType.Median);

            //temp test code
            IplImage temp = new IplImage(target.Size, BitDepth.U8, 1);

            target.CvtColor(temp, ColorConversion.BgrToGray);
            target = temp;
            //
            return(target);
        }