Actually in C++ Mat has the field `dims`, not a method `dims()`