Ask Your Question

How to use<Internal type>(i,j)?

asked 2013-07-08 03:10:10 -0500

How can I use element in Mat by at function without specifying its type.

sample:,j) == if (Mat.type == CV_8U) --><unsigned char>(i,j),j) == if (Mat.type == CV_32F) --><float>(i,j)
edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2013-07-09 02:27:57 -0500

jbseano gravatar image

You can use Mat_. You have to specify the Mat_ type when you declare it, and then you can acces to the pixels easily.

Check this documentation:

edit flag offensive delete link more
Login/Signup to Answer

Question Tools


Asked: 2013-07-08 03:10:10 -0500

Seen: 39,937 times

Last updated: Jul 09 '13