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

Method empty

rustcv/src/core/mat.rs:31–39  ·  view source on GitHub ↗

创建一个空的 Mat (通常用于作为输出 buffer)

()

Source from the content-addressed store, hash-verified

29
30 /// 创建一个空的 Mat (通常用于作为输出 buffer)
31 pub fn empty() -> Self {
32 Self {
33 data: vec![],
34 rows: 0,
35 cols: 0,
36 step: 0,
37 channels: 0,
38 }
39 }
40
41 /// 检查是否为空
42 pub fn is_empty(&self) -> bool {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected