InputArray OutputArray InputOutputArray in openCV

转自:https://stackoverflow.com/questions/29594048/the-meaning-of-inputoutputarray-in-cvstereocalibrate-declaration

The InputOutputArray is "placeholder" type. Parameters of this type are modified in place, inside the function.

There are other 2 types:

InputArray which is read-only inside the function. This parameters are used as source data for the function, but are not modified by the function.

OutputArray which is write-only. Parameters of this type are modified inside the function. Usually this means they are created inside the function. This means that data in the array are replaced by the data generated by the function.

This principle is used so the function can "return" more than one value.

 

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值