c++ - Mat declaration: declaration dimensions and size() are differents -


i declare mat as

mat mu = mat::ones(2000, 256, cv_64f);  

and when do

cout << size(mu); 

the output "[256, 2000]". happens in parts of code , can understand that. ­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­

there method static cv::mat::matexpr ones (int rows, int cols, int type), construct cv::mat objects.

but method size return number of rows , number of columns in reverse order.

it looks correctly , no issues here. give more information, what's wrong here you?


Comments

Popular posts from this blog

html - How to custom Bootstrap grid height? -

javascript - pass values from mssql to views in node -

ruby - unknown property method: 'wait' on EC2 windows server Instance -