Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/RustCV/RustCV
/ is_empty
Method
is_empty
rustcv/src/core/mat.rs:42–44 ·
view source on GitHub ↗
检查是否为空
(&self)
Source
from the content-addressed store, hash-verified
40
41
/// 检查是否为空
42
pub fn is_empty(&self) -> bool {
43
self.data.is_empty() || self.rows == 0 || self.cols == 0
44
}
45
46
/// 获取像素数据的切片 (考虑 Stride)
47
pub fn row_bytes(&self, row: i32) -> &[u8] {
Callers
1
main
Function · 0.45
Calls
no outgoing calls
Tested by
no test coverage detected