Quantcast
Channel: OpenCV Q&A Forum - RSS feed
Viewing all articles
Browse latest Browse all 41027

Make a 3D mat from a std::vector of 2D mat

$
0
0
Hi, I have a std vector of several 2D Mat `std::vector matList`, and instead of accessing the pixel values in the third dimension by using, e.g., `matList.at(k).at(i, j)`, i'd like to have a 3D mat so that I would access that same pixel using `mat3D.at(i, j, k)`. k can be up to several hundreds. What would be the most efficient way to make this conversion, apart from assigning each pixel explicitly?

Viewing all articles
Browse latest Browse all 41027

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>