我正在研究指纹分析软件,我想做SourceAFIS库的二进制平滑过滤器,
原始图片
需要的结果
但是我没有从下面的代码中得到相同的结果
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获取
请帮助