2014-11-03 07:22:22 -0600 | received badge | ● Necromancer (source) |
2014-03-24 07:09:10 -0600 | answered a question | Matlab sub2ind / ind2sub in OpenCV /c++ You can write them yourself like illustrated in this link: http://stackoverflow.com/questions/21709743/matlab-sub2ind-ind2sub-in-opencv-c |
2014-03-24 07:08:37 -0600 | received badge | ● Editor (source) |
2014-03-24 07:07:10 -0600 | answered a question | Matlab sub2ind / ind2sub in OpenCV /c++ int sub2ind(const int row,const int col,const int cols,const int rows) { return row*cols+col; } void ind2sub(const int sub,const int cols,const int rows,int &row,int &col) { row=sub/cols; col=sub%cols; } \ref~ http://stackoverflow.com/questions/21709743/matlab-sub2ind-ind2sub-in-opencv-c |