In OpenCV4Android, what is the difference between the method width()
and rows()
; and what is the difference between the methods height()
and cols()
of the class Mat
?
The documentation does not say anything about these methods.
There's no difference between them. In general width() == cols()
and height() == rows()
;
In fact, the width()
and height()
methods internally calls the cols()
and rows()
methods to get the value.