1 | initial version |
There's no way of doing that directly unless it's vector<Mat>
- the interface of InputArray
doesn't provide such functionality. If you really need to treat it as a vector, call getMat()
or getVectorMat()
and transform the resulting Mat object to a vector.
If it is a vector<Mat>
, then you can use _InputArray::getMat(idx)
to get idx-th Mat of the vector, so you can e.g. iterate that way through the vector elements.