c#中的虹膜识别项目 [英] iris recognition project in c#
本文介绍了c#中的虹膜识别项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
i需要快速帮助。
我正在用c#编写虹膜身份项目,我遇到了2个问题。
首先是我要从图像中删除瞳孔不知道该怎么办?我在它上方绘制一个椭圆,但如果我可以删除它会更好。
第二个是我要解开图像(donat形状)并将其保存为512,64图像。我努力但却找不到解决方案。
有人会帮我吗?
i need a quick help.
i''m writing iris identity project in c# and i faced 2 problems.
the first is that i want to remove the pupil from the image put dont know how to do it? i draw an ellipse above it but if i can remove it that will be better.
the second is i want to unwrapped the image (the donat shape) and save it in a 512 , 64 image. i tried so hard but fail to find solution.
would anybody help me please?
int int_Width =512;
int int_Height =64 ;
//Create the buffered image with the correct size
Bitmap bImage = new Bitmap(int_Width, int_Height, b.PixelFormat);
//Get the graphics of the buffered image
Graphics g = Graphics.FromImage(bImage);
MemoryStream ms = new MemoryStream();
finalImage.Save(ms, System.Drawing.Imaging.ImageFormat.Bmp);
byte[] ary = ms.ToArray();
这是我的最后一次尝试,我不知道如何继续。
this is my last try, i dont know how to continue.
推荐答案
据我了解你的问题,你希望你的程序自动剪掉瞳孔!?!所以它必须找到它。也许您必须与OpenCV取得联系:
http://opencv.willowgarage.com/wiki/ [ ^ ]
有.net的包装:
http://www.emgu.com/wiki/ index.php / Main_Page [ ^ ]
希望这有帮助......
as far as i understand your problem, you want your program to automatically cut out the pupil!?! So it has to find it. Maybe you have to get in contact with OpenCV:
http://opencv.willowgarage.com/wiki/[^]
there is an wrapper for .net:
http://www.emgu.com/wiki/index.php/Main_Page[^]
hope this helps...
这篇关于c#中的虹膜识别项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文