Create an empty Mat with no allocated data. 创建一个无数据分配的空 Mat。
()
| 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 | /// 确保内部缓冲区对于给定尺寸足够大。 |
nothing calls this directly
no outgoing calls
no test coverage detected