Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

You have to initial the image Matrix like this:

Mat image =  new Mat(new Size(Width,Height ),CvType.CV_8U);// Change your CvType as you need.

and then :

image = Highgui.imread(file.getAbsolutePath());

Hope it solve your problem.

You have to initial the image Matrix like this:

Mat image =  new Mat(new Size(Width,Height ),CvType.CV_8U);// Change your CvType as you need.

and then :

image = Highgui.imread(file.getAbsolutePath());

Hope it solve your problem.