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

Method new

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

Create an empty Mat with no allocated data. 创建一个无数据分配的空 Mat。

()

Source from the content-addressed store, hash-verified

43 /// Create an empty Mat with no allocated data.
44 /// 创建一个无数据分配的空 Mat。
45 pub fn new() -> Self {
46 Self {
47 data: Vec::new(),
48 rows: 0,
49 cols: 0,
50 channels: 3,
51 step: 0,
52 }
53 }
54
55 /// Ensure the internal buffer is large enough for the given dimensions.
56 /// 确保内部缓冲区对于给定尺寸足够大。

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected