I am trying to understand how to make this conversion but I still have the same error. I need to convert IN JAVA an ipl image into mat to get the pyrDown of the image. Here the error: Type mismatch: cannot convert from opencv_core.IplImage to Mat
public class Image {
IplImage i;
public void downsample(){
System.loadLibrary( Core.NATIVE_LIBRARY_NAME );
Mat Out= new Mat();
Mat in(i); // error in this line
//Down sample the image by factor of 2
Imgproc.pyrDown(in, Out);
}
}
Convert IplImage to Mat is simple.
vice versa