Ask Your Question
0

How to know which type of the element

asked 2018-01-20 02:41:07 -0500

yode gravatar image

As we know, the type of Mat can get by member function Mat::type. But I want to get the type of element. I mean the int, uchar, and doubleand so on is expected. Anyone can give me some thinking?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2018-01-20 03:04:12 -0500

MiaoDX gravatar image

Hei, please have a look at stackoverflow: How to find out what type of a Mat object is with Mat::type() in OpenCV . It is just tweaking the returned value of Mat::type.

edit flag offensive delete link more

Comments

The answer of current accepted method will return a string but int ,uchar or double

yode gravatar imageyode ( 2018-01-20 04:24:04 -0500 )edit

Question Tools

1 follower

Stats

Asked: 2018-01-20 02:41:07 -0500

Seen: 50 times

Last updated: Jan 20 '18