Quantcast
Channel: OpenCV Q&A Forum - Latest question feed
Viewing all articles
Browse latest Browse all 19555

How to map Java's List to vector of vectors?

$
0
0
The `decode` method of the contributed structured_light module uses an `InputArrayOfArrays` parameter which is mapped to a `List` type in the Java wrapper. In the method the parameter is cast to a vector of verctors with the following line: `std::vector>& acquired_pattern = *( std::vector>* ) patternImages.getObj();` How should I properly construct Java's Mat object (being a single item in the list parameter) for the cast to work correctly? I suppose the intention is for the single Java's Mat instance to map to a single vector in C.

Viewing all articles
Browse latest Browse all 19555

Trending Articles