MCPcopy Create free account
hub / github.com/RustCV/RustCV / total

Method total

rustcv-camera/src/mat.rs:120–122  ·  view source on GitHub ↗

Total number of pixels (rows * cols). 总像素数(rows * cols)。

(&self)

Source from the content-addressed store, hash-verified

118 /// Total number of pixels (rows * cols).
119 /// 总像素数(rows * cols)。
120 pub fn total(&self) -> usize {
121 (self.rows as usize) * (self.cols as usize)
122 }
123}
124
125impl Default for Mat {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected