Ask Your Question
0

Android: Mat converting to CV_8U

asked 2013-02-07 10:49:05 -0600

pietmau gravatar image

Hi and thanks for your help!

I am trying to use CascadeClassifier.detectMultiScale()

I understand that it takes as an input a Mat of type CV_8U.

Therefore, after using bitmapToMat()

I try to convert the Mat to CV_8U. with

mat.convertTo(mat2, CV_8U);

but apparently Eclipse does not take as an argument CV_8U

image description

Thank you for your help!!

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted
3

answered 2013-02-07 12:19:17 -0600

You have to use CvType.CV_8U

edit flag offensive delete link more

Comments

@Mathieu Barnachon Thanks a lot!!!

pietmau gravatar imagepietmau ( 2013-02-07 12:32:42 -0600 )edit

thanks a lot

nischal r gravatar imagenischal r ( 2015-03-06 22:19:27 -0600 )edit
1

answered 2013-02-08 09:54:18 -0600

Andrey Pavlenko gravatar image

updated 2013-02-08 09:54:58 -0600

Actually this code line does just copying. The bitmapToMat() already returns Mat-s of depth CV_8U.

edit flag offensive delete link more

Question Tools

Stats

Asked: 2013-02-07 10:49:05 -0600

Seen: 4,805 times

Last updated: Feb 08 '13