コード例 #1
0
        public static List <Minutia> ExtractFeatures(Bitmap image)
        {
            var orientationImage = ImageOrietantionExtractor.ExtractFeatures(image);
            var matrix           = SkeletonImageExtractor.ExtractSkeletonImage(image, orientationImage);

            return(GetMinutiaes(matrix, orientationImage));
        }
コード例 #2
0
        public static SkeletonImage ExtractFeatures(Bitmap image)
        {
            var orientationImage = ImageOrietantionExtractor.ExtractFeatures(image);
            var skeletonImage    = ExtractSkeletonImage(image, orientationImage);

            var img = new byte[skeletonImage.Width * skeletonImage.Height];

            for (var i = 0; i < skeletonImage.Height; i++)
            {
                for (var j = 0; j < skeletonImage.Width; j++)
                {
                    img[skeletonImage.Width * i + j] = (byte)skeletonImage[i, j];
                }
            }

            return(new SkeletonImage(img, skeletonImage.Width, skeletonImage.Height));
        }