Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Mat data type is not compatible: 0

float gaborMR[] = new float[gabor_heightgabor_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 offer me an solution? Thanks in advance!

Mat data type is not compatible: 0

float gaborMR[] = new float[gabor_heightgabor_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 offer me an solution? answer me? Thanks in advance!

click to hide/show revision 3
No.3 Revision

updated 2014-03-07 01:48:52 -0600

berak gravatar image

Mat data type is not compatible: 0

float gaborMR[] = new float[gabor_heightgabor_width];
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()]; 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!