K-dimension matrix, cv::Mat (m,n,K)

asked 2013-09-06 08:00:11 -0500

Hello everyone,

I got a question regarding the matrix structure.

Basically I got N BW-images and I want to stack them.

My goal is to be able to extract a vector of all (ith, jth)element of each matrix in one vector by taking the (ith,jth)element of the stacked matrix.

I think I can solve the stacking with the merge function, but after I must confess that I don't now how to extract the vector. I know there is the at accessor but it is not working for a multi-dimensionnal matrix.

Any idea how to do that ?

Thanks for your help

Best

edit retag flag offensive close merge delete