Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Create column pointers just like TheMatrix.ptr<int>(vi);

(Please forgive me for my wording since i am still a newbie)

i know that something like TheMatrix.ptr<uchar>(vi)can create a pointer with the elements of one row. I wonder if there's a way to create pointers containing the elements of one column (so that i can quickly access the elements in column sequence)?

PS: i would prefer a fast way since i would like to do some practical applications. So i would not consider method like transpose and use the ptr.<>()...

Thanks in advance!