opencv 0.46.2

Rust bindings for OpenCV
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use opencv::{
	core::SparseMat_Hdr,
	prelude::*,
	Result,
};

#[test]
fn slice_override() -> Result<()> {
	let mut hdr = SparseMat_Hdr::new(&[4, 2], i32::typ())?;
	assert_eq!(4, hdr.size()[0]);
	assert_eq!(2, hdr.size()[1]);
	assert_eq!(0, hdr.size()[2]);
	Ok(())
}