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.
2 | No.2 Revision |
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.