Ask Your Question
1

CvType meaning

asked 2012-12-30 07:43:57 -0600

muthu gravatar image

What is the meaning/purpose of giving CvType when involved with imageslike

"mRgba = new Mat(height, width, CvType.CV_8UC4);"

and there are whole lot of these types... whats their significance? and how to know which one to choose??

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
3

answered 2012-12-30 08:51:17 -0600

This types define color depth, number of channels and channel layout in the image. On Android the most useful are CvType.CV_8UC4 and CvType.CV_8UCq. CvType.CV_8UC4 is 8-bit per channel RGBA image and can be captured from camera with NativeCameraView or JavaCameraView classes and drawn on surface. CvType.CV_8UC1 is gray scale image and is mostly used in computer vision algorithms.

edit flag offensive delete link more

Comments

2

Thank u :) where do i learn these kind of stuff?? i dont find these info. in the documentation??

muthu gravatar imagemuthu ( 2012-12-30 09:17:32 -0600 )edit

Same question here, where can I find a doc for all these constants? Such as CV_16SC3. I guess it means 16bit per channel, and is signed. But why signed?

smwikipedia gravatar imagesmwikipedia ( 2015-07-27 02:38:08 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2012-12-30 07:43:57 -0600

Seen: 12,667 times

Last updated: Dec 30 '12