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?
Can you explain what that does for non-matlab programmers?
You can extract specified row from Mat with Mat::row(int y), see more at http://docs.opencv.org/modules/core/doc/basic_structures.html?highlight=mat%3A%3Arow#mat-row, or if it's not, please explain.