I am working on Emgu cv as a console application and I was trying to load an jpeg format image file from computer disk.I have tried the following ways but nothing is working?
Image input = Image.FromFile("C://Users//...//Image.jpg");
Bitmap master = (Bitmap)input;
Image<Gray,byte> InputImage = new Image<Gray,byte>(master);
RecognizeFaces(InputImage);
And this way too
Image<Bgr,byte> inputImage = new Image<Bgr,byte>("C:\\Users\...\Image.jpeg");
Image<Gray,byte> grayFrame = inputImage.Convert<Gray,byte>();
Both ways Its not working.Any other option? It stops running here
_ptr = CvInvoke.cvCreateImageHeader(new Size(cols, rows), CvDepth, numberOfChannels);
in a class known to be Image.cs of Emgu cv.And it throws type initializer for 'Emgu.CV.CvInvoke' Exception.The File path is perfect/correct.the error looks like this.
http://www.mediafire.com/view/myfiles/#6557l4iwzpza7m5 Could you please tell me what i am doing wrong here? Thanks