opencv 0.73.0

Rust bindings for OpenCV
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use std::{ffi::c_void, mem::size_of};

use crate::{
	core::Mat,
	sys::{Result, Result_void},
};

#[test]
fn cv_return_type() {
	assert_eq!(size_of::<Result<i32>>(), 24);
	assert_eq!(size_of::<Result<u8>>(), 24);
	assert_eq!(size_of::<Result_void>(), 16);
}

#[test]
fn mat_layout() {
	assert_eq!(size_of::<Mat>(), size_of::<*mut c_void>());
}