Reputation: 9020
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.
Upvotes: 2
Views: 379
Reputation: 858
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.
Upvotes: 6