开发者

Emgu CV SURFFeature Error

I downloaded the Emgu CV (Computer Vision) library and I'm just having a look at the SURFFeature example.

I'm trying to put two new images in to compare, instead of the examples given, but on this line I get an error with the new images:

Image<Gray, Byte> modelImage = new Image<Gray, byte>("me.png");

I get this exception:

OpenCV: Array should be CvMat or IplImage

I don't understand why 开发者_如何学编程it won't accept my image, any ideas anyone?

Tony


I use Emgu CV 2, and i wrote the same code, but there were no problem in my program. If you also use this version, and stil have problem try this solution:

    Bitmap bmp = new Bitmap("me.png");
    
    Image Gray, Byte> modelImage = new Image Gray, byte>(bmp);
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜