0
我一直在網上衝浪了相當長的一段時間有關比較的指紋圖像,我發現現在emgu是非常有趣的問題是比較在C#中使用Emgu兩幅指紋圖像
是否準確?
這是可能的(我認爲)
- 不知道去哪裏(指導我請)
我發現這個地方
private Image<Bgr, byte> bwareaopen(Image<Bgr, byte> Input_Image, int threshold)
{
Image<Bgr, byte> bwresults = Input_Image.Copy();
using (MemStorage storage = new MemStorage())
{
for (Contour<Point> contours = Input_Image.Convert<Gray, byte>().FindContours(Emgu.CV.CvEnum.CHAIN_APPROX_METHOD.CV_CHAIN_APPROX_SIMPLE, Emgu.CV.CvEnum.RETR_TYPE.CV_RETR_LIST, storage); contours != null; contours = contours.HNext)
{
Contour<Point> currentContour = contours.ApproxPoly(contours.Perimeter * 0.05, storage);
if (currentContour.Area < threshold)
{
for (int i = currentContour.BoundingRectangle.X; i < currentContour.BoundingRectangle.X + currentContour.BoundingRectangle.Width; i++)
{
for (int j = currentContour.BoundingRectangle.Y; j < currentContour.BoundingRectangle.Y + currentContour.BoundingRectangle.Height; j++)
{
bwresults.Data[j, i, 0] = 0;
bwresults.Data[j, i, 1] = 0;
bwresults.Data[j, i, 2] = 0;
}
}
}
}
}
return bwresults;
}
,但我不想法是什麼,當我嘗試運行它時,它給了我一個錯誤。
我想你可能會誤解指紋識別的工作原理。這不是一個圖像比較(因爲部分指紋也存在),而是該指紋特有的指紋特徵。實際上,沒有2次掃描的手指會產生相同的圖像 - 請記住掃描儀的分辨率也會改變圖像的顯示方式 – Takarii