Ask Your Question
0

Meaning of Input Array and noArray()

asked 2015-04-01 08:41:38 -0500

mcExchange gravatar image

Hi

In the wiki I found the following description of a function:

C++: Vec2d EM::predict(InputArray sample, OutputArray probs=noArray())

what does it mean exactly? I.e.

a) What exact type can "InputArray" be? A cv::Mat? or also a std::vector or also a simple C-style array?

b) What does the value noArray() specify? Is this a function? Or does it simply mean that I don't have to pass this argument because OpenCV can choose a default value here?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
2

answered 2015-04-01 09:14:25 -0500

updated 2015-04-01 09:26:07 -0500

thdrksdfthmn gravatar image

Could you maybe do a little research before posting?

If you google "InputArray", this is the first hit which leads you directly to the docu

"Or does it simply mean that I don't have to pass this argument because OpenCV can choose a default value here?" Yes.

edit flag offensive delete link more
Login/Signup to Answer

Question Tools

1 follower

Stats

Asked: 2015-04-01 08:41:38 -0500

Seen: 2,567 times

Last updated: Apr 01 '15