Generate Ptr<f32> for OpenCV 3.2 too
MODIFY
binding-generator/src/settings.rs
binding-generator/src/settings.rs
@@ -1033,6 +1033,15 @@ pub static GENERATOR_MODULE_TWEAKS: Lazy<HashMap<&str, ModuleTweak>> = Lazy::new
],
..Default::default()
},
+ "core" => ModuleTweak {
+ includes: vec![
+ "core.hpp",
+ ],
+ generate_types: vec![
+ "cv::Ptr<float>", // for 3.2, no function uses that so it's not generated
+ ],
+ ..Default::default()
+ },
"dnn" => ModuleTweak {
includes: vec![
"dnn/dict.hpp",

MODIFY
src/manual/core/ptr.rs
src/manual/core/ptr.rs
@@ -11,7 +11,6 @@ use crate::{
traits::{Boxed, OpenCVType, OpenCVTypeArg, OpenCVTypeExternContainer},
};
-#[cfg(not(feature = "opencv-32"))]
mod ptr_f32;
mod ptr_extern;

MODIFY
tests/boxed.rs
tests/boxed.rs
@@ -61,7 +61,6 @@ fn into_raw() -> Result<()> {
}
#[test]
-#[cfg(not(feature = "opencv-32"))]
fn into_raw_ptroff32() -> Result<()> {
use opencv::types::PtrOff32;

MODIFY
tests/ptr.rs
tests/ptr.rs
-#[cfg(not(feature = "opencv-32"))]
#[test]
fn ptr_f32() {
use opencv::core::Ptr;

Generate Ptr<f32> for OpenCV 3.2 too