i want mat to 1row mat(for SVM)

asked 2014-05-19 06:23:38 -0600

황인학 gravatar image

updated 2014-05-19 06:56:47 -0600

i want make facial emotion recognizer

this is my code image description

when i use loadface.clone().reshape(1, 1).convertTo(rowMat, org.opencv.core.CvType.CV_64FC1, 1, 0);

in MFC it is done well

but in Android image description

image size 256*256 and i think loadface is not null because when i print log.i loadface.cols and loadface.rows printed 256 256 please help me

edit retag flag offensive close merge delete

Comments

1

null pointer exception. either your image was not loaded, or rowmat not initialized.

(next time, please avoid screenshots, instead copy code/logcat output)

berak gravatar imageberak ( 2014-05-19 06:34:05 -0600 )edit

when i initalize rowMat onCreate rowMat = new Mat(1, 65536, org.opencv.core.CvType.CV_64FC1); error too

황인학 gravatar image황인학 ( 2014-05-19 06:47:54 -0600 )edit