opencv 0.98.2

Rust bindings for OpenCV
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#![cfg(ocvrs_has_module_stitching)]

use opencv::core::Size;
use opencv::prelude::*;
use opencv::stitching::Detail_ImageFeatures;
use opencv::Result;

#[test]
fn default_ctor() -> Result<()> {
	let imgfeatures = Detail_ImageFeatures::default();
	assert_eq!(0, imgfeatures.img_idx());
	assert_eq!(Size::default(), imgfeatures.img_size());
	assert!(imgfeatures.keypoints().is_empty());
	assert_eq!(Size::default(), imgfeatures.descriptors().size()?);
	Ok(())
}