创建一个空的 Mat (通常用于作为输出 buffer)
()
| 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 { |
nothing calls this directly
no outgoing calls
no test coverage detected