Dimension N-Dimensional cv :: Mat

What is the correct way to get the size of the Nth dimension of a cv :: Mat object. In other words, what is the replacement of cvGetDimSize () in the new opencv?

+4
source share
1 answer

m.size.p[n] will give you an n-dimensional dimension, but make sure n < m.dims .

This is what cvGetDimSize does.

+5
source

Source: https://habr.com/ru/post/1392175/


All Articles