C# :Emgu CV creating image problem

Posted by Meko on Stack Overflow See other posts from Stack Overflow or by Meko
Published on 2010-05-13T22:45:40Z Indexed on 2010/05/13 22:54 UTC
Read the original article Hit count: 878

Filed under:
|

Hi all. When I am trying to create image like

  Image<Gray, Byte> testImage = new Image<Gray, Byte>("david.jpg");

When compiling it gaves An unhandled exception of type 'System.ArgumentException' occurred in System.Drawing.dllexception. But if I use

  DialogResult result = openFileDialog1.ShowDialog();
        if (result == DialogResult.OK || result == DialogResult.Yes)
        {
            textBox1.Text = openFileDialog1.FileName;
        }

        Image<Gray, Byte> testImage = new Image<Gray, Byte>( textBox1.Text);

It works.Problem is that it cant find path? I am adding all .jpg files in project folder.

© Stack Overflow or respective owner

Related posts about c#

Related posts about emgucv