Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Extract specified row from cv::Mat

Hi. I'm looking for good expression equivalent to the following MATLAB matrix manipulation.

p=[1 4 2 3 5 11 7 13 6 12 8 14 17 9 15 18 10 16 19 20] ;%rearrange the columns of A A=A(:,p);

It is really painful when do above job manually. Any idea?