Mat data type is not compatible: 0
float gaborMR[] = new float[gabor_height*gabor_width];
Mat gaborMatR = new Mat(gabor_height, gabor_width, CvType.CV_32FC1);
gaborMatR.put(0,0,gaborMR);
Mat GdstlenaR = new Mat(src.rows(),src.cols(), CvType.CV_32FC1);
Imgproc.filter2D(grayMat, GdstlenaR, src.depth(), gaborMatR);
float gR[] = new float[src.rows()*src.cols()];
GdstlenaR.get(0, 0,gR); // here, it tells me:Mat data type is not compatible: 0
Hi! I don't know why this happend. Could you answer me? Thanks in advance!
if you want the output-image to be float, try :
Thank you very much !