Skip to content

Commit aeec0e9

Browse files
committed
Update docs & changelog
1 parent d4c3879 commit aeec0e9

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

69 files changed

+42825
-42701
lines changed

CHANGES.md

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
* 0.94.2
2+
* Fix building on Windows using vcpkg without OpenCL support (fixes https://github.com/twistedfall/opencv-rust/issues/532).
3+
14
* 0.94.1
25
* Add workaround for building on Windows with clang-19 and `clang-runtime` feature enabled (fixes https://github.com/twistedfall/opencv-rust/issues/628).
36

docs/alphamat.rs

+1
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,5 @@ pub mod alphamat {
3131
let ret = ret.into_result()?;
3232
Ok(ret)
3333
}
34+
3435
}

docs/aruco.rs

+53-52
Original file line numberDiff line numberDiff line change
@@ -1011,6 +1011,48 @@ pub mod aruco {
10111011
Ok(ret)
10121012
}
10131013

1014+
/// Pose estimation parameters
1015+
///
1016+
/// ## Parameters
1017+
/// * pattern: Defines center this system and axes direction (default PatternPositionType::ARUCO_CCW_CENTER).
1018+
/// * useExtrinsicGuess: Parameter used for SOLVEPNP_ITERATIVE. If true (1), the function uses the provided
1019+
/// rvec and tvec values as initial approximations of the rotation and translation vectors, respectively, and further
1020+
/// optimizes them (default false).
1021+
/// * solvePnPMethod: Method for solving a PnP problem: see [calib3d_solvePnP_flags] (default SOLVEPNP_ITERATIVE).
1022+
///
1023+
///
1024+
/// **Deprecated**: Use Board::matchImagePoints and cv::solvePnP
1025+
/// ## See also
1026+
/// PatternPositionType, solvePnP()
1027+
#[deprecated = "Use Board::matchImagePoints and cv::solvePnP"]
1028+
pub struct EstimateParameters {
1029+
ptr: *mut c_void,
1030+
}
1031+
1032+
opencv_type_boxed! { EstimateParameters }
1033+
1034+
impl Drop for EstimateParameters {
1035+
#[inline]
1036+
fn drop(&mut self) {
1037+
unsafe { sys::cv_aruco_EstimateParameters_delete(self.as_raw_mut_EstimateParameters()) };
1038+
}
1039+
}
1040+
1041+
unsafe impl Send for EstimateParameters {}
1042+
1043+
impl EstimateParameters {
1044+
#[inline]
1045+
pub fn default() -> Result<crate::aruco::EstimateParameters> {
1046+
return_send!(via ocvrs_return);
1047+
unsafe { sys::cv_aruco_EstimateParameters_EstimateParameters(ocvrs_return.as_mut_ptr()) };
1048+
return_receive!(unsafe ocvrs_return => ret);
1049+
let ret = ret.into_result()?;
1050+
let ret = unsafe { crate::aruco::EstimateParameters::opencv_from_extern(ret) };
1051+
Ok(ret)
1052+
}
1053+
1054+
}
1055+
10141056
/// Constant methods for [crate::aruco::EstimateParameters]
10151057
pub trait EstimateParametersTraitConst {
10161058
fn as_raw_EstimateParameters(&self) -> *const c_void;
@@ -1061,58 +1103,6 @@ pub mod aruco {
10611103

10621104
}
10631105

1064-
/// Pose estimation parameters
1065-
///
1066-
/// ## Parameters
1067-
/// * pattern: Defines center this system and axes direction (default PatternPositionType::ARUCO_CCW_CENTER).
1068-
/// * useExtrinsicGuess: Parameter used for SOLVEPNP_ITERATIVE. If true (1), the function uses the provided
1069-
/// rvec and tvec values as initial approximations of the rotation and translation vectors, respectively, and further
1070-
/// optimizes them (default false).
1071-
/// * solvePnPMethod: Method for solving a PnP problem: see [calib3d_solvePnP_flags] (default SOLVEPNP_ITERATIVE).
1072-
///
1073-
///
1074-
/// **Deprecated**: Use Board::matchImagePoints and cv::solvePnP
1075-
/// ## See also
1076-
/// PatternPositionType, solvePnP()
1077-
#[deprecated = "Use Board::matchImagePoints and cv::solvePnP"]
1078-
pub struct EstimateParameters {
1079-
ptr: *mut c_void,
1080-
}
1081-
1082-
opencv_type_boxed! { EstimateParameters }
1083-
1084-
impl Drop for EstimateParameters {
1085-
#[inline]
1086-
fn drop(&mut self) {
1087-
unsafe { sys::cv_aruco_EstimateParameters_delete(self.as_raw_mut_EstimateParameters()) };
1088-
}
1089-
}
1090-
1091-
unsafe impl Send for EstimateParameters {}
1092-
1093-
impl crate::aruco::EstimateParametersTraitConst for EstimateParameters {
1094-
#[inline] fn as_raw_EstimateParameters(&self) -> *const c_void { self.as_raw() }
1095-
}
1096-
1097-
impl crate::aruco::EstimateParametersTrait for EstimateParameters {
1098-
#[inline] fn as_raw_mut_EstimateParameters(&mut self) -> *mut c_void { self.as_raw_mut() }
1099-
}
1100-
1101-
boxed_ref! { EstimateParameters, crate::aruco::EstimateParametersTraitConst, as_raw_EstimateParameters, crate::aruco::EstimateParametersTrait, as_raw_mut_EstimateParameters }
1102-
1103-
impl EstimateParameters {
1104-
#[inline]
1105-
pub fn default() -> Result<crate::aruco::EstimateParameters> {
1106-
return_send!(via ocvrs_return);
1107-
unsafe { sys::cv_aruco_EstimateParameters_EstimateParameters(ocvrs_return.as_mut_ptr()) };
1108-
return_receive!(unsafe ocvrs_return => ret);
1109-
let ret = ret.into_result()?;
1110-
let ret = unsafe { crate::aruco::EstimateParameters::opencv_from_extern(ret) };
1111-
Ok(ret)
1112-
}
1113-
1114-
}
1115-
11161106
impl Clone for EstimateParameters {
11171107
#[inline]
11181108
fn clone(&self) -> Self {
@@ -1130,4 +1120,15 @@ pub mod aruco {
11301120
.finish()
11311121
}
11321122
}
1123+
1124+
impl crate::aruco::EstimateParametersTraitConst for EstimateParameters {
1125+
#[inline] fn as_raw_EstimateParameters(&self) -> *const c_void { self.as_raw() }
1126+
}
1127+
1128+
impl crate::aruco::EstimateParametersTrait for EstimateParameters {
1129+
#[inline] fn as_raw_mut_EstimateParameters(&mut self) -> *mut c_void { self.as_raw_mut() }
1130+
}
1131+
1132+
boxed_ref! { EstimateParameters, crate::aruco::EstimateParametersTraitConst, as_raw_EstimateParameters, crate::aruco::EstimateParametersTrait, as_raw_mut_EstimateParameters }
1133+
11331134
}

0 commit comments

Comments
 (0)