使用SourceAFIS库无法使用C#中的二进制平滑指纹图像过滤器

时间:2014-07-14 12:26:43

标签: c# image-processing filter fingerprint

我正在研究指纹分析软件,我想做SourceAFIS库的二进制平滑过滤器,

原始图片

OriginalImage

需要的结果

Result Needed

但是我没有从下面的代码中得到相同的结果

    DpiAdjuster.Adjust(this, 500, delegate()
                            {

                                byte[,] image = ImageInverter.GetInverted(fp1.Image);

                                BlockMap blocks = new BlockMap(new SourceAFIS.General.Size(image.GetLength(1), image.GetLength(0)), BlockSize);

                                short[, ,] histogram = Histogram.Analyze(blocks, image);
                                short[, ,] smoothHistogram = Histogram.SmoothAroundCorners(blocks, histogram);
                                BinaryMap mask = Mask.ComputeMask(blocks, histogram);
                                float[,] equalized = Equalizer.Equalize(blocks, image, smoothHistogram, mask);

                                byte[,] orientation = Orientation.Detect(equalized, mask, blocks);
                                float[,] smoothed = RidgeSmoother.Smooth(equalized, orientation, mask, blocks);
                                float[,] orthogonal = OrthogonalSmoother.Smooth(smoothed, orientation, mask, blocks);

                                BinaryMap binary = Binarizer.Binarize(smoothed, orthogonal, mask, blocks);
                                binary=BinarySmoother.Filter(binary);
}

但是我得到了这个输出

Outupt获取

Output

请帮助

0 个答案:

没有答案