简体   繁体   中英

OpenCV4Android class Mat: difference between width() and rows(), and that between height() and cols()?

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM