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

python - Selenium remoteWebDriver (& SauceLabs) Firefox moseMoveTo action exception -

html - How to custom Bootstrap grid height? -

transpose - Maple isnt executing function but prints function term -