Please let me know how to convert Mat to IplImage in JAVA. Thank you in advance. [closed]
I've tried using the following code; Mat mat_img; IplImage ipl_img = mat_img; but it is giving me the following error, Type mismatch: cannot convert from Mat to opencv_core.IplImage
neither an IplImage class, or a opencv_core package are in opencv's java wrappers
please clarify, where the offending IplImage class is coming from.
It is from opencv_core class in javacv.cpp package.
javacv is a 3rdparty wrapper , independant from opencv's own java bindings. both are basically incompatible.
any chance, you can avoid using javacv at all ?
I'm working on face recognition in java and removing javacv will break the entire code. I just need something that'll convert Mat to IplImage since facerecognizer.predict() uses IplImage as an argument.
sorry, but we'll have to close it then.