0.68.0 Regenerate bindings
MODIFY
CHANGES.md
CHANGES.md
+* 0.68.0
+ * Make sure that `howToGetFeatures` argument of the `createStructuredEdgeDetection()` is nullable.
+ * Add `OutputArray` and `InputOutputArray` implementations for `Mat_`.
+
* 0.67.0
* Change `fourcc` method to accept `char`s instead of `i8`s.
* Remove `gapi` feature as this module is not supported at the moment.

MODIFY
Cargo.toml
Cargo.toml
@@ -6,7 +6,7 @@ repository = "https://github.com/twistedfall/opencv-rust"
readme = "README.md"
keywords = ["opencv", "vision"]
license = "MIT"
-version = "0.67.0"
+version = "0.68.0"
edition = "2018"
authors = ["Pro <twisted.fall@gmail.com>", "Mathieu Poumeyrol <kali@zoy.org>"]
autoexamples = false # not all examples compile on just any system
@@ -60,7 +60,7 @@ once_cell = "1"
rgb = { version = "0.8.20", features = ["argb"], optional = true }
[build-dependencies]
-binding-generator = { package = "opencv-binding-generator", version = "0.46.0", path = "binding-generator" }
+binding-generator = { package = "opencv-binding-generator", version = "0.47.0", path = "binding-generator" }
cc = { version = "1", features = ["parallel"] }
clang = { version = "2", features = ["clang_6_0", "runtime"] }
dunce = "1"

MODIFY
README.md
README.md
@@ -15,7 +15,7 @@ generation) are installed in your system.
Update your Cargo.toml
```toml
-opencv = "0.66"
+opencv = "0.68"
```
Import prelude

MODIFY
binding-generator/Cargo.toml
binding-generator/Cargo.toml
name = "opencv-binding-generator"
description = "Binding generator for opencv crate"
repository = "https://github.com/twistedfall/opencv-rust"
-version = "0.46.0"
+version = "0.47.0"
license = "MIT"
authors = ["Pro <twisted.fall@gmail.com>"]
edition = "2018"

MODIFY
src/opencv/hub/ximgproc.rs
src/opencv/hub/ximgproc.rs
@@ -1082,10 +1082,10 @@ pub fn create_scan_segment(image_width: i32, image_height: i32, num_superpixels:
/// ## C++ default parameters
/// * how_to_get_features: Ptr<RFFeatureGetter>()
#[inline]
-pub fn create_structured_edge_detection(model: &str, how_to_get_features: core::Ptr<dyn crate::ximgproc::RFFeatureGetter>) -> Result<core::Ptr<dyn crate::ximgproc::StructuredEdgeDetection>> {
+pub fn create_structured_edge_detection(model: &str, how_to_get_features: Option<core::Ptr<dyn crate::ximgproc::RFFeatureGetter>>) -> Result<core::Ptr<dyn crate::ximgproc::StructuredEdgeDetection>> {
extern_container_arg!(model);
return_send!(via ocvrs_return);
- unsafe { sys::cv_ximgproc_createStructuredEdgeDetection_const_StringR_Ptr_const_RFFeatureGetter_(model.opencv_as_extern(), how_to_get_features.as_raw_PtrOfRFFeatureGetter(), ocvrs_return.as_mut_ptr()) };
+ unsafe { sys::cv_ximgproc_createStructuredEdgeDetection_const_StringR_Ptr_const_RFFeatureGetter_(model.opencv_as_extern(), how_to_get_features.map_or(::core::ptr::null(), |how_to_get_features| how_to_get_features.as_raw_PtrOfRFFeatureGetter()), ocvrs_return.as_mut_ptr()) };
return_receive!(unsafe ocvrs_return => ret);
let ret = ret.into_result()?;
let ret = unsafe { core::Ptr::<dyn crate::ximgproc::StructuredEdgeDetection>::opencv_from_extern(ret) };

0.68.0 Regenerate bindings