Ask Your Question
10

What is InputArray?

asked 2012-06-08 08:42:30 -0500

Kirill Kornyakov gravatar image

It can be seen that almost all OpenCV functions receive InputArray type. What is it, and how can I understand the actual input types of parameters?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
13

answered 2012-06-08 17:42:01 -0500

AlexanderShishkov gravatar image

This is the proxy class for passing read-only input arrays into OpenCV functions.

Inside a function you should use _InputArray::getMat() method to construct a matrix header for the array (without copying data). _InputArray::kind() can be used to distinguish Mat from vector<> etc., but normally it is not needed.

More information you can find here: http://docs.opencv.org/modules/core/doc/basic_structures.html?highlight=inputarray#InputArray

edit flag offensive delete link more
Login/Signup to Answer

Question Tools

Stats

Asked: 2012-06-08 08:42:30 -0500

Seen: 29,150 times

Last updated: Jun 08 '12