#[cfg(ocvrs_has_module_aruco)] mod aruco_types { use crate::{mod_prelude::*, core, types, sys}; #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfEstimateParameters = core::Ptr; ptr_extern! { crate::aruco::EstimateParameters, cv_PtrLcv_aruco_EstimateParametersG_new_null_const, cv_PtrLcv_aruco_EstimateParametersG_delete, cv_PtrLcv_aruco_EstimateParametersG_getInnerPtr_const, cv_PtrLcv_aruco_EstimateParametersG_getInnerPtrMut } ptr_extern_ctor! { crate::aruco::EstimateParameters, cv_PtrLcv_aruco_EstimateParametersG_new_const_EstimateParameters } impl core::Ptr { #[inline] pub fn as_raw_PtrOfEstimateParameters(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfEstimateParameters(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::aruco::EstimateParametersTraitConst for core::Ptr { #[inline] fn as_raw_EstimateParameters(&self) -> *const c_void { self.inner_as_raw() } } impl crate::aruco::EstimateParametersTrait for core::Ptr { #[inline] fn as_raw_mut_EstimateParameters(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfEstimateParameters") .field("pattern", &crate::aruco::EstimateParametersTraitConst::pattern(self)) .field("use_extrinsic_guess", &crate::aruco::EstimateParametersTraitConst::use_extrinsic_guess(self)) .field("solve_pnp_method", &crate::aruco::EstimateParametersTraitConst::solve_pnp_method(self)) .finish() } } } #[cfg(ocvrs_has_module_aruco)] pub use aruco_types::*; #[cfg(ocvrs_has_module_bgsegm)] mod bgsegm_types { use crate::{mod_prelude::*, core, types, sys}; #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfBackgroundSubtractorCNT = core::Ptr; ptr_extern! { crate::bgsegm::BackgroundSubtractorCNT, cv_PtrLcv_bgsegm_BackgroundSubtractorCNTG_new_null_const, cv_PtrLcv_bgsegm_BackgroundSubtractorCNTG_delete, cv_PtrLcv_bgsegm_BackgroundSubtractorCNTG_getInnerPtr_const, cv_PtrLcv_bgsegm_BackgroundSubtractorCNTG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfBackgroundSubtractorCNT(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfBackgroundSubtractorCNT(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::bgsegm::BackgroundSubtractorCNTTraitConst for core::Ptr { #[inline] fn as_raw_BackgroundSubtractorCNT(&self) -> *const c_void { self.inner_as_raw() } } impl crate::bgsegm::BackgroundSubtractorCNTTrait for core::Ptr { #[inline] fn as_raw_mut_BackgroundSubtractorCNT(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_bgsegm_BackgroundSubtractorCNTG_to_PtrOfAlgorithm } impl crate::video::BackgroundSubtractorTraitConst for core::Ptr { #[inline] fn as_raw_BackgroundSubtractor(&self) -> *const c_void { self.inner_as_raw() } } impl crate::video::BackgroundSubtractorTrait for core::Ptr { #[inline] fn as_raw_mut_BackgroundSubtractor(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_bgsegm_BackgroundSubtractorCNTG_to_PtrOfBackgroundSubtractor } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfBackgroundSubtractorCNT") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfBackgroundSubtractorGMG = core::Ptr; ptr_extern! { crate::bgsegm::BackgroundSubtractorGMG, cv_PtrLcv_bgsegm_BackgroundSubtractorGMGG_new_null_const, cv_PtrLcv_bgsegm_BackgroundSubtractorGMGG_delete, cv_PtrLcv_bgsegm_BackgroundSubtractorGMGG_getInnerPtr_const, cv_PtrLcv_bgsegm_BackgroundSubtractorGMGG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfBackgroundSubtractorGMG(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfBackgroundSubtractorGMG(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::bgsegm::BackgroundSubtractorGMGTraitConst for core::Ptr { #[inline] fn as_raw_BackgroundSubtractorGMG(&self) -> *const c_void { self.inner_as_raw() } } impl crate::bgsegm::BackgroundSubtractorGMGTrait for core::Ptr { #[inline] fn as_raw_mut_BackgroundSubtractorGMG(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_bgsegm_BackgroundSubtractorGMGG_to_PtrOfAlgorithm } impl crate::video::BackgroundSubtractorTraitConst for core::Ptr { #[inline] fn as_raw_BackgroundSubtractor(&self) -> *const c_void { self.inner_as_raw() } } impl crate::video::BackgroundSubtractorTrait for core::Ptr { #[inline] fn as_raw_mut_BackgroundSubtractor(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_bgsegm_BackgroundSubtractorGMGG_to_PtrOfBackgroundSubtractor } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfBackgroundSubtractorGMG") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfBackgroundSubtractorGSOC = core::Ptr; ptr_extern! { crate::bgsegm::BackgroundSubtractorGSOC, cv_PtrLcv_bgsegm_BackgroundSubtractorGSOCG_new_null_const, cv_PtrLcv_bgsegm_BackgroundSubtractorGSOCG_delete, cv_PtrLcv_bgsegm_BackgroundSubtractorGSOCG_getInnerPtr_const, cv_PtrLcv_bgsegm_BackgroundSubtractorGSOCG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfBackgroundSubtractorGSOC(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfBackgroundSubtractorGSOC(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::bgsegm::BackgroundSubtractorGSOCTraitConst for core::Ptr { #[inline] fn as_raw_BackgroundSubtractorGSOC(&self) -> *const c_void { self.inner_as_raw() } } impl crate::bgsegm::BackgroundSubtractorGSOCTrait for core::Ptr { #[inline] fn as_raw_mut_BackgroundSubtractorGSOC(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_bgsegm_BackgroundSubtractorGSOCG_to_PtrOfAlgorithm } impl crate::video::BackgroundSubtractorTraitConst for core::Ptr { #[inline] fn as_raw_BackgroundSubtractor(&self) -> *const c_void { self.inner_as_raw() } } impl crate::video::BackgroundSubtractorTrait for core::Ptr { #[inline] fn as_raw_mut_BackgroundSubtractor(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_bgsegm_BackgroundSubtractorGSOCG_to_PtrOfBackgroundSubtractor } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfBackgroundSubtractorGSOC") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfBackgroundSubtractorLSBP = core::Ptr; ptr_extern! { crate::bgsegm::BackgroundSubtractorLSBP, cv_PtrLcv_bgsegm_BackgroundSubtractorLSBPG_new_null_const, cv_PtrLcv_bgsegm_BackgroundSubtractorLSBPG_delete, cv_PtrLcv_bgsegm_BackgroundSubtractorLSBPG_getInnerPtr_const, cv_PtrLcv_bgsegm_BackgroundSubtractorLSBPG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfBackgroundSubtractorLSBP(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfBackgroundSubtractorLSBP(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::bgsegm::BackgroundSubtractorLSBPTraitConst for core::Ptr { #[inline] fn as_raw_BackgroundSubtractorLSBP(&self) -> *const c_void { self.inner_as_raw() } } impl crate::bgsegm::BackgroundSubtractorLSBPTrait for core::Ptr { #[inline] fn as_raw_mut_BackgroundSubtractorLSBP(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_bgsegm_BackgroundSubtractorLSBPG_to_PtrOfAlgorithm } impl crate::video::BackgroundSubtractorTraitConst for core::Ptr { #[inline] fn as_raw_BackgroundSubtractor(&self) -> *const c_void { self.inner_as_raw() } } impl crate::video::BackgroundSubtractorTrait for core::Ptr { #[inline] fn as_raw_mut_BackgroundSubtractor(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_bgsegm_BackgroundSubtractorLSBPG_to_PtrOfBackgroundSubtractor } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfBackgroundSubtractorLSBP") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfBackgroundSubtractorMOG = core::Ptr; ptr_extern! { crate::bgsegm::BackgroundSubtractorMOG, cv_PtrLcv_bgsegm_BackgroundSubtractorMOGG_new_null_const, cv_PtrLcv_bgsegm_BackgroundSubtractorMOGG_delete, cv_PtrLcv_bgsegm_BackgroundSubtractorMOGG_getInnerPtr_const, cv_PtrLcv_bgsegm_BackgroundSubtractorMOGG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfBackgroundSubtractorMOG(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfBackgroundSubtractorMOG(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::bgsegm::BackgroundSubtractorMOGTraitConst for core::Ptr { #[inline] fn as_raw_BackgroundSubtractorMOG(&self) -> *const c_void { self.inner_as_raw() } } impl crate::bgsegm::BackgroundSubtractorMOGTrait for core::Ptr { #[inline] fn as_raw_mut_BackgroundSubtractorMOG(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_bgsegm_BackgroundSubtractorMOGG_to_PtrOfAlgorithm } impl crate::video::BackgroundSubtractorTraitConst for core::Ptr { #[inline] fn as_raw_BackgroundSubtractor(&self) -> *const c_void { self.inner_as_raw() } } impl crate::video::BackgroundSubtractorTrait for core::Ptr { #[inline] fn as_raw_mut_BackgroundSubtractor(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_bgsegm_BackgroundSubtractorMOGG_to_PtrOfBackgroundSubtractor } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfBackgroundSubtractorMOG") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfSyntheticSequenceGenerator = core::Ptr; ptr_extern! { crate::bgsegm::SyntheticSequenceGenerator, cv_PtrLcv_bgsegm_SyntheticSequenceGeneratorG_new_null_const, cv_PtrLcv_bgsegm_SyntheticSequenceGeneratorG_delete, cv_PtrLcv_bgsegm_SyntheticSequenceGeneratorG_getInnerPtr_const, cv_PtrLcv_bgsegm_SyntheticSequenceGeneratorG_getInnerPtrMut } ptr_extern_ctor! { crate::bgsegm::SyntheticSequenceGenerator, cv_PtrLcv_bgsegm_SyntheticSequenceGeneratorG_new_const_SyntheticSequenceGenerator } impl core::Ptr { #[inline] pub fn as_raw_PtrOfSyntheticSequenceGenerator(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfSyntheticSequenceGenerator(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::bgsegm::SyntheticSequenceGeneratorTraitConst for core::Ptr { #[inline] fn as_raw_SyntheticSequenceGenerator(&self) -> *const c_void { self.inner_as_raw() } } impl crate::bgsegm::SyntheticSequenceGeneratorTrait for core::Ptr { #[inline] fn as_raw_mut_SyntheticSequenceGenerator(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_bgsegm_SyntheticSequenceGeneratorG_to_PtrOfAlgorithm } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfSyntheticSequenceGenerator") .finish() } } } #[cfg(ocvrs_has_module_bgsegm)] pub use bgsegm_types::*; #[cfg(ocvrs_has_module_bioinspired)] mod bioinspired_types { use crate::{mod_prelude::*, core, types, sys}; #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfRetina = core::Ptr; ptr_extern! { crate::bioinspired::Retina, cv_PtrLcv_bioinspired_RetinaG_new_null_const, cv_PtrLcv_bioinspired_RetinaG_delete, cv_PtrLcv_bioinspired_RetinaG_getInnerPtr_const, cv_PtrLcv_bioinspired_RetinaG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfRetina(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfRetina(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::bioinspired::RetinaTraitConst for core::Ptr { #[inline] fn as_raw_Retina(&self) -> *const c_void { self.inner_as_raw() } } impl crate::bioinspired::RetinaTrait for core::Ptr { #[inline] fn as_raw_mut_Retina(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_bioinspired_RetinaG_to_PtrOfAlgorithm } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfRetina") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfRetinaFastToneMapping = core::Ptr; ptr_extern! { crate::bioinspired::RetinaFastToneMapping, cv_PtrLcv_bioinspired_RetinaFastToneMappingG_new_null_const, cv_PtrLcv_bioinspired_RetinaFastToneMappingG_delete, cv_PtrLcv_bioinspired_RetinaFastToneMappingG_getInnerPtr_const, cv_PtrLcv_bioinspired_RetinaFastToneMappingG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfRetinaFastToneMapping(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfRetinaFastToneMapping(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::bioinspired::RetinaFastToneMappingTraitConst for core::Ptr { #[inline] fn as_raw_RetinaFastToneMapping(&self) -> *const c_void { self.inner_as_raw() } } impl crate::bioinspired::RetinaFastToneMappingTrait for core::Ptr { #[inline] fn as_raw_mut_RetinaFastToneMapping(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_bioinspired_RetinaFastToneMappingG_to_PtrOfAlgorithm } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfRetinaFastToneMapping") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfTransientAreasSegmentationModule = core::Ptr; ptr_extern! { crate::bioinspired::TransientAreasSegmentationModule, cv_PtrLcv_bioinspired_TransientAreasSegmentationModuleG_new_null_const, cv_PtrLcv_bioinspired_TransientAreasSegmentationModuleG_delete, cv_PtrLcv_bioinspired_TransientAreasSegmentationModuleG_getInnerPtr_const, cv_PtrLcv_bioinspired_TransientAreasSegmentationModuleG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfTransientAreasSegmentationModule(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfTransientAreasSegmentationModule(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::bioinspired::TransientAreasSegmentationModuleTraitConst for core::Ptr { #[inline] fn as_raw_TransientAreasSegmentationModule(&self) -> *const c_void { self.inner_as_raw() } } impl crate::bioinspired::TransientAreasSegmentationModuleTrait for core::Ptr { #[inline] fn as_raw_mut_TransientAreasSegmentationModule(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_bioinspired_TransientAreasSegmentationModuleG_to_PtrOfAlgorithm } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfTransientAreasSegmentationModule") .finish() } } } #[cfg(ocvrs_has_module_bioinspired)] pub use bioinspired_types::*; #[cfg(ocvrs_has_module_calib3d)] mod calib3d_types { use crate::{mod_prelude::*, core, types, sys}; #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfLMSolver = core::Ptr; ptr_extern! { crate::calib3d::LMSolver, cv_PtrLcv_LMSolverG_new_null_const, cv_PtrLcv_LMSolverG_delete, cv_PtrLcv_LMSolverG_getInnerPtr_const, cv_PtrLcv_LMSolverG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfLMSolver(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfLMSolver(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::calib3d::LMSolverTraitConst for core::Ptr { #[inline] fn as_raw_LMSolver(&self) -> *const c_void { self.inner_as_raw() } } impl crate::calib3d::LMSolverTrait for core::Ptr { #[inline] fn as_raw_mut_LMSolver(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_LMSolverG_to_PtrOfAlgorithm } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfLMSolver") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfLMSolver_Callback = core::Ptr; ptr_extern! { crate::calib3d::LMSolver_Callback, cv_PtrLcv_LMSolver_CallbackG_new_null_const, cv_PtrLcv_LMSolver_CallbackG_delete, cv_PtrLcv_LMSolver_CallbackG_getInnerPtr_const, cv_PtrLcv_LMSolver_CallbackG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfLMSolver_Callback(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfLMSolver_Callback(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::calib3d::LMSolver_CallbackTraitConst for core::Ptr { #[inline] fn as_raw_LMSolver_Callback(&self) -> *const c_void { self.inner_as_raw() } } impl crate::calib3d::LMSolver_CallbackTrait for core::Ptr { #[inline] fn as_raw_mut_LMSolver_Callback(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfLMSolver_Callback") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfStereoBM = core::Ptr; ptr_extern! { crate::calib3d::StereoBM, cv_PtrLcv_StereoBMG_new_null_const, cv_PtrLcv_StereoBMG_delete, cv_PtrLcv_StereoBMG_getInnerPtr_const, cv_PtrLcv_StereoBMG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfStereoBM(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfStereoBM(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::calib3d::StereoBMTraitConst for core::Ptr { #[inline] fn as_raw_StereoBM(&self) -> *const c_void { self.inner_as_raw() } } impl crate::calib3d::StereoBMTrait for core::Ptr { #[inline] fn as_raw_mut_StereoBM(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_StereoBMG_to_PtrOfAlgorithm } impl crate::calib3d::StereoMatcherTraitConst for core::Ptr { #[inline] fn as_raw_StereoMatcher(&self) -> *const c_void { self.inner_as_raw() } } impl crate::calib3d::StereoMatcherTrait for core::Ptr { #[inline] fn as_raw_mut_StereoMatcher(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_StereoBMG_to_PtrOfStereoMatcher } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfStereoBM") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfStereoMatcher = core::Ptr; ptr_extern! { crate::calib3d::StereoMatcher, cv_PtrLcv_StereoMatcherG_new_null_const, cv_PtrLcv_StereoMatcherG_delete, cv_PtrLcv_StereoMatcherG_getInnerPtr_const, cv_PtrLcv_StereoMatcherG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfStereoMatcher(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfStereoMatcher(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::calib3d::StereoMatcherTraitConst for core::Ptr { #[inline] fn as_raw_StereoMatcher(&self) -> *const c_void { self.inner_as_raw() } } impl crate::calib3d::StereoMatcherTrait for core::Ptr { #[inline] fn as_raw_mut_StereoMatcher(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_StereoMatcherG_to_PtrOfAlgorithm } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfStereoMatcher") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfStereoSGBM = core::Ptr; ptr_extern! { crate::calib3d::StereoSGBM, cv_PtrLcv_StereoSGBMG_new_null_const, cv_PtrLcv_StereoSGBMG_delete, cv_PtrLcv_StereoSGBMG_getInnerPtr_const, cv_PtrLcv_StereoSGBMG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfStereoSGBM(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfStereoSGBM(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::calib3d::StereoSGBMTraitConst for core::Ptr { #[inline] fn as_raw_StereoSGBM(&self) -> *const c_void { self.inner_as_raw() } } impl crate::calib3d::StereoSGBMTrait for core::Ptr { #[inline] fn as_raw_mut_StereoSGBM(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_StereoSGBMG_to_PtrOfAlgorithm } impl crate::calib3d::StereoMatcherTraitConst for core::Ptr { #[inline] fn as_raw_StereoMatcher(&self) -> *const c_void { self.inner_as_raw() } } impl crate::calib3d::StereoMatcherTrait for core::Ptr { #[inline] fn as_raw_mut_StereoMatcher(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_StereoSGBMG_to_PtrOfStereoMatcher } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfStereoSGBM") .finish() } } } #[cfg(ocvrs_has_module_calib3d)] pub use calib3d_types::*; #[cfg(ocvrs_has_module_ccalib)] mod ccalib_types { use crate::{mod_prelude::*, core, types, sys}; #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfCustomPattern = core::Ptr; ptr_extern! { crate::ccalib::CustomPattern, cv_PtrLcv_ccalib_CustomPatternG_new_null_const, cv_PtrLcv_ccalib_CustomPatternG_delete, cv_PtrLcv_ccalib_CustomPatternG_getInnerPtr_const, cv_PtrLcv_ccalib_CustomPatternG_getInnerPtrMut } ptr_extern_ctor! { crate::ccalib::CustomPattern, cv_PtrLcv_ccalib_CustomPatternG_new_const_CustomPattern } impl core::Ptr { #[inline] pub fn as_raw_PtrOfCustomPattern(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfCustomPattern(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::ccalib::CustomPatternTraitConst for core::Ptr { #[inline] fn as_raw_CustomPattern(&self) -> *const c_void { self.inner_as_raw() } } impl crate::ccalib::CustomPatternTrait for core::Ptr { #[inline] fn as_raw_mut_CustomPattern(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_ccalib_CustomPatternG_to_PtrOfAlgorithm } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfCustomPattern") .finish() } } } #[cfg(ocvrs_has_module_ccalib)] pub use ccalib_types::*; #[cfg(ocvrs_has_module_core)] mod core_types { use crate::{mod_prelude::*, core, types, sys}; impl core::GpuMat_AllocatorTraitConst for types::AbstractRefMut<'static, core::GpuMat_Allocator> { #[inline] fn as_raw_GpuMat_Allocator(&self) -> extern_send!(Self) { self.as_raw() } } impl core::GpuMat_AllocatorTrait for types::AbstractRefMut<'static, core::GpuMat_Allocator> { #[inline] fn as_raw_mut_GpuMat_Allocator(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl core::MatOpTraitConst for types::AbstractRefMut<'static, core::MatOp> { #[inline] fn as_raw_MatOp(&self) -> extern_send!(Self) { self.as_raw() } } impl core::MatOpTrait for types::AbstractRefMut<'static, core::MatOp> { #[inline] fn as_raw_mut_MatOp(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfAlgorithm = core::Ptr; ptr_extern! { core::Algorithm, cv_PtrLcv_AlgorithmG_new_null_const, cv_PtrLcv_AlgorithmG_delete, cv_PtrLcv_AlgorithmG_getInnerPtr_const, cv_PtrLcv_AlgorithmG_getInnerPtrMut } ptr_extern_ctor! { core::Algorithm, cv_PtrLcv_AlgorithmG_new_const_Algorithm } impl core::Ptr { #[inline] pub fn as_raw_PtrOfAlgorithm(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfAlgorithm(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfAlgorithm") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfConjGradSolver = core::Ptr; ptr_extern! { core::ConjGradSolver, cv_PtrLcv_ConjGradSolverG_new_null_const, cv_PtrLcv_ConjGradSolverG_delete, cv_PtrLcv_ConjGradSolverG_getInnerPtr_const, cv_PtrLcv_ConjGradSolverG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfConjGradSolver(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfConjGradSolver(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl core::ConjGradSolverTraitConst for core::Ptr { #[inline] fn as_raw_ConjGradSolver(&self) -> *const c_void { self.inner_as_raw() } } impl core::ConjGradSolverTrait for core::Ptr { #[inline] fn as_raw_mut_ConjGradSolver(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_ConjGradSolverG_to_PtrOfAlgorithm } impl core::MinProblemSolverTraitConst for core::Ptr { #[inline] fn as_raw_MinProblemSolver(&self) -> *const c_void { self.inner_as_raw() } } impl core::MinProblemSolverTrait for core::Ptr { #[inline] fn as_raw_mut_MinProblemSolver(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_ConjGradSolverG_to_PtrOfMinProblemSolver } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfConjGradSolver") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfDownhillSolver = core::Ptr; ptr_extern! { core::DownhillSolver, cv_PtrLcv_DownhillSolverG_new_null_const, cv_PtrLcv_DownhillSolverG_delete, cv_PtrLcv_DownhillSolverG_getInnerPtr_const, cv_PtrLcv_DownhillSolverG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfDownhillSolver(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfDownhillSolver(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl core::DownhillSolverTraitConst for core::Ptr { #[inline] fn as_raw_DownhillSolver(&self) -> *const c_void { self.inner_as_raw() } } impl core::DownhillSolverTrait for core::Ptr { #[inline] fn as_raw_mut_DownhillSolver(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_DownhillSolverG_to_PtrOfAlgorithm } impl core::MinProblemSolverTraitConst for core::Ptr { #[inline] fn as_raw_MinProblemSolver(&self) -> *const c_void { self.inner_as_raw() } } impl core::MinProblemSolverTrait for core::Ptr { #[inline] fn as_raw_mut_MinProblemSolver(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_DownhillSolverG_to_PtrOfMinProblemSolver } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfDownhillSolver") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfFileStorage = core::Ptr; ptr_extern! { core::FileStorage, cv_PtrLcv_FileStorageG_new_null_const, cv_PtrLcv_FileStorageG_delete, cv_PtrLcv_FileStorageG_getInnerPtr_const, cv_PtrLcv_FileStorageG_getInnerPtrMut } ptr_extern_ctor! { core::FileStorage, cv_PtrLcv_FileStorageG_new_const_FileStorage } impl core::Ptr { #[inline] pub fn as_raw_PtrOfFileStorage(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfFileStorage(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl core::FileStorageTraitConst for core::Ptr { #[inline] fn as_raw_FileStorage(&self) -> *const c_void { self.inner_as_raw() } } impl core::FileStorageTrait for core::Ptr { #[inline] fn as_raw_mut_FileStorage(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfFileStorage") .field("state", &core::FileStorageTraitConst::state(self)) .field("elname", &core::FileStorageTraitConst::elname(self)) .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfFormatted = core::Ptr; ptr_extern! { core::Formatted, cv_PtrLcv_FormattedG_new_null_const, cv_PtrLcv_FormattedG_delete, cv_PtrLcv_FormattedG_getInnerPtr_const, cv_PtrLcv_FormattedG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfFormatted(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfFormatted(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl core::FormattedTraitConst for core::Ptr { #[inline] fn as_raw_Formatted(&self) -> *const c_void { self.inner_as_raw() } } impl core::FormattedTrait for core::Ptr { #[inline] fn as_raw_mut_Formatted(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfFormatted") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfFormatter = core::Ptr; ptr_extern! { core::Formatter, cv_PtrLcv_FormatterG_new_null_const, cv_PtrLcv_FormatterG_delete, cv_PtrLcv_FormatterG_getInnerPtr_const, cv_PtrLcv_FormatterG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfFormatter(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfFormatter(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl core::FormatterTraitConst for core::Ptr { #[inline] fn as_raw_Formatter(&self) -> *const c_void { self.inner_as_raw() } } impl core::FormatterTrait for core::Ptr { #[inline] fn as_raw_mut_Formatter(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfFormatter") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfGpuMat_Allocator = core::Ptr; ptr_extern! { core::GpuMat_Allocator, cv_PtrLcv_cuda_GpuMat_AllocatorG_new_null_const, cv_PtrLcv_cuda_GpuMat_AllocatorG_delete, cv_PtrLcv_cuda_GpuMat_AllocatorG_getInnerPtr_const, cv_PtrLcv_cuda_GpuMat_AllocatorG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfGpuMat_Allocator(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfGpuMat_Allocator(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl core::GpuMat_AllocatorTraitConst for core::Ptr { #[inline] fn as_raw_GpuMat_Allocator(&self) -> *const c_void { self.inner_as_raw() } } impl core::GpuMat_AllocatorTrait for core::Ptr { #[inline] fn as_raw_mut_GpuMat_Allocator(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfGpuMat_Allocator") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfMinProblemSolver = core::Ptr; ptr_extern! { core::MinProblemSolver, cv_PtrLcv_MinProblemSolverG_new_null_const, cv_PtrLcv_MinProblemSolverG_delete, cv_PtrLcv_MinProblemSolverG_getInnerPtr_const, cv_PtrLcv_MinProblemSolverG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfMinProblemSolver(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfMinProblemSolver(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl core::MinProblemSolverTraitConst for core::Ptr { #[inline] fn as_raw_MinProblemSolver(&self) -> *const c_void { self.inner_as_raw() } } impl core::MinProblemSolverTrait for core::Ptr { #[inline] fn as_raw_mut_MinProblemSolver(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_MinProblemSolverG_to_PtrOfAlgorithm } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfMinProblemSolver") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfMinProblemSolver_Function = core::Ptr; ptr_extern! { core::MinProblemSolver_Function, cv_PtrLcv_MinProblemSolver_FunctionG_new_null_const, cv_PtrLcv_MinProblemSolver_FunctionG_delete, cv_PtrLcv_MinProblemSolver_FunctionG_getInnerPtr_const, cv_PtrLcv_MinProblemSolver_FunctionG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfMinProblemSolver_Function(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfMinProblemSolver_Function(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl core::MinProblemSolver_FunctionTraitConst for core::Ptr { #[inline] fn as_raw_MinProblemSolver_Function(&self) -> *const c_void { self.inner_as_raw() } } impl core::MinProblemSolver_FunctionTrait for core::Ptr { #[inline] fn as_raw_mut_MinProblemSolver_Function(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfMinProblemSolver_Function") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfOriginalClassName = core::Ptr; ptr_extern! { core::OriginalClassName, cv_PtrLcv_utils_nested_OriginalClassNameG_new_null_const, cv_PtrLcv_utils_nested_OriginalClassNameG_delete, cv_PtrLcv_utils_nested_OriginalClassNameG_getInnerPtr_const, cv_PtrLcv_utils_nested_OriginalClassNameG_getInnerPtrMut } ptr_extern_ctor! { core::OriginalClassName, cv_PtrLcv_utils_nested_OriginalClassNameG_new_const_OriginalClassName } impl core::Ptr { #[inline] pub fn as_raw_PtrOfOriginalClassName(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfOriginalClassName(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl core::OriginalClassNameTraitConst for core::Ptr { #[inline] fn as_raw_OriginalClassName(&self) -> *const c_void { self.inner_as_raw() } } impl core::OriginalClassNameTrait for core::Ptr { #[inline] fn as_raw_mut_OriginalClassName(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfOriginalClassName") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOff32 = core::Ptr; ptr_extern! { f32, cv_PtrLfloatG_new_null_const, cv_PtrLfloatG_delete, cv_PtrLfloatG_getInnerPtr_const, cv_PtrLfloatG_getInnerPtrMut } ptr_extern_ctor! { f32, cv_PtrLfloatG_new_const_float } impl core::Ptr { #[inline] pub fn as_raw_PtrOff32(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOff32(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } #[deprecated = "Use the the non-alias form `core::Tuple<(core::Point2i, core::Point2i)>` instead, removal in Nov 2024"] pub type TupleOfPoint2i_Point2i = core::Tuple<(core::Point2i, core::Point2i)>; impl core::Tuple<(core::Point2i, core::Point2i)> { pub fn as_raw_TupleOfPoint2i_Point2i(&self) -> extern_send!(Self) { self.as_raw() } pub fn as_raw_mut_TupleOfPoint2i_Point2i(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } tuple_extern! { (core::Point2i, core::Point2i), std_pairLcv_Point2i__cv_Point2iG_new_const_Point2i_Point2i, std_pairLcv_Point2i__cv_Point2iG_delete, 0 = arg: core::Point2i, get_0 via std_pairLcv_Point2i__cv_Point2iG_get_0_const, 1 = arg_1: core::Point2i, get_1 via std_pairLcv_Point2i__cv_Point2iG_get_1_const } #[deprecated = "Use the the non-alias form `core::Tuple<(core::Rect, i32)>` instead, removal in Nov 2024"] pub type TupleOfRect_i32 = core::Tuple<(core::Rect, i32)>; impl core::Tuple<(core::Rect, i32)> { pub fn as_raw_TupleOfRect_i32(&self) -> extern_send!(Self) { self.as_raw() } pub fn as_raw_mut_TupleOfRect_i32(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } tuple_extern! { (core::Rect, i32), std_pairLcv_Rect__intG_new_const_Rect_int, std_pairLcv_Rect__intG_delete, 0 = arg: core::Rect, get_0 via std_pairLcv_Rect__intG_get_0_const, 1 = arg_1: i32, get_1 via std_pairLcv_Rect__intG_get_1_const } #[deprecated = "Use the the non-alias form `core::Tuple<(core::UMat, u8)>` instead, removal in Nov 2024"] pub type TupleOfUMat_u8 = core::Tuple<(core::UMat, u8)>; impl core::Tuple<(core::UMat, u8)> { pub fn as_raw_TupleOfUMat_u8(&self) -> extern_send!(Self) { self.as_raw() } pub fn as_raw_mut_TupleOfUMat_u8(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } tuple_extern! { (core::UMat, u8), std_pairLcv_UMat__unsigned_charG_new_const_UMat_unsigned_char, std_pairLcv_UMat__unsigned_charG_delete, 0 = arg: core::UMat, get_0 via std_pairLcv_UMat__unsigned_charG_get_0_const, 1 = arg_1: u8, get_1 via std_pairLcv_UMat__unsigned_charG_get_1_const } #[deprecated = "Use the the non-alias form `core::Tuple<(i32, f32)>` instead, removal in Nov 2024"] pub type TupleOfi32_f32 = core::Tuple<(i32, f32)>; impl core::Tuple<(i32, f32)> { pub fn as_raw_TupleOfi32_f32(&self) -> extern_send!(Self) { self.as_raw() } pub fn as_raw_mut_TupleOfi32_f32(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } tuple_extern! { (i32, f32), std_pairLint__floatG_new_const_int_float, std_pairLint__floatG_delete, 0 = arg: i32, get_0 via std_pairLint__floatG_get_0_const, 1 = arg_1: f32, get_1 via std_pairLint__floatG_get_1_const } #[deprecated = "Use the the non-alias form `core::Tuple<(i32, f64)>` instead, removal in Nov 2024"] pub type TupleOfi32_f64 = core::Tuple<(i32, f64)>; impl core::Tuple<(i32, f64)> { pub fn as_raw_TupleOfi32_f64(&self) -> extern_send!(Self) { self.as_raw() } pub fn as_raw_mut_TupleOfi32_f64(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } tuple_extern! { (i32, f64), std_pairLint__doubleG_new_const_int_double, std_pairLint__doubleG_delete, 0 = arg: i32, get_0 via std_pairLint__doubleG_get_0_const, 1 = arg_1: f64, get_1 via std_pairLint__doubleG_get_1_const } #[deprecated = "Use the the non-alias form `core::Vector` instead, removal in Nov 2024"] pub type VectorOfDMatch = core::Vector; impl core::Vector { pub fn as_raw_VectorOfDMatch(&self) -> extern_send!(Self) { self.as_raw() } pub fn as_raw_mut_VectorOfDMatch(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } vector_extern! { core::DMatch, std_vectorLcv_DMatchG_new_const, std_vectorLcv_DMatchG_delete, std_vectorLcv_DMatchG_len_const, std_vectorLcv_DMatchG_isEmpty_const, std_vectorLcv_DMatchG_capacity_const, std_vectorLcv_DMatchG_shrinkToFit, std_vectorLcv_DMatchG_reserve_size_t, std_vectorLcv_DMatchG_remove_size_t, std_vectorLcv_DMatchG_swap_size_t_size_t, std_vectorLcv_DMatchG_clear, std_vectorLcv_DMatchG_get_const_size_t, std_vectorLcv_DMatchG_set_size_t_const_DMatch, std_vectorLcv_DMatchG_push_const_DMatch, std_vectorLcv_DMatchG_insert_size_t_const_DMatch, } vector_copy_non_bool! { core::DMatch, std_vectorLcv_DMatchG_data_const, std_vectorLcv_DMatchG_dataMut, cv_fromSlice_const_const_DMatchX_size_t, std_vectorLcv_DMatchG_clone_const, } #[deprecated = "Use the the non-alias form `core::Vector` instead, removal in Nov 2024"] pub type VectorOfGpuMat = core::Vector; impl core::Vector { pub fn as_raw_VectorOfGpuMat(&self) -> extern_send!(Self) { self.as_raw() } pub fn as_raw_mut_VectorOfGpuMat(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } vector_extern! { core::GpuMat, std_vectorLcv_cuda_GpuMatG_new_const, std_vectorLcv_cuda_GpuMatG_delete, std_vectorLcv_cuda_GpuMatG_len_const, std_vectorLcv_cuda_GpuMatG_isEmpty_const, std_vectorLcv_cuda_GpuMatG_capacity_const, std_vectorLcv_cuda_GpuMatG_shrinkToFit, std_vectorLcv_cuda_GpuMatG_reserve_size_t, std_vectorLcv_cuda_GpuMatG_remove_size_t, std_vectorLcv_cuda_GpuMatG_swap_size_t_size_t, std_vectorLcv_cuda_GpuMatG_clear, std_vectorLcv_cuda_GpuMatG_get_const_size_t, std_vectorLcv_cuda_GpuMatG_set_size_t_const_GpuMat, std_vectorLcv_cuda_GpuMatG_push_const_GpuMat, std_vectorLcv_cuda_GpuMatG_insert_size_t_const_GpuMat, } vector_non_copy_or_bool! { clone core::GpuMat } vector_boxed_ref! { core::GpuMat } vector_extern! { BoxedRef<'t, core::GpuMat>, std_vectorLcv_cuda_GpuMatG_new_const, std_vectorLcv_cuda_GpuMatG_delete, std_vectorLcv_cuda_GpuMatG_len_const, std_vectorLcv_cuda_GpuMatG_isEmpty_const, std_vectorLcv_cuda_GpuMatG_capacity_const, std_vectorLcv_cuda_GpuMatG_shrinkToFit, std_vectorLcv_cuda_GpuMatG_reserve_size_t, std_vectorLcv_cuda_GpuMatG_remove_size_t, std_vectorLcv_cuda_GpuMatG_swap_size_t_size_t, std_vectorLcv_cuda_GpuMatG_clear, std_vectorLcv_cuda_GpuMatG_get_const_size_t, std_vectorLcv_cuda_GpuMatG_set_size_t_const_GpuMat, std_vectorLcv_cuda_GpuMatG_push_const_GpuMat, std_vectorLcv_cuda_GpuMatG_insert_size_t_const_GpuMat, } #[deprecated = "Use the the non-alias form `core::Vector` instead, removal in Nov 2024"] pub type VectorOfKeyPoint = core::Vector; impl core::Vector { pub fn as_raw_VectorOfKeyPoint(&self) -> extern_send!(Self) { self.as_raw() } pub fn as_raw_mut_VectorOfKeyPoint(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } vector_extern! { core::KeyPoint, std_vectorLcv_KeyPointG_new_const, std_vectorLcv_KeyPointG_delete, std_vectorLcv_KeyPointG_len_const, std_vectorLcv_KeyPointG_isEmpty_const, std_vectorLcv_KeyPointG_capacity_const, std_vectorLcv_KeyPointG_shrinkToFit, std_vectorLcv_KeyPointG_reserve_size_t, std_vectorLcv_KeyPointG_remove_size_t, std_vectorLcv_KeyPointG_swap_size_t_size_t, std_vectorLcv_KeyPointG_clear, std_vectorLcv_KeyPointG_get_const_size_t, std_vectorLcv_KeyPointG_set_size_t_const_KeyPoint, std_vectorLcv_KeyPointG_push_const_KeyPoint, std_vectorLcv_KeyPointG_insert_size_t_const_KeyPoint, } vector_non_copy_or_bool! { clone core::KeyPoint } vector_boxed_ref! { core::KeyPoint } vector_extern! { BoxedRef<'t, core::KeyPoint>, std_vectorLcv_KeyPointG_new_const, std_vectorLcv_KeyPointG_delete, std_vectorLcv_KeyPointG_len_const, std_vectorLcv_KeyPointG_isEmpty_const, std_vectorLcv_KeyPointG_capacity_const, std_vectorLcv_KeyPointG_shrinkToFit, std_vectorLcv_KeyPointG_reserve_size_t, std_vectorLcv_KeyPointG_remove_size_t, std_vectorLcv_KeyPointG_swap_size_t_size_t, std_vectorLcv_KeyPointG_clear, std_vectorLcv_KeyPointG_get_const_size_t, std_vectorLcv_KeyPointG_set_size_t_const_KeyPoint, std_vectorLcv_KeyPointG_push_const_KeyPoint, std_vectorLcv_KeyPointG_insert_size_t_const_KeyPoint, } #[deprecated = "Use the the non-alias form `core::Vector` instead, removal in Nov 2024"] pub type VectorOfMat = core::Vector; impl core::Vector { pub fn as_raw_VectorOfMat(&self) -> extern_send!(Self) { self.as_raw() } pub fn as_raw_mut_VectorOfMat(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } vector_extern! { core::Mat, std_vectorLcv_MatG_new_const, std_vectorLcv_MatG_delete, std_vectorLcv_MatG_len_const, std_vectorLcv_MatG_isEmpty_const, std_vectorLcv_MatG_capacity_const, std_vectorLcv_MatG_shrinkToFit, std_vectorLcv_MatG_reserve_size_t, std_vectorLcv_MatG_remove_size_t, std_vectorLcv_MatG_swap_size_t_size_t, std_vectorLcv_MatG_clear, std_vectorLcv_MatG_get_const_size_t, std_vectorLcv_MatG_set_size_t_const_Mat, std_vectorLcv_MatG_push_const_Mat, std_vectorLcv_MatG_insert_size_t_const_Mat, } vector_non_copy_or_bool! { clone core::Mat } vector_boxed_ref! { core::Mat } vector_extern! { BoxedRef<'t, core::Mat>, std_vectorLcv_MatG_new_const, std_vectorLcv_MatG_delete, std_vectorLcv_MatG_len_const, std_vectorLcv_MatG_isEmpty_const, std_vectorLcv_MatG_capacity_const, std_vectorLcv_MatG_shrinkToFit, std_vectorLcv_MatG_reserve_size_t, std_vectorLcv_MatG_remove_size_t, std_vectorLcv_MatG_swap_size_t_size_t, std_vectorLcv_MatG_clear, std_vectorLcv_MatG_get_const_size_t, std_vectorLcv_MatG_set_size_t_const_Mat, std_vectorLcv_MatG_push_const_Mat, std_vectorLcv_MatG_insert_size_t_const_Mat, } #[deprecated = "Use the the non-alias form `core::Vector` instead, removal in Nov 2024"] pub type VectorOfPlatformInfo = core::Vector; impl core::Vector { pub fn as_raw_VectorOfPlatformInfo(&self) -> extern_send!(Self) { self.as_raw() } pub fn as_raw_mut_VectorOfPlatformInfo(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } vector_extern! { core::PlatformInfo, std_vectorLcv_ocl_PlatformInfoG_new_const, std_vectorLcv_ocl_PlatformInfoG_delete, std_vectorLcv_ocl_PlatformInfoG_len_const, std_vectorLcv_ocl_PlatformInfoG_isEmpty_const, std_vectorLcv_ocl_PlatformInfoG_capacity_const, std_vectorLcv_ocl_PlatformInfoG_shrinkToFit, std_vectorLcv_ocl_PlatformInfoG_reserve_size_t, std_vectorLcv_ocl_PlatformInfoG_remove_size_t, std_vectorLcv_ocl_PlatformInfoG_swap_size_t_size_t, std_vectorLcv_ocl_PlatformInfoG_clear, std_vectorLcv_ocl_PlatformInfoG_get_const_size_t, std_vectorLcv_ocl_PlatformInfoG_set_size_t_const_PlatformInfo, std_vectorLcv_ocl_PlatformInfoG_push_const_PlatformInfo, std_vectorLcv_ocl_PlatformInfoG_insert_size_t_const_PlatformInfo, } vector_non_copy_or_bool! { core::PlatformInfo } vector_boxed_ref! { core::PlatformInfo } vector_extern! { BoxedRef<'t, core::PlatformInfo>, std_vectorLcv_ocl_PlatformInfoG_new_const, std_vectorLcv_ocl_PlatformInfoG_delete, std_vectorLcv_ocl_PlatformInfoG_len_const, std_vectorLcv_ocl_PlatformInfoG_isEmpty_const, std_vectorLcv_ocl_PlatformInfoG_capacity_const, std_vectorLcv_ocl_PlatformInfoG_shrinkToFit, std_vectorLcv_ocl_PlatformInfoG_reserve_size_t, std_vectorLcv_ocl_PlatformInfoG_remove_size_t, std_vectorLcv_ocl_PlatformInfoG_swap_size_t_size_t, std_vectorLcv_ocl_PlatformInfoG_clear, std_vectorLcv_ocl_PlatformInfoG_get_const_size_t, std_vectorLcv_ocl_PlatformInfoG_set_size_t_const_PlatformInfo, std_vectorLcv_ocl_PlatformInfoG_push_const_PlatformInfo, std_vectorLcv_ocl_PlatformInfoG_insert_size_t_const_PlatformInfo, } #[deprecated = "Use the the non-alias form `core::Vector` instead, removal in Nov 2024"] pub type VectorOfPoint = core::Vector; impl core::Vector { pub fn as_raw_VectorOfPoint(&self) -> extern_send!(Self) { self.as_raw() } pub fn as_raw_mut_VectorOfPoint(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } vector_extern! { core::Point, std_vectorLcv_PointG_new_const, std_vectorLcv_PointG_delete, std_vectorLcv_PointG_len_const, std_vectorLcv_PointG_isEmpty_const, std_vectorLcv_PointG_capacity_const, std_vectorLcv_PointG_shrinkToFit, std_vectorLcv_PointG_reserve_size_t, std_vectorLcv_PointG_remove_size_t, std_vectorLcv_PointG_swap_size_t_size_t, std_vectorLcv_PointG_clear, std_vectorLcv_PointG_get_const_size_t, std_vectorLcv_PointG_set_size_t_const_Point, std_vectorLcv_PointG_push_const_Point, std_vectorLcv_PointG_insert_size_t_const_Point, } vector_copy_non_bool! { core::Point, std_vectorLcv_PointG_data_const, std_vectorLcv_PointG_dataMut, cv_fromSlice_const_const_PointX_size_t, std_vectorLcv_PointG_clone_const, } impl ToInputArray for core::Vector { #[inline] fn input_array(&self) -> Result> { return_send!(via ocvrs_return); unsafe { sys::std_vectorLcv_PointG_inputArray_const(self.as_raw_VectorOfPoint(), ocvrs_return.as_mut_ptr()) }; return_receive!(unsafe ocvrs_return => ret); let ret = ret.into_result()?; let ret = unsafe { BoxedRef::::opencv_from_extern(ret) }; Ok(ret) } } input_array_ref_forward! { core::Vector } impl ToOutputArray for core::Vector { #[inline] fn output_array(&mut self) -> Result> { return_send!(via ocvrs_return); unsafe { sys::std_vectorLcv_PointG_outputArray(self.as_raw_mut_VectorOfPoint(), ocvrs_return.as_mut_ptr()) }; return_receive!(unsafe ocvrs_return => ret); let ret = ret.into_result()?; let ret = unsafe { BoxedRefMut::::opencv_from_extern(ret) }; Ok(ret) } } impl ToInputOutputArray for core::Vector { #[inline] fn input_output_array(&mut self) -> Result> { return_send!(via ocvrs_return); unsafe { sys::std_vectorLcv_PointG_inputOutputArray(self.as_raw_mut_VectorOfPoint(), ocvrs_return.as_mut_ptr()) }; return_receive!(unsafe ocvrs_return => ret); let ret = ret.into_result()?; let ret = unsafe { BoxedRefMut::::opencv_from_extern(ret) }; Ok(ret) } } output_array_ref_forward! { core::Vector } #[deprecated = "Use the the non-alias form `core::Vector` instead, removal in Nov 2024"] pub type VectorOfPoint2d = core::Vector; impl core::Vector { pub fn as_raw_VectorOfPoint2d(&self) -> extern_send!(Self) { self.as_raw() } pub fn as_raw_mut_VectorOfPoint2d(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } vector_extern! { core::Point2d, std_vectorLcv_Point2dG_new_const, std_vectorLcv_Point2dG_delete, std_vectorLcv_Point2dG_len_const, std_vectorLcv_Point2dG_isEmpty_const, std_vectorLcv_Point2dG_capacity_const, std_vectorLcv_Point2dG_shrinkToFit, std_vectorLcv_Point2dG_reserve_size_t, std_vectorLcv_Point2dG_remove_size_t, std_vectorLcv_Point2dG_swap_size_t_size_t, std_vectorLcv_Point2dG_clear, std_vectorLcv_Point2dG_get_const_size_t, std_vectorLcv_Point2dG_set_size_t_const_Point2d, std_vectorLcv_Point2dG_push_const_Point2d, std_vectorLcv_Point2dG_insert_size_t_const_Point2d, } vector_copy_non_bool! { core::Point2d, std_vectorLcv_Point2dG_data_const, std_vectorLcv_Point2dG_dataMut, cv_fromSlice_const_const_Point2dX_size_t, std_vectorLcv_Point2dG_clone_const, } impl ToInputArray for core::Vector { #[inline] fn input_array(&self) -> Result> { return_send!(via ocvrs_return); unsafe { sys::std_vectorLcv_Point2dG_inputArray_const(self.as_raw_VectorOfPoint2d(), ocvrs_return.as_mut_ptr()) }; return_receive!(unsafe ocvrs_return => ret); let ret = ret.into_result()?; let ret = unsafe { BoxedRef::::opencv_from_extern(ret) }; Ok(ret) } } input_array_ref_forward! { core::Vector } impl ToOutputArray for core::Vector { #[inline] fn output_array(&mut self) -> Result> { return_send!(via ocvrs_return); unsafe { sys::std_vectorLcv_Point2dG_outputArray(self.as_raw_mut_VectorOfPoint2d(), ocvrs_return.as_mut_ptr()) }; return_receive!(unsafe ocvrs_return => ret); let ret = ret.into_result()?; let ret = unsafe { BoxedRefMut::::opencv_from_extern(ret) }; Ok(ret) } } impl ToInputOutputArray for core::Vector { #[inline] fn input_output_array(&mut self) -> Result> { return_send!(via ocvrs_return); unsafe { sys::std_vectorLcv_Point2dG_inputOutputArray(self.as_raw_mut_VectorOfPoint2d(), ocvrs_return.as_mut_ptr()) }; return_receive!(unsafe ocvrs_return => ret); let ret = ret.into_result()?; let ret = unsafe { BoxedRefMut::::opencv_from_extern(ret) }; Ok(ret) } } output_array_ref_forward! { core::Vector } #[deprecated = "Use the the non-alias form `core::Vector` instead, removal in Nov 2024"] pub type VectorOfPoint2f = core::Vector; impl core::Vector { pub fn as_raw_VectorOfPoint2f(&self) -> extern_send!(Self) { self.as_raw() } pub fn as_raw_mut_VectorOfPoint2f(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } vector_extern! { core::Point2f, std_vectorLcv_Point2fG_new_const, std_vectorLcv_Point2fG_delete, std_vectorLcv_Point2fG_len_const, std_vectorLcv_Point2fG_isEmpty_const, std_vectorLcv_Point2fG_capacity_const, std_vectorLcv_Point2fG_shrinkToFit, std_vectorLcv_Point2fG_reserve_size_t, std_vectorLcv_Point2fG_remove_size_t, std_vectorLcv_Point2fG_swap_size_t_size_t, std_vectorLcv_Point2fG_clear, std_vectorLcv_Point2fG_get_const_size_t, std_vectorLcv_Point2fG_set_size_t_const_Point2f, std_vectorLcv_Point2fG_push_const_Point2f, std_vectorLcv_Point2fG_insert_size_t_const_Point2f, } vector_copy_non_bool! { core::Point2f, std_vectorLcv_Point2fG_data_const, std_vectorLcv_Point2fG_dataMut, cv_fromSlice_const_const_Point2fX_size_t, std_vectorLcv_Point2fG_clone_const, } impl ToInputArray for core::Vector { #[inline] fn input_array(&self) -> Result> { return_send!(via ocvrs_return); unsafe { sys::std_vectorLcv_Point2fG_inputArray_const(self.as_raw_VectorOfPoint2f(), ocvrs_return.as_mut_ptr()) }; return_receive!(unsafe ocvrs_return => ret); let ret = ret.into_result()?; let ret = unsafe { BoxedRef::::opencv_from_extern(ret) }; Ok(ret) } } input_array_ref_forward! { core::Vector } impl ToOutputArray for core::Vector { #[inline] fn output_array(&mut self) -> Result> { return_send!(via ocvrs_return); unsafe { sys::std_vectorLcv_Point2fG_outputArray(self.as_raw_mut_VectorOfPoint2f(), ocvrs_return.as_mut_ptr()) }; return_receive!(unsafe ocvrs_return => ret); let ret = ret.into_result()?; let ret = unsafe { BoxedRefMut::::opencv_from_extern(ret) }; Ok(ret) } } impl ToInputOutputArray for core::Vector { #[inline] fn input_output_array(&mut self) -> Result> { return_send!(via ocvrs_return); unsafe { sys::std_vectorLcv_Point2fG_inputOutputArray(self.as_raw_mut_VectorOfPoint2f(), ocvrs_return.as_mut_ptr()) }; return_receive!(unsafe ocvrs_return => ret); let ret = ret.into_result()?; let ret = unsafe { BoxedRefMut::::opencv_from_extern(ret) }; Ok(ret) } } output_array_ref_forward! { core::Vector } #[deprecated = "Use the the non-alias form `core::Vector` instead, removal in Nov 2024"] pub type VectorOfPoint3d = core::Vector; impl core::Vector { pub fn as_raw_VectorOfPoint3d(&self) -> extern_send!(Self) { self.as_raw() } pub fn as_raw_mut_VectorOfPoint3d(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } vector_extern! { core::Point3d, std_vectorLcv_Point3dG_new_const, std_vectorLcv_Point3dG_delete, std_vectorLcv_Point3dG_len_const, std_vectorLcv_Point3dG_isEmpty_const, std_vectorLcv_Point3dG_capacity_const, std_vectorLcv_Point3dG_shrinkToFit, std_vectorLcv_Point3dG_reserve_size_t, std_vectorLcv_Point3dG_remove_size_t, std_vectorLcv_Point3dG_swap_size_t_size_t, std_vectorLcv_Point3dG_clear, std_vectorLcv_Point3dG_get_const_size_t, std_vectorLcv_Point3dG_set_size_t_const_Point3d, std_vectorLcv_Point3dG_push_const_Point3d, std_vectorLcv_Point3dG_insert_size_t_const_Point3d, } vector_copy_non_bool! { core::Point3d, std_vectorLcv_Point3dG_data_const, std_vectorLcv_Point3dG_dataMut, cv_fromSlice_const_const_Point3dX_size_t, std_vectorLcv_Point3dG_clone_const, } impl ToInputArray for core::Vector { #[inline] fn input_array(&self) -> Result> { return_send!(via ocvrs_return); unsafe { sys::std_vectorLcv_Point3dG_inputArray_const(self.as_raw_VectorOfPoint3d(), ocvrs_return.as_mut_ptr()) }; return_receive!(unsafe ocvrs_return => ret); let ret = ret.into_result()?; let ret = unsafe { BoxedRef::::opencv_from_extern(ret) }; Ok(ret) } } input_array_ref_forward! { core::Vector } impl ToOutputArray for core::Vector { #[inline] fn output_array(&mut self) -> Result> { return_send!(via ocvrs_return); unsafe { sys::std_vectorLcv_Point3dG_outputArray(self.as_raw_mut_VectorOfPoint3d(), ocvrs_return.as_mut_ptr()) }; return_receive!(unsafe ocvrs_return => ret); let ret = ret.into_result()?; let ret = unsafe { BoxedRefMut::::opencv_from_extern(ret) }; Ok(ret) } } impl ToInputOutputArray for core::Vector { #[inline] fn input_output_array(&mut self) -> Result> { return_send!(via ocvrs_return); unsafe { sys::std_vectorLcv_Point3dG_inputOutputArray(self.as_raw_mut_VectorOfPoint3d(), ocvrs_return.as_mut_ptr()) }; return_receive!(unsafe ocvrs_return => ret); let ret = ret.into_result()?; let ret = unsafe { BoxedRefMut::::opencv_from_extern(ret) }; Ok(ret) } } output_array_ref_forward! { core::Vector } #[deprecated = "Use the the non-alias form `core::Vector` instead, removal in Nov 2024"] pub type VectorOfPoint3f = core::Vector; impl core::Vector { pub fn as_raw_VectorOfPoint3f(&self) -> extern_send!(Self) { self.as_raw() } pub fn as_raw_mut_VectorOfPoint3f(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } vector_extern! { core::Point3f, std_vectorLcv_Point3fG_new_const, std_vectorLcv_Point3fG_delete, std_vectorLcv_Point3fG_len_const, std_vectorLcv_Point3fG_isEmpty_const, std_vectorLcv_Point3fG_capacity_const, std_vectorLcv_Point3fG_shrinkToFit, std_vectorLcv_Point3fG_reserve_size_t, std_vectorLcv_Point3fG_remove_size_t, std_vectorLcv_Point3fG_swap_size_t_size_t, std_vectorLcv_Point3fG_clear, std_vectorLcv_Point3fG_get_const_size_t, std_vectorLcv_Point3fG_set_size_t_const_Point3f, std_vectorLcv_Point3fG_push_const_Point3f, std_vectorLcv_Point3fG_insert_size_t_const_Point3f, } vector_copy_non_bool! { core::Point3f, std_vectorLcv_Point3fG_data_const, std_vectorLcv_Point3fG_dataMut, cv_fromSlice_const_const_Point3fX_size_t, std_vectorLcv_Point3fG_clone_const, } impl ToInputArray for core::Vector { #[inline] fn input_array(&self) -> Result> { return_send!(via ocvrs_return); unsafe { sys::std_vectorLcv_Point3fG_inputArray_const(self.as_raw_VectorOfPoint3f(), ocvrs_return.as_mut_ptr()) }; return_receive!(unsafe ocvrs_return => ret); let ret = ret.into_result()?; let ret = unsafe { BoxedRef::::opencv_from_extern(ret) }; Ok(ret) } } input_array_ref_forward! { core::Vector } impl ToOutputArray for core::Vector { #[inline] fn output_array(&mut self) -> Result> { return_send!(via ocvrs_return); unsafe { sys::std_vectorLcv_Point3fG_outputArray(self.as_raw_mut_VectorOfPoint3f(), ocvrs_return.as_mut_ptr()) }; return_receive!(unsafe ocvrs_return => ret); let ret = ret.into_result()?; let ret = unsafe { BoxedRefMut::::opencv_from_extern(ret) }; Ok(ret) } } impl ToInputOutputArray for core::Vector { #[inline] fn input_output_array(&mut self) -> Result> { return_send!(via ocvrs_return); unsafe { sys::std_vectorLcv_Point3fG_inputOutputArray(self.as_raw_mut_VectorOfPoint3f(), ocvrs_return.as_mut_ptr()) }; return_receive!(unsafe ocvrs_return => ret); let ret = ret.into_result()?; let ret = unsafe { BoxedRefMut::::opencv_from_extern(ret) }; Ok(ret) } } output_array_ref_forward! { core::Vector } #[deprecated = "Use the the non-alias form `core::Vector` instead, removal in Nov 2024"] pub type VectorOfPoint3i = core::Vector; impl core::Vector { pub fn as_raw_VectorOfPoint3i(&self) -> extern_send!(Self) { self.as_raw() } pub fn as_raw_mut_VectorOfPoint3i(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } vector_extern! { core::Point3i, std_vectorLcv_Point3iG_new_const, std_vectorLcv_Point3iG_delete, std_vectorLcv_Point3iG_len_const, std_vectorLcv_Point3iG_isEmpty_const, std_vectorLcv_Point3iG_capacity_const, std_vectorLcv_Point3iG_shrinkToFit, std_vectorLcv_Point3iG_reserve_size_t, std_vectorLcv_Point3iG_remove_size_t, std_vectorLcv_Point3iG_swap_size_t_size_t, std_vectorLcv_Point3iG_clear, std_vectorLcv_Point3iG_get_const_size_t, std_vectorLcv_Point3iG_set_size_t_const_Point3i, std_vectorLcv_Point3iG_push_const_Point3i, std_vectorLcv_Point3iG_insert_size_t_const_Point3i, } vector_copy_non_bool! { core::Point3i, std_vectorLcv_Point3iG_data_const, std_vectorLcv_Point3iG_dataMut, cv_fromSlice_const_const_Point3iX_size_t, std_vectorLcv_Point3iG_clone_const, } impl ToInputArray for core::Vector { #[inline] fn input_array(&self) -> Result> { return_send!(via ocvrs_return); unsafe { sys::std_vectorLcv_Point3iG_inputArray_const(self.as_raw_VectorOfPoint3i(), ocvrs_return.as_mut_ptr()) }; return_receive!(unsafe ocvrs_return => ret); let ret = ret.into_result()?; let ret = unsafe { BoxedRef::::opencv_from_extern(ret) }; Ok(ret) } } input_array_ref_forward! { core::Vector } impl ToOutputArray for core::Vector { #[inline] fn output_array(&mut self) -> Result> { return_send!(via ocvrs_return); unsafe { sys::std_vectorLcv_Point3iG_outputArray(self.as_raw_mut_VectorOfPoint3i(), ocvrs_return.as_mut_ptr()) }; return_receive!(unsafe ocvrs_return => ret); let ret = ret.into_result()?; let ret = unsafe { BoxedRefMut::::opencv_from_extern(ret) }; Ok(ret) } } impl ToInputOutputArray for core::Vector { #[inline] fn input_output_array(&mut self) -> Result> { return_send!(via ocvrs_return); unsafe { sys::std_vectorLcv_Point3iG_inputOutputArray(self.as_raw_mut_VectorOfPoint3i(), ocvrs_return.as_mut_ptr()) }; return_receive!(unsafe ocvrs_return => ret); let ret = ret.into_result()?; let ret = unsafe { BoxedRefMut::::opencv_from_extern(ret) }; Ok(ret) } } output_array_ref_forward! { core::Vector } #[deprecated = "Use the the non-alias form `core::Vector` instead, removal in Nov 2024"] pub type VectorOfRange = core::Vector; impl core::Vector { pub fn as_raw_VectorOfRange(&self) -> extern_send!(Self) { self.as_raw() } pub fn as_raw_mut_VectorOfRange(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } vector_extern! { core::Range, std_vectorLcv_RangeG_new_const, std_vectorLcv_RangeG_delete, std_vectorLcv_RangeG_len_const, std_vectorLcv_RangeG_isEmpty_const, std_vectorLcv_RangeG_capacity_const, std_vectorLcv_RangeG_shrinkToFit, std_vectorLcv_RangeG_reserve_size_t, std_vectorLcv_RangeG_remove_size_t, std_vectorLcv_RangeG_swap_size_t_size_t, std_vectorLcv_RangeG_clear, std_vectorLcv_RangeG_get_const_size_t, std_vectorLcv_RangeG_set_size_t_const_Range, std_vectorLcv_RangeG_push_const_Range, std_vectorLcv_RangeG_insert_size_t_const_Range, } vector_non_copy_or_bool! { core::Range } vector_boxed_ref! { core::Range } vector_extern! { BoxedRef<'t, core::Range>, std_vectorLcv_RangeG_new_const, std_vectorLcv_RangeG_delete, std_vectorLcv_RangeG_len_const, std_vectorLcv_RangeG_isEmpty_const, std_vectorLcv_RangeG_capacity_const, std_vectorLcv_RangeG_shrinkToFit, std_vectorLcv_RangeG_reserve_size_t, std_vectorLcv_RangeG_remove_size_t, std_vectorLcv_RangeG_swap_size_t_size_t, std_vectorLcv_RangeG_clear, std_vectorLcv_RangeG_get_const_size_t, std_vectorLcv_RangeG_set_size_t_const_Range, std_vectorLcv_RangeG_push_const_Range, std_vectorLcv_RangeG_insert_size_t_const_Range, } #[deprecated = "Use the the non-alias form `core::Vector` instead, removal in Nov 2024"] pub type VectorOfRect = core::Vector; impl core::Vector { pub fn as_raw_VectorOfRect(&self) -> extern_send!(Self) { self.as_raw() } pub fn as_raw_mut_VectorOfRect(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } vector_extern! { core::Rect, std_vectorLcv_RectG_new_const, std_vectorLcv_RectG_delete, std_vectorLcv_RectG_len_const, std_vectorLcv_RectG_isEmpty_const, std_vectorLcv_RectG_capacity_const, std_vectorLcv_RectG_shrinkToFit, std_vectorLcv_RectG_reserve_size_t, std_vectorLcv_RectG_remove_size_t, std_vectorLcv_RectG_swap_size_t_size_t, std_vectorLcv_RectG_clear, std_vectorLcv_RectG_get_const_size_t, std_vectorLcv_RectG_set_size_t_const_Rect, std_vectorLcv_RectG_push_const_Rect, std_vectorLcv_RectG_insert_size_t_const_Rect, } vector_copy_non_bool! { core::Rect, std_vectorLcv_RectG_data_const, std_vectorLcv_RectG_dataMut, cv_fromSlice_const_const_RectX_size_t, std_vectorLcv_RectG_clone_const, } impl ToInputArray for core::Vector { #[inline] fn input_array(&self) -> Result> { return_send!(via ocvrs_return); unsafe { sys::std_vectorLcv_RectG_inputArray_const(self.as_raw_VectorOfRect(), ocvrs_return.as_mut_ptr()) }; return_receive!(unsafe ocvrs_return => ret); let ret = ret.into_result()?; let ret = unsafe { BoxedRef::::opencv_from_extern(ret) }; Ok(ret) } } input_array_ref_forward! { core::Vector } impl ToOutputArray for core::Vector { #[inline] fn output_array(&mut self) -> Result> { return_send!(via ocvrs_return); unsafe { sys::std_vectorLcv_RectG_outputArray(self.as_raw_mut_VectorOfRect(), ocvrs_return.as_mut_ptr()) }; return_receive!(unsafe ocvrs_return => ret); let ret = ret.into_result()?; let ret = unsafe { BoxedRefMut::::opencv_from_extern(ret) }; Ok(ret) } } impl ToInputOutputArray for core::Vector { #[inline] fn input_output_array(&mut self) -> Result> { return_send!(via ocvrs_return); unsafe { sys::std_vectorLcv_RectG_inputOutputArray(self.as_raw_mut_VectorOfRect(), ocvrs_return.as_mut_ptr()) }; return_receive!(unsafe ocvrs_return => ret); let ret = ret.into_result()?; let ret = unsafe { BoxedRefMut::::opencv_from_extern(ret) }; Ok(ret) } } output_array_ref_forward! { core::Vector } #[deprecated = "Use the the non-alias form `core::Vector` instead, removal in Nov 2024"] pub type VectorOfRect2d = core::Vector; impl core::Vector { pub fn as_raw_VectorOfRect2d(&self) -> extern_send!(Self) { self.as_raw() } pub fn as_raw_mut_VectorOfRect2d(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } vector_extern! { core::Rect2d, std_vectorLcv_Rect2dG_new_const, std_vectorLcv_Rect2dG_delete, std_vectorLcv_Rect2dG_len_const, std_vectorLcv_Rect2dG_isEmpty_const, std_vectorLcv_Rect2dG_capacity_const, std_vectorLcv_Rect2dG_shrinkToFit, std_vectorLcv_Rect2dG_reserve_size_t, std_vectorLcv_Rect2dG_remove_size_t, std_vectorLcv_Rect2dG_swap_size_t_size_t, std_vectorLcv_Rect2dG_clear, std_vectorLcv_Rect2dG_get_const_size_t, std_vectorLcv_Rect2dG_set_size_t_const_Rect2d, std_vectorLcv_Rect2dG_push_const_Rect2d, std_vectorLcv_Rect2dG_insert_size_t_const_Rect2d, } vector_copy_non_bool! { core::Rect2d, std_vectorLcv_Rect2dG_data_const, std_vectorLcv_Rect2dG_dataMut, cv_fromSlice_const_const_Rect2dX_size_t, std_vectorLcv_Rect2dG_clone_const, } impl ToInputArray for core::Vector { #[inline] fn input_array(&self) -> Result> { return_send!(via ocvrs_return); unsafe { sys::std_vectorLcv_Rect2dG_inputArray_const(self.as_raw_VectorOfRect2d(), ocvrs_return.as_mut_ptr()) }; return_receive!(unsafe ocvrs_return => ret); let ret = ret.into_result()?; let ret = unsafe { BoxedRef::::opencv_from_extern(ret) }; Ok(ret) } } input_array_ref_forward! { core::Vector } impl ToOutputArray for core::Vector { #[inline] fn output_array(&mut self) -> Result> { return_send!(via ocvrs_return); unsafe { sys::std_vectorLcv_Rect2dG_outputArray(self.as_raw_mut_VectorOfRect2d(), ocvrs_return.as_mut_ptr()) }; return_receive!(unsafe ocvrs_return => ret); let ret = ret.into_result()?; let ret = unsafe { BoxedRefMut::::opencv_from_extern(ret) }; Ok(ret) } } impl ToInputOutputArray for core::Vector { #[inline] fn input_output_array(&mut self) -> Result> { return_send!(via ocvrs_return); unsafe { sys::std_vectorLcv_Rect2dG_inputOutputArray(self.as_raw_mut_VectorOfRect2d(), ocvrs_return.as_mut_ptr()) }; return_receive!(unsafe ocvrs_return => ret); let ret = ret.into_result()?; let ret = unsafe { BoxedRefMut::::opencv_from_extern(ret) }; Ok(ret) } } output_array_ref_forward! { core::Vector } #[deprecated = "Use the the non-alias form `core::Vector` instead, removal in Nov 2024"] pub type VectorOfRotatedRect = core::Vector; impl core::Vector { pub fn as_raw_VectorOfRotatedRect(&self) -> extern_send!(Self) { self.as_raw() } pub fn as_raw_mut_VectorOfRotatedRect(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } vector_extern! { core::RotatedRect, std_vectorLcv_RotatedRectG_new_const, std_vectorLcv_RotatedRectG_delete, std_vectorLcv_RotatedRectG_len_const, std_vectorLcv_RotatedRectG_isEmpty_const, std_vectorLcv_RotatedRectG_capacity_const, std_vectorLcv_RotatedRectG_shrinkToFit, std_vectorLcv_RotatedRectG_reserve_size_t, std_vectorLcv_RotatedRectG_remove_size_t, std_vectorLcv_RotatedRectG_swap_size_t_size_t, std_vectorLcv_RotatedRectG_clear, std_vectorLcv_RotatedRectG_get_const_size_t, std_vectorLcv_RotatedRectG_set_size_t_const_RotatedRect, std_vectorLcv_RotatedRectG_push_const_RotatedRect, std_vectorLcv_RotatedRectG_insert_size_t_const_RotatedRect, } vector_copy_non_bool! { core::RotatedRect, std_vectorLcv_RotatedRectG_data_const, std_vectorLcv_RotatedRectG_dataMut, cv_fromSlice_const_const_RotatedRectX_size_t, std_vectorLcv_RotatedRectG_clone_const, } #[deprecated = "Use the the non-alias form `core::Vector` instead, removal in Nov 2024"] pub type VectorOfScalar = core::Vector; impl core::Vector { pub fn as_raw_VectorOfScalar(&self) -> extern_send!(Self) { self.as_raw() } pub fn as_raw_mut_VectorOfScalar(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } vector_extern! { core::Scalar, std_vectorLcv_ScalarG_new_const, std_vectorLcv_ScalarG_delete, std_vectorLcv_ScalarG_len_const, std_vectorLcv_ScalarG_isEmpty_const, std_vectorLcv_ScalarG_capacity_const, std_vectorLcv_ScalarG_shrinkToFit, std_vectorLcv_ScalarG_reserve_size_t, std_vectorLcv_ScalarG_remove_size_t, std_vectorLcv_ScalarG_swap_size_t_size_t, std_vectorLcv_ScalarG_clear, std_vectorLcv_ScalarG_get_const_size_t, std_vectorLcv_ScalarG_set_size_t_const_Scalar, std_vectorLcv_ScalarG_push_const_Scalar, std_vectorLcv_ScalarG_insert_size_t_const_Scalar, } vector_copy_non_bool! { core::Scalar, std_vectorLcv_ScalarG_data_const, std_vectorLcv_ScalarG_dataMut, cv_fromSlice_const_const_ScalarX_size_t, std_vectorLcv_ScalarG_clone_const, } impl ToInputArray for core::Vector { #[inline] fn input_array(&self) -> Result> { return_send!(via ocvrs_return); unsafe { sys::std_vectorLcv_ScalarG_inputArray_const(self.as_raw_VectorOfScalar(), ocvrs_return.as_mut_ptr()) }; return_receive!(unsafe ocvrs_return => ret); let ret = ret.into_result()?; let ret = unsafe { BoxedRef::::opencv_from_extern(ret) }; Ok(ret) } } input_array_ref_forward! { core::Vector } impl ToOutputArray for core::Vector { #[inline] fn output_array(&mut self) -> Result> { return_send!(via ocvrs_return); unsafe { sys::std_vectorLcv_ScalarG_outputArray(self.as_raw_mut_VectorOfScalar(), ocvrs_return.as_mut_ptr()) }; return_receive!(unsafe ocvrs_return => ret); let ret = ret.into_result()?; let ret = unsafe { BoxedRefMut::::opencv_from_extern(ret) }; Ok(ret) } } impl ToInputOutputArray for core::Vector { #[inline] fn input_output_array(&mut self) -> Result> { return_send!(via ocvrs_return); unsafe { sys::std_vectorLcv_ScalarG_inputOutputArray(self.as_raw_mut_VectorOfScalar(), ocvrs_return.as_mut_ptr()) }; return_receive!(unsafe ocvrs_return => ret); let ret = ret.into_result()?; let ret = unsafe { BoxedRefMut::::opencv_from_extern(ret) }; Ok(ret) } } output_array_ref_forward! { core::Vector } #[deprecated = "Use the the non-alias form `core::Vector` instead, removal in Nov 2024"] pub type VectorOfSize = core::Vector; impl core::Vector { pub fn as_raw_VectorOfSize(&self) -> extern_send!(Self) { self.as_raw() } pub fn as_raw_mut_VectorOfSize(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } vector_extern! { core::Size, std_vectorLcv_SizeG_new_const, std_vectorLcv_SizeG_delete, std_vectorLcv_SizeG_len_const, std_vectorLcv_SizeG_isEmpty_const, std_vectorLcv_SizeG_capacity_const, std_vectorLcv_SizeG_shrinkToFit, std_vectorLcv_SizeG_reserve_size_t, std_vectorLcv_SizeG_remove_size_t, std_vectorLcv_SizeG_swap_size_t_size_t, std_vectorLcv_SizeG_clear, std_vectorLcv_SizeG_get_const_size_t, std_vectorLcv_SizeG_set_size_t_const_Size, std_vectorLcv_SizeG_push_const_Size, std_vectorLcv_SizeG_insert_size_t_const_Size, } vector_copy_non_bool! { core::Size, std_vectorLcv_SizeG_data_const, std_vectorLcv_SizeG_dataMut, cv_fromSlice_const_const_SizeX_size_t, std_vectorLcv_SizeG_clone_const, } impl ToInputArray for core::Vector { #[inline] fn input_array(&self) -> Result> { return_send!(via ocvrs_return); unsafe { sys::std_vectorLcv_SizeG_inputArray_const(self.as_raw_VectorOfSize(), ocvrs_return.as_mut_ptr()) }; return_receive!(unsafe ocvrs_return => ret); let ret = ret.into_result()?; let ret = unsafe { BoxedRef::::opencv_from_extern(ret) }; Ok(ret) } } input_array_ref_forward! { core::Vector } impl ToOutputArray for core::Vector { #[inline] fn output_array(&mut self) -> Result> { return_send!(via ocvrs_return); unsafe { sys::std_vectorLcv_SizeG_outputArray(self.as_raw_mut_VectorOfSize(), ocvrs_return.as_mut_ptr()) }; return_receive!(unsafe ocvrs_return => ret); let ret = ret.into_result()?; let ret = unsafe { BoxedRefMut::::opencv_from_extern(ret) }; Ok(ret) } } impl ToInputOutputArray for core::Vector { #[inline] fn input_output_array(&mut self) -> Result> { return_send!(via ocvrs_return); unsafe { sys::std_vectorLcv_SizeG_inputOutputArray(self.as_raw_mut_VectorOfSize(), ocvrs_return.as_mut_ptr()) }; return_receive!(unsafe ocvrs_return => ret); let ret = ret.into_result()?; let ret = unsafe { BoxedRefMut::::opencv_from_extern(ret) }; Ok(ret) } } output_array_ref_forward! { core::Vector } #[deprecated = "Use the the non-alias form `core::Vector` instead, removal in Nov 2024"] pub type VectorOfString = core::Vector; impl core::Vector { pub fn as_raw_VectorOfString(&self) -> extern_send!(Self) { self.as_raw() } pub fn as_raw_mut_VectorOfString(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } vector_extern! { String, std_vectorLcv_StringG_new_const, std_vectorLcv_StringG_delete, std_vectorLcv_StringG_len_const, std_vectorLcv_StringG_isEmpty_const, std_vectorLcv_StringG_capacity_const, std_vectorLcv_StringG_shrinkToFit, std_vectorLcv_StringG_reserve_size_t, std_vectorLcv_StringG_remove_size_t, std_vectorLcv_StringG_swap_size_t_size_t, std_vectorLcv_StringG_clear, std_vectorLcv_StringG_get_const_size_t, std_vectorLcv_StringG_set_size_t_const_String, std_vectorLcv_StringG_push_const_String, std_vectorLcv_StringG_insert_size_t_const_String, } vector_non_copy_or_bool! { String } #[deprecated = "Use the the non-alias form `core::Vector>` instead, removal in Nov 2024"] pub type VectorOfTupleOfPoint2i_Point2i = core::Vector>; impl core::Vector> { pub fn as_raw_VectorOfTupleOfPoint2i_Point2i(&self) -> extern_send!(Self) { self.as_raw() } pub fn as_raw_mut_VectorOfTupleOfPoint2i_Point2i(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } vector_extern! { core::Tuple<(core::Point2i, core::Point2i)>, std_vectorLstd_pairLcv_Point2i__cv_Point2iGG_new_const, std_vectorLstd_pairLcv_Point2i__cv_Point2iGG_delete, std_vectorLstd_pairLcv_Point2i__cv_Point2iGG_len_const, std_vectorLstd_pairLcv_Point2i__cv_Point2iGG_isEmpty_const, std_vectorLstd_pairLcv_Point2i__cv_Point2iGG_capacity_const, std_vectorLstd_pairLcv_Point2i__cv_Point2iGG_shrinkToFit, std_vectorLstd_pairLcv_Point2i__cv_Point2iGG_reserve_size_t, std_vectorLstd_pairLcv_Point2i__cv_Point2iGG_remove_size_t, std_vectorLstd_pairLcv_Point2i__cv_Point2iGG_swap_size_t_size_t, std_vectorLstd_pairLcv_Point2i__cv_Point2iGG_clear, std_vectorLstd_pairLcv_Point2i__cv_Point2iGG_get_const_size_t, std_vectorLstd_pairLcv_Point2i__cv_Point2iGG_set_size_t_const_pairLcv_Point2i__cv_Point2iG, std_vectorLstd_pairLcv_Point2i__cv_Point2iGG_push_const_pairLcv_Point2i__cv_Point2iG, std_vectorLstd_pairLcv_Point2i__cv_Point2iGG_insert_size_t_const_pairLcv_Point2i__cv_Point2iG, } vector_non_copy_or_bool! { core::Tuple<(core::Point2i, core::Point2i)> } #[deprecated = "Use the the non-alias form `core::Vector>` instead, removal in Nov 2024"] pub type VectorOfTupleOfUMat_u8 = core::Vector>; impl core::Vector> { pub fn as_raw_VectorOfTupleOfUMat_u8(&self) -> extern_send!(Self) { self.as_raw() } pub fn as_raw_mut_VectorOfTupleOfUMat_u8(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } vector_extern! { core::Tuple<(core::UMat, u8)>, std_vectorLstd_pairLcv_UMat__unsigned_charGG_new_const, std_vectorLstd_pairLcv_UMat__unsigned_charGG_delete, std_vectorLstd_pairLcv_UMat__unsigned_charGG_len_const, std_vectorLstd_pairLcv_UMat__unsigned_charGG_isEmpty_const, std_vectorLstd_pairLcv_UMat__unsigned_charGG_capacity_const, std_vectorLstd_pairLcv_UMat__unsigned_charGG_shrinkToFit, std_vectorLstd_pairLcv_UMat__unsigned_charGG_reserve_size_t, std_vectorLstd_pairLcv_UMat__unsigned_charGG_remove_size_t, std_vectorLstd_pairLcv_UMat__unsigned_charGG_swap_size_t_size_t, std_vectorLstd_pairLcv_UMat__unsigned_charGG_clear, std_vectorLstd_pairLcv_UMat__unsigned_charGG_get_const_size_t, std_vectorLstd_pairLcv_UMat__unsigned_charGG_set_size_t_const_pairLcv_UMat__unsigned_charG, std_vectorLstd_pairLcv_UMat__unsigned_charGG_push_const_pairLcv_UMat__unsigned_charG, std_vectorLstd_pairLcv_UMat__unsigned_charGG_insert_size_t_const_pairLcv_UMat__unsigned_charG, } vector_non_copy_or_bool! { core::Tuple<(core::UMat, u8)> } #[deprecated = "Use the the non-alias form `core::Vector>` instead, removal in Nov 2024"] pub type VectorOfTupleOfi32_f64 = core::Vector>; impl core::Vector> { pub fn as_raw_VectorOfTupleOfi32_f64(&self) -> extern_send!(Self) { self.as_raw() } pub fn as_raw_mut_VectorOfTupleOfi32_f64(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } vector_extern! { core::Tuple<(i32, f64)>, std_vectorLstd_pairLint__doubleGG_new_const, std_vectorLstd_pairLint__doubleGG_delete, std_vectorLstd_pairLint__doubleGG_len_const, std_vectorLstd_pairLint__doubleGG_isEmpty_const, std_vectorLstd_pairLint__doubleGG_capacity_const, std_vectorLstd_pairLint__doubleGG_shrinkToFit, std_vectorLstd_pairLint__doubleGG_reserve_size_t, std_vectorLstd_pairLint__doubleGG_remove_size_t, std_vectorLstd_pairLint__doubleGG_swap_size_t_size_t, std_vectorLstd_pairLint__doubleGG_clear, std_vectorLstd_pairLint__doubleGG_get_const_size_t, std_vectorLstd_pairLint__doubleGG_set_size_t_const_pairLint__doubleG, std_vectorLstd_pairLint__doubleGG_push_const_pairLint__doubleG, std_vectorLstd_pairLint__doubleGG_insert_size_t_const_pairLint__doubleG, } vector_non_copy_or_bool! { core::Tuple<(i32, f64)> } #[deprecated = "Use the the non-alias form `core::Vector` instead, removal in Nov 2024"] pub type VectorOfUMat = core::Vector; impl core::Vector { pub fn as_raw_VectorOfUMat(&self) -> extern_send!(Self) { self.as_raw() } pub fn as_raw_mut_VectorOfUMat(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } vector_extern! { core::UMat, std_vectorLcv_UMatG_new_const, std_vectorLcv_UMatG_delete, std_vectorLcv_UMatG_len_const, std_vectorLcv_UMatG_isEmpty_const, std_vectorLcv_UMatG_capacity_const, std_vectorLcv_UMatG_shrinkToFit, std_vectorLcv_UMatG_reserve_size_t, std_vectorLcv_UMatG_remove_size_t, std_vectorLcv_UMatG_swap_size_t_size_t, std_vectorLcv_UMatG_clear, std_vectorLcv_UMatG_get_const_size_t, std_vectorLcv_UMatG_set_size_t_const_UMat, std_vectorLcv_UMatG_push_const_UMat, std_vectorLcv_UMatG_insert_size_t_const_UMat, } vector_non_copy_or_bool! { clone core::UMat } vector_boxed_ref! { core::UMat } vector_extern! { BoxedRef<'t, core::UMat>, std_vectorLcv_UMatG_new_const, std_vectorLcv_UMatG_delete, std_vectorLcv_UMatG_len_const, std_vectorLcv_UMatG_isEmpty_const, std_vectorLcv_UMatG_capacity_const, std_vectorLcv_UMatG_shrinkToFit, std_vectorLcv_UMatG_reserve_size_t, std_vectorLcv_UMatG_remove_size_t, std_vectorLcv_UMatG_swap_size_t_size_t, std_vectorLcv_UMatG_clear, std_vectorLcv_UMatG_get_const_size_t, std_vectorLcv_UMatG_set_size_t_const_UMat, std_vectorLcv_UMatG_push_const_UMat, std_vectorLcv_UMatG_insert_size_t_const_UMat, } #[deprecated = "Use the the non-alias form `core::Vector` instead, removal in Nov 2024"] pub type VectorOfVec2d = core::Vector; impl core::Vector { pub fn as_raw_VectorOfVec2d(&self) -> extern_send!(Self) { self.as_raw() } pub fn as_raw_mut_VectorOfVec2d(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } vector_extern! { core::Vec2d, std_vectorLcv_Vec2dG_new_const, std_vectorLcv_Vec2dG_delete, std_vectorLcv_Vec2dG_len_const, std_vectorLcv_Vec2dG_isEmpty_const, std_vectorLcv_Vec2dG_capacity_const, std_vectorLcv_Vec2dG_shrinkToFit, std_vectorLcv_Vec2dG_reserve_size_t, std_vectorLcv_Vec2dG_remove_size_t, std_vectorLcv_Vec2dG_swap_size_t_size_t, std_vectorLcv_Vec2dG_clear, std_vectorLcv_Vec2dG_get_const_size_t, std_vectorLcv_Vec2dG_set_size_t_const_Vec2d, std_vectorLcv_Vec2dG_push_const_Vec2d, std_vectorLcv_Vec2dG_insert_size_t_const_Vec2d, } vector_copy_non_bool! { core::Vec2d, std_vectorLcv_Vec2dG_data_const, std_vectorLcv_Vec2dG_dataMut, cv_fromSlice_const_const_Vec2dX_size_t, std_vectorLcv_Vec2dG_clone_const, } impl ToInputArray for core::Vector { #[inline] fn input_array(&self) -> Result> { return_send!(via ocvrs_return); unsafe { sys::std_vectorLcv_Vec2dG_inputArray_const(self.as_raw_VectorOfVec2d(), ocvrs_return.as_mut_ptr()) }; return_receive!(unsafe ocvrs_return => ret); let ret = ret.into_result()?; let ret = unsafe { BoxedRef::::opencv_from_extern(ret) }; Ok(ret) } } input_array_ref_forward! { core::Vector } impl ToOutputArray for core::Vector { #[inline] fn output_array(&mut self) -> Result> { return_send!(via ocvrs_return); unsafe { sys::std_vectorLcv_Vec2dG_outputArray(self.as_raw_mut_VectorOfVec2d(), ocvrs_return.as_mut_ptr()) }; return_receive!(unsafe ocvrs_return => ret); let ret = ret.into_result()?; let ret = unsafe { BoxedRefMut::::opencv_from_extern(ret) }; Ok(ret) } } impl ToInputOutputArray for core::Vector { #[inline] fn input_output_array(&mut self) -> Result> { return_send!(via ocvrs_return); unsafe { sys::std_vectorLcv_Vec2dG_inputOutputArray(self.as_raw_mut_VectorOfVec2d(), ocvrs_return.as_mut_ptr()) }; return_receive!(unsafe ocvrs_return => ret); let ret = ret.into_result()?; let ret = unsafe { BoxedRefMut::::opencv_from_extern(ret) }; Ok(ret) } } output_array_ref_forward! { core::Vector } #[deprecated = "Use the the non-alias form `core::Vector` instead, removal in Nov 2024"] pub type VectorOfVec2f = core::Vector; impl core::Vector { pub fn as_raw_VectorOfVec2f(&self) -> extern_send!(Self) { self.as_raw() } pub fn as_raw_mut_VectorOfVec2f(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } vector_extern! { core::Vec2f, std_vectorLcv_Vec2fG_new_const, std_vectorLcv_Vec2fG_delete, std_vectorLcv_Vec2fG_len_const, std_vectorLcv_Vec2fG_isEmpty_const, std_vectorLcv_Vec2fG_capacity_const, std_vectorLcv_Vec2fG_shrinkToFit, std_vectorLcv_Vec2fG_reserve_size_t, std_vectorLcv_Vec2fG_remove_size_t, std_vectorLcv_Vec2fG_swap_size_t_size_t, std_vectorLcv_Vec2fG_clear, std_vectorLcv_Vec2fG_get_const_size_t, std_vectorLcv_Vec2fG_set_size_t_const_Vec2f, std_vectorLcv_Vec2fG_push_const_Vec2f, std_vectorLcv_Vec2fG_insert_size_t_const_Vec2f, } vector_copy_non_bool! { core::Vec2f, std_vectorLcv_Vec2fG_data_const, std_vectorLcv_Vec2fG_dataMut, cv_fromSlice_const_const_Vec2fX_size_t, std_vectorLcv_Vec2fG_clone_const, } impl ToInputArray for core::Vector { #[inline] fn input_array(&self) -> Result> { return_send!(via ocvrs_return); unsafe { sys::std_vectorLcv_Vec2fG_inputArray_const(self.as_raw_VectorOfVec2f(), ocvrs_return.as_mut_ptr()) }; return_receive!(unsafe ocvrs_return => ret); let ret = ret.into_result()?; let ret = unsafe { BoxedRef::::opencv_from_extern(ret) }; Ok(ret) } } input_array_ref_forward! { core::Vector } impl ToOutputArray for core::Vector { #[inline] fn output_array(&mut self) -> Result> { return_send!(via ocvrs_return); unsafe { sys::std_vectorLcv_Vec2fG_outputArray(self.as_raw_mut_VectorOfVec2f(), ocvrs_return.as_mut_ptr()) }; return_receive!(unsafe ocvrs_return => ret); let ret = ret.into_result()?; let ret = unsafe { BoxedRefMut::::opencv_from_extern(ret) }; Ok(ret) } } impl ToInputOutputArray for core::Vector { #[inline] fn input_output_array(&mut self) -> Result> { return_send!(via ocvrs_return); unsafe { sys::std_vectorLcv_Vec2fG_inputOutputArray(self.as_raw_mut_VectorOfVec2f(), ocvrs_return.as_mut_ptr()) }; return_receive!(unsafe ocvrs_return => ret); let ret = ret.into_result()?; let ret = unsafe { BoxedRefMut::::opencv_from_extern(ret) }; Ok(ret) } } output_array_ref_forward! { core::Vector } #[deprecated = "Use the the non-alias form `core::Vector` instead, removal in Nov 2024"] pub type VectorOfVec2i = core::Vector; impl core::Vector { pub fn as_raw_VectorOfVec2i(&self) -> extern_send!(Self) { self.as_raw() } pub fn as_raw_mut_VectorOfVec2i(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } vector_extern! { core::Vec2i, std_vectorLcv_Vec2iG_new_const, std_vectorLcv_Vec2iG_delete, std_vectorLcv_Vec2iG_len_const, std_vectorLcv_Vec2iG_isEmpty_const, std_vectorLcv_Vec2iG_capacity_const, std_vectorLcv_Vec2iG_shrinkToFit, std_vectorLcv_Vec2iG_reserve_size_t, std_vectorLcv_Vec2iG_remove_size_t, std_vectorLcv_Vec2iG_swap_size_t_size_t, std_vectorLcv_Vec2iG_clear, std_vectorLcv_Vec2iG_get_const_size_t, std_vectorLcv_Vec2iG_set_size_t_const_Vec2i, std_vectorLcv_Vec2iG_push_const_Vec2i, std_vectorLcv_Vec2iG_insert_size_t_const_Vec2i, } vector_copy_non_bool! { core::Vec2i, std_vectorLcv_Vec2iG_data_const, std_vectorLcv_Vec2iG_dataMut, cv_fromSlice_const_const_Vec2iX_size_t, std_vectorLcv_Vec2iG_clone_const, } impl ToInputArray for core::Vector { #[inline] fn input_array(&self) -> Result> { return_send!(via ocvrs_return); unsafe { sys::std_vectorLcv_Vec2iG_inputArray_const(self.as_raw_VectorOfVec2i(), ocvrs_return.as_mut_ptr()) }; return_receive!(unsafe ocvrs_return => ret); let ret = ret.into_result()?; let ret = unsafe { BoxedRef::::opencv_from_extern(ret) }; Ok(ret) } } input_array_ref_forward! { core::Vector } impl ToOutputArray for core::Vector { #[inline] fn output_array(&mut self) -> Result> { return_send!(via ocvrs_return); unsafe { sys::std_vectorLcv_Vec2iG_outputArray(self.as_raw_mut_VectorOfVec2i(), ocvrs_return.as_mut_ptr()) }; return_receive!(unsafe ocvrs_return => ret); let ret = ret.into_result()?; let ret = unsafe { BoxedRefMut::::opencv_from_extern(ret) }; Ok(ret) } } impl ToInputOutputArray for core::Vector { #[inline] fn input_output_array(&mut self) -> Result> { return_send!(via ocvrs_return); unsafe { sys::std_vectorLcv_Vec2iG_inputOutputArray(self.as_raw_mut_VectorOfVec2i(), ocvrs_return.as_mut_ptr()) }; return_receive!(unsafe ocvrs_return => ret); let ret = ret.into_result()?; let ret = unsafe { BoxedRefMut::::opencv_from_extern(ret) }; Ok(ret) } } output_array_ref_forward! { core::Vector } #[deprecated = "Use the the non-alias form `core::Vector` instead, removal in Nov 2024"] pub type VectorOfVec3d = core::Vector; impl core::Vector { pub fn as_raw_VectorOfVec3d(&self) -> extern_send!(Self) { self.as_raw() } pub fn as_raw_mut_VectorOfVec3d(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } vector_extern! { core::Vec3d, std_vectorLcv_Vec3dG_new_const, std_vectorLcv_Vec3dG_delete, std_vectorLcv_Vec3dG_len_const, std_vectorLcv_Vec3dG_isEmpty_const, std_vectorLcv_Vec3dG_capacity_const, std_vectorLcv_Vec3dG_shrinkToFit, std_vectorLcv_Vec3dG_reserve_size_t, std_vectorLcv_Vec3dG_remove_size_t, std_vectorLcv_Vec3dG_swap_size_t_size_t, std_vectorLcv_Vec3dG_clear, std_vectorLcv_Vec3dG_get_const_size_t, std_vectorLcv_Vec3dG_set_size_t_const_Vec3d, std_vectorLcv_Vec3dG_push_const_Vec3d, std_vectorLcv_Vec3dG_insert_size_t_const_Vec3d, } vector_copy_non_bool! { core::Vec3d, std_vectorLcv_Vec3dG_data_const, std_vectorLcv_Vec3dG_dataMut, cv_fromSlice_const_const_Vec3dX_size_t, std_vectorLcv_Vec3dG_clone_const, } impl ToInputArray for core::Vector { #[inline] fn input_array(&self) -> Result> { return_send!(via ocvrs_return); unsafe { sys::std_vectorLcv_Vec3dG_inputArray_const(self.as_raw_VectorOfVec3d(), ocvrs_return.as_mut_ptr()) }; return_receive!(unsafe ocvrs_return => ret); let ret = ret.into_result()?; let ret = unsafe { BoxedRef::::opencv_from_extern(ret) }; Ok(ret) } } input_array_ref_forward! { core::Vector } impl ToOutputArray for core::Vector { #[inline] fn output_array(&mut self) -> Result> { return_send!(via ocvrs_return); unsafe { sys::std_vectorLcv_Vec3dG_outputArray(self.as_raw_mut_VectorOfVec3d(), ocvrs_return.as_mut_ptr()) }; return_receive!(unsafe ocvrs_return => ret); let ret = ret.into_result()?; let ret = unsafe { BoxedRefMut::::opencv_from_extern(ret) }; Ok(ret) } } impl ToInputOutputArray for core::Vector { #[inline] fn input_output_array(&mut self) -> Result> { return_send!(via ocvrs_return); unsafe { sys::std_vectorLcv_Vec3dG_inputOutputArray(self.as_raw_mut_VectorOfVec3d(), ocvrs_return.as_mut_ptr()) }; return_receive!(unsafe ocvrs_return => ret); let ret = ret.into_result()?; let ret = unsafe { BoxedRefMut::::opencv_from_extern(ret) }; Ok(ret) } } output_array_ref_forward! { core::Vector } #[deprecated = "Use the the non-alias form `core::Vector` instead, removal in Nov 2024"] pub type VectorOfVec3f = core::Vector; impl core::Vector { pub fn as_raw_VectorOfVec3f(&self) -> extern_send!(Self) { self.as_raw() } pub fn as_raw_mut_VectorOfVec3f(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } vector_extern! { core::Vec3f, std_vectorLcv_Vec3fG_new_const, std_vectorLcv_Vec3fG_delete, std_vectorLcv_Vec3fG_len_const, std_vectorLcv_Vec3fG_isEmpty_const, std_vectorLcv_Vec3fG_capacity_const, std_vectorLcv_Vec3fG_shrinkToFit, std_vectorLcv_Vec3fG_reserve_size_t, std_vectorLcv_Vec3fG_remove_size_t, std_vectorLcv_Vec3fG_swap_size_t_size_t, std_vectorLcv_Vec3fG_clear, std_vectorLcv_Vec3fG_get_const_size_t, std_vectorLcv_Vec3fG_set_size_t_const_Vec3f, std_vectorLcv_Vec3fG_push_const_Vec3f, std_vectorLcv_Vec3fG_insert_size_t_const_Vec3f, } vector_copy_non_bool! { core::Vec3f, std_vectorLcv_Vec3fG_data_const, std_vectorLcv_Vec3fG_dataMut, cv_fromSlice_const_const_Vec3fX_size_t, std_vectorLcv_Vec3fG_clone_const, } impl ToInputArray for core::Vector { #[inline] fn input_array(&self) -> Result> { return_send!(via ocvrs_return); unsafe { sys::std_vectorLcv_Vec3fG_inputArray_const(self.as_raw_VectorOfVec3f(), ocvrs_return.as_mut_ptr()) }; return_receive!(unsafe ocvrs_return => ret); let ret = ret.into_result()?; let ret = unsafe { BoxedRef::::opencv_from_extern(ret) }; Ok(ret) } } input_array_ref_forward! { core::Vector } impl ToOutputArray for core::Vector { #[inline] fn output_array(&mut self) -> Result> { return_send!(via ocvrs_return); unsafe { sys::std_vectorLcv_Vec3fG_outputArray(self.as_raw_mut_VectorOfVec3f(), ocvrs_return.as_mut_ptr()) }; return_receive!(unsafe ocvrs_return => ret); let ret = ret.into_result()?; let ret = unsafe { BoxedRefMut::::opencv_from_extern(ret) }; Ok(ret) } } impl ToInputOutputArray for core::Vector { #[inline] fn input_output_array(&mut self) -> Result> { return_send!(via ocvrs_return); unsafe { sys::std_vectorLcv_Vec3fG_inputOutputArray(self.as_raw_mut_VectorOfVec3f(), ocvrs_return.as_mut_ptr()) }; return_receive!(unsafe ocvrs_return => ret); let ret = ret.into_result()?; let ret = unsafe { BoxedRefMut::::opencv_from_extern(ret) }; Ok(ret) } } output_array_ref_forward! { core::Vector } #[deprecated = "Use the the non-alias form `core::Vector` instead, removal in Nov 2024"] pub type VectorOfVec3i = core::Vector; impl core::Vector { pub fn as_raw_VectorOfVec3i(&self) -> extern_send!(Self) { self.as_raw() } pub fn as_raw_mut_VectorOfVec3i(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } vector_extern! { core::Vec3i, std_vectorLcv_Vec3iG_new_const, std_vectorLcv_Vec3iG_delete, std_vectorLcv_Vec3iG_len_const, std_vectorLcv_Vec3iG_isEmpty_const, std_vectorLcv_Vec3iG_capacity_const, std_vectorLcv_Vec3iG_shrinkToFit, std_vectorLcv_Vec3iG_reserve_size_t, std_vectorLcv_Vec3iG_remove_size_t, std_vectorLcv_Vec3iG_swap_size_t_size_t, std_vectorLcv_Vec3iG_clear, std_vectorLcv_Vec3iG_get_const_size_t, std_vectorLcv_Vec3iG_set_size_t_const_Vec3i, std_vectorLcv_Vec3iG_push_const_Vec3i, std_vectorLcv_Vec3iG_insert_size_t_const_Vec3i, } vector_copy_non_bool! { core::Vec3i, std_vectorLcv_Vec3iG_data_const, std_vectorLcv_Vec3iG_dataMut, cv_fromSlice_const_const_Vec3iX_size_t, std_vectorLcv_Vec3iG_clone_const, } impl ToInputArray for core::Vector { #[inline] fn input_array(&self) -> Result> { return_send!(via ocvrs_return); unsafe { sys::std_vectorLcv_Vec3iG_inputArray_const(self.as_raw_VectorOfVec3i(), ocvrs_return.as_mut_ptr()) }; return_receive!(unsafe ocvrs_return => ret); let ret = ret.into_result()?; let ret = unsafe { BoxedRef::::opencv_from_extern(ret) }; Ok(ret) } } input_array_ref_forward! { core::Vector } impl ToOutputArray for core::Vector { #[inline] fn output_array(&mut self) -> Result> { return_send!(via ocvrs_return); unsafe { sys::std_vectorLcv_Vec3iG_outputArray(self.as_raw_mut_VectorOfVec3i(), ocvrs_return.as_mut_ptr()) }; return_receive!(unsafe ocvrs_return => ret); let ret = ret.into_result()?; let ret = unsafe { BoxedRefMut::::opencv_from_extern(ret) }; Ok(ret) } } impl ToInputOutputArray for core::Vector { #[inline] fn input_output_array(&mut self) -> Result> { return_send!(via ocvrs_return); unsafe { sys::std_vectorLcv_Vec3iG_inputOutputArray(self.as_raw_mut_VectorOfVec3i(), ocvrs_return.as_mut_ptr()) }; return_receive!(unsafe ocvrs_return => ret); let ret = ret.into_result()?; let ret = unsafe { BoxedRefMut::::opencv_from_extern(ret) }; Ok(ret) } } output_array_ref_forward! { core::Vector } #[deprecated = "Use the the non-alias form `core::Vector` instead, removal in Nov 2024"] pub type VectorOfVec4f = core::Vector; impl core::Vector { pub fn as_raw_VectorOfVec4f(&self) -> extern_send!(Self) { self.as_raw() } pub fn as_raw_mut_VectorOfVec4f(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } vector_extern! { core::Vec4f, std_vectorLcv_Vec4fG_new_const, std_vectorLcv_Vec4fG_delete, std_vectorLcv_Vec4fG_len_const, std_vectorLcv_Vec4fG_isEmpty_const, std_vectorLcv_Vec4fG_capacity_const, std_vectorLcv_Vec4fG_shrinkToFit, std_vectorLcv_Vec4fG_reserve_size_t, std_vectorLcv_Vec4fG_remove_size_t, std_vectorLcv_Vec4fG_swap_size_t_size_t, std_vectorLcv_Vec4fG_clear, std_vectorLcv_Vec4fG_get_const_size_t, std_vectorLcv_Vec4fG_set_size_t_const_Vec4f, std_vectorLcv_Vec4fG_push_const_Vec4f, std_vectorLcv_Vec4fG_insert_size_t_const_Vec4f, } vector_copy_non_bool! { core::Vec4f, std_vectorLcv_Vec4fG_data_const, std_vectorLcv_Vec4fG_dataMut, cv_fromSlice_const_const_Vec4fX_size_t, std_vectorLcv_Vec4fG_clone_const, } impl ToInputArray for core::Vector { #[inline] fn input_array(&self) -> Result> { return_send!(via ocvrs_return); unsafe { sys::std_vectorLcv_Vec4fG_inputArray_const(self.as_raw_VectorOfVec4f(), ocvrs_return.as_mut_ptr()) }; return_receive!(unsafe ocvrs_return => ret); let ret = ret.into_result()?; let ret = unsafe { BoxedRef::::opencv_from_extern(ret) }; Ok(ret) } } input_array_ref_forward! { core::Vector } impl ToOutputArray for core::Vector { #[inline] fn output_array(&mut self) -> Result> { return_send!(via ocvrs_return); unsafe { sys::std_vectorLcv_Vec4fG_outputArray(self.as_raw_mut_VectorOfVec4f(), ocvrs_return.as_mut_ptr()) }; return_receive!(unsafe ocvrs_return => ret); let ret = ret.into_result()?; let ret = unsafe { BoxedRefMut::::opencv_from_extern(ret) }; Ok(ret) } } impl ToInputOutputArray for core::Vector { #[inline] fn input_output_array(&mut self) -> Result> { return_send!(via ocvrs_return); unsafe { sys::std_vectorLcv_Vec4fG_inputOutputArray(self.as_raw_mut_VectorOfVec4f(), ocvrs_return.as_mut_ptr()) }; return_receive!(unsafe ocvrs_return => ret); let ret = ret.into_result()?; let ret = unsafe { BoxedRefMut::::opencv_from_extern(ret) }; Ok(ret) } } output_array_ref_forward! { core::Vector } #[deprecated = "Use the the non-alias form `core::Vector` instead, removal in Nov 2024"] pub type VectorOfVec4i = core::Vector; impl core::Vector { pub fn as_raw_VectorOfVec4i(&self) -> extern_send!(Self) { self.as_raw() } pub fn as_raw_mut_VectorOfVec4i(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } vector_extern! { core::Vec4i, std_vectorLcv_Vec4iG_new_const, std_vectorLcv_Vec4iG_delete, std_vectorLcv_Vec4iG_len_const, std_vectorLcv_Vec4iG_isEmpty_const, std_vectorLcv_Vec4iG_capacity_const, std_vectorLcv_Vec4iG_shrinkToFit, std_vectorLcv_Vec4iG_reserve_size_t, std_vectorLcv_Vec4iG_remove_size_t, std_vectorLcv_Vec4iG_swap_size_t_size_t, std_vectorLcv_Vec4iG_clear, std_vectorLcv_Vec4iG_get_const_size_t, std_vectorLcv_Vec4iG_set_size_t_const_Vec4i, std_vectorLcv_Vec4iG_push_const_Vec4i, std_vectorLcv_Vec4iG_insert_size_t_const_Vec4i, } vector_copy_non_bool! { core::Vec4i, std_vectorLcv_Vec4iG_data_const, std_vectorLcv_Vec4iG_dataMut, cv_fromSlice_const_const_Vec4iX_size_t, std_vectorLcv_Vec4iG_clone_const, } impl ToInputArray for core::Vector { #[inline] fn input_array(&self) -> Result> { return_send!(via ocvrs_return); unsafe { sys::std_vectorLcv_Vec4iG_inputArray_const(self.as_raw_VectorOfVec4i(), ocvrs_return.as_mut_ptr()) }; return_receive!(unsafe ocvrs_return => ret); let ret = ret.into_result()?; let ret = unsafe { BoxedRef::::opencv_from_extern(ret) }; Ok(ret) } } input_array_ref_forward! { core::Vector } impl ToOutputArray for core::Vector { #[inline] fn output_array(&mut self) -> Result> { return_send!(via ocvrs_return); unsafe { sys::std_vectorLcv_Vec4iG_outputArray(self.as_raw_mut_VectorOfVec4i(), ocvrs_return.as_mut_ptr()) }; return_receive!(unsafe ocvrs_return => ret); let ret = ret.into_result()?; let ret = unsafe { BoxedRefMut::::opencv_from_extern(ret) }; Ok(ret) } } impl ToInputOutputArray for core::Vector { #[inline] fn input_output_array(&mut self) -> Result> { return_send!(via ocvrs_return); unsafe { sys::std_vectorLcv_Vec4iG_inputOutputArray(self.as_raw_mut_VectorOfVec4i(), ocvrs_return.as_mut_ptr()) }; return_receive!(unsafe ocvrs_return => ret); let ret = ret.into_result()?; let ret = unsafe { BoxedRefMut::::opencv_from_extern(ret) }; Ok(ret) } } output_array_ref_forward! { core::Vector } #[deprecated = "Use the the non-alias form `core::Vector` instead, removal in Nov 2024"] pub type VectorOfVec6f = core::Vector; impl core::Vector { pub fn as_raw_VectorOfVec6f(&self) -> extern_send!(Self) { self.as_raw() } pub fn as_raw_mut_VectorOfVec6f(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } vector_extern! { core::Vec6f, std_vectorLcv_Vec6fG_new_const, std_vectorLcv_Vec6fG_delete, std_vectorLcv_Vec6fG_len_const, std_vectorLcv_Vec6fG_isEmpty_const, std_vectorLcv_Vec6fG_capacity_const, std_vectorLcv_Vec6fG_shrinkToFit, std_vectorLcv_Vec6fG_reserve_size_t, std_vectorLcv_Vec6fG_remove_size_t, std_vectorLcv_Vec6fG_swap_size_t_size_t, std_vectorLcv_Vec6fG_clear, std_vectorLcv_Vec6fG_get_const_size_t, std_vectorLcv_Vec6fG_set_size_t_const_Vec6f, std_vectorLcv_Vec6fG_push_const_Vec6f, std_vectorLcv_Vec6fG_insert_size_t_const_Vec6f, } vector_copy_non_bool! { core::Vec6f, std_vectorLcv_Vec6fG_data_const, std_vectorLcv_Vec6fG_dataMut, cv_fromSlice_const_const_Vec6fX_size_t, std_vectorLcv_Vec6fG_clone_const, } impl ToInputArray for core::Vector { #[inline] fn input_array(&self) -> Result> { return_send!(via ocvrs_return); unsafe { sys::std_vectorLcv_Vec6fG_inputArray_const(self.as_raw_VectorOfVec6f(), ocvrs_return.as_mut_ptr()) }; return_receive!(unsafe ocvrs_return => ret); let ret = ret.into_result()?; let ret = unsafe { BoxedRef::::opencv_from_extern(ret) }; Ok(ret) } } input_array_ref_forward! { core::Vector } impl ToOutputArray for core::Vector { #[inline] fn output_array(&mut self) -> Result> { return_send!(via ocvrs_return); unsafe { sys::std_vectorLcv_Vec6fG_outputArray(self.as_raw_mut_VectorOfVec6f(), ocvrs_return.as_mut_ptr()) }; return_receive!(unsafe ocvrs_return => ret); let ret = ret.into_result()?; let ret = unsafe { BoxedRefMut::::opencv_from_extern(ret) }; Ok(ret) } } impl ToInputOutputArray for core::Vector { #[inline] fn input_output_array(&mut self) -> Result> { return_send!(via ocvrs_return); unsafe { sys::std_vectorLcv_Vec6fG_inputOutputArray(self.as_raw_mut_VectorOfVec6f(), ocvrs_return.as_mut_ptr()) }; return_receive!(unsafe ocvrs_return => ret); let ret = ret.into_result()?; let ret = unsafe { BoxedRefMut::::opencv_from_extern(ret) }; Ok(ret) } } output_array_ref_forward! { core::Vector } #[deprecated = "Use the the non-alias form `core::Vector>` instead, removal in Nov 2024"] pub type VectorOfVectorOfDMatch = core::Vector>; impl core::Vector> { pub fn as_raw_VectorOfVectorOfDMatch(&self) -> extern_send!(Self) { self.as_raw() } pub fn as_raw_mut_VectorOfVectorOfDMatch(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } vector_extern! { core::Vector, std_vectorLstd_vectorLcv_DMatchGG_new_const, std_vectorLstd_vectorLcv_DMatchGG_delete, std_vectorLstd_vectorLcv_DMatchGG_len_const, std_vectorLstd_vectorLcv_DMatchGG_isEmpty_const, std_vectorLstd_vectorLcv_DMatchGG_capacity_const, std_vectorLstd_vectorLcv_DMatchGG_shrinkToFit, std_vectorLstd_vectorLcv_DMatchGG_reserve_size_t, std_vectorLstd_vectorLcv_DMatchGG_remove_size_t, std_vectorLstd_vectorLcv_DMatchGG_swap_size_t_size_t, std_vectorLstd_vectorLcv_DMatchGG_clear, std_vectorLstd_vectorLcv_DMatchGG_get_const_size_t, std_vectorLstd_vectorLcv_DMatchGG_set_size_t_const_vectorLDMatchG, std_vectorLstd_vectorLcv_DMatchGG_push_const_vectorLDMatchG, std_vectorLstd_vectorLcv_DMatchGG_insert_size_t_const_vectorLDMatchG, } vector_non_copy_or_bool! { clone core::Vector } #[deprecated = "Use the the non-alias form `core::Vector>` instead, removal in Nov 2024"] pub type VectorOfVectorOfKeyPoint = core::Vector>; impl core::Vector> { pub fn as_raw_VectorOfVectorOfKeyPoint(&self) -> extern_send!(Self) { self.as_raw() } pub fn as_raw_mut_VectorOfVectorOfKeyPoint(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } vector_extern! { core::Vector, std_vectorLstd_vectorLcv_KeyPointGG_new_const, std_vectorLstd_vectorLcv_KeyPointGG_delete, std_vectorLstd_vectorLcv_KeyPointGG_len_const, std_vectorLstd_vectorLcv_KeyPointGG_isEmpty_const, std_vectorLstd_vectorLcv_KeyPointGG_capacity_const, std_vectorLstd_vectorLcv_KeyPointGG_shrinkToFit, std_vectorLstd_vectorLcv_KeyPointGG_reserve_size_t, std_vectorLstd_vectorLcv_KeyPointGG_remove_size_t, std_vectorLstd_vectorLcv_KeyPointGG_swap_size_t_size_t, std_vectorLstd_vectorLcv_KeyPointGG_clear, std_vectorLstd_vectorLcv_KeyPointGG_get_const_size_t, std_vectorLstd_vectorLcv_KeyPointGG_set_size_t_const_vectorLKeyPointG, std_vectorLstd_vectorLcv_KeyPointGG_push_const_vectorLKeyPointG, std_vectorLstd_vectorLcv_KeyPointGG_insert_size_t_const_vectorLKeyPointG, } vector_non_copy_or_bool! { clone core::Vector } #[deprecated = "Use the the non-alias form `core::Vector>` instead, removal in Nov 2024"] pub type VectorOfVectorOfMat = core::Vector>; impl core::Vector> { pub fn as_raw_VectorOfVectorOfMat(&self) -> extern_send!(Self) { self.as_raw() } pub fn as_raw_mut_VectorOfVectorOfMat(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } vector_extern! { core::Vector, std_vectorLstd_vectorLcv_MatGG_new_const, std_vectorLstd_vectorLcv_MatGG_delete, std_vectorLstd_vectorLcv_MatGG_len_const, std_vectorLstd_vectorLcv_MatGG_isEmpty_const, std_vectorLstd_vectorLcv_MatGG_capacity_const, std_vectorLstd_vectorLcv_MatGG_shrinkToFit, std_vectorLstd_vectorLcv_MatGG_reserve_size_t, std_vectorLstd_vectorLcv_MatGG_remove_size_t, std_vectorLstd_vectorLcv_MatGG_swap_size_t_size_t, std_vectorLstd_vectorLcv_MatGG_clear, std_vectorLstd_vectorLcv_MatGG_get_const_size_t, std_vectorLstd_vectorLcv_MatGG_set_size_t_const_vectorLMatG, std_vectorLstd_vectorLcv_MatGG_push_const_vectorLMatG, std_vectorLstd_vectorLcv_MatGG_insert_size_t_const_vectorLMatG, } vector_non_copy_or_bool! { clone core::Vector } #[deprecated = "Use the the non-alias form `core::Vector>` instead, removal in Nov 2024"] pub type VectorOfVectorOfPoint = core::Vector>; impl core::Vector> { pub fn as_raw_VectorOfVectorOfPoint(&self) -> extern_send!(Self) { self.as_raw() } pub fn as_raw_mut_VectorOfVectorOfPoint(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } vector_extern! { core::Vector, std_vectorLstd_vectorLcv_PointGG_new_const, std_vectorLstd_vectorLcv_PointGG_delete, std_vectorLstd_vectorLcv_PointGG_len_const, std_vectorLstd_vectorLcv_PointGG_isEmpty_const, std_vectorLstd_vectorLcv_PointGG_capacity_const, std_vectorLstd_vectorLcv_PointGG_shrinkToFit, std_vectorLstd_vectorLcv_PointGG_reserve_size_t, std_vectorLstd_vectorLcv_PointGG_remove_size_t, std_vectorLstd_vectorLcv_PointGG_swap_size_t_size_t, std_vectorLstd_vectorLcv_PointGG_clear, std_vectorLstd_vectorLcv_PointGG_get_const_size_t, std_vectorLstd_vectorLcv_PointGG_set_size_t_const_vectorLPointG, std_vectorLstd_vectorLcv_PointGG_push_const_vectorLPointG, std_vectorLstd_vectorLcv_PointGG_insert_size_t_const_vectorLPointG, } vector_non_copy_or_bool! { clone core::Vector } impl ToInputArray for core::Vector> { #[inline] fn input_array(&self) -> Result> { return_send!(via ocvrs_return); unsafe { sys::std_vectorLstd_vectorLcv_PointGG_inputArray_const(self.as_raw_VectorOfVectorOfPoint(), ocvrs_return.as_mut_ptr()) }; return_receive!(unsafe ocvrs_return => ret); let ret = ret.into_result()?; let ret = unsafe { BoxedRef::::opencv_from_extern(ret) }; Ok(ret) } } input_array_ref_forward! { core::Vector> } impl ToOutputArray for core::Vector> { #[inline] fn output_array(&mut self) -> Result> { return_send!(via ocvrs_return); unsafe { sys::std_vectorLstd_vectorLcv_PointGG_outputArray(self.as_raw_mut_VectorOfVectorOfPoint(), ocvrs_return.as_mut_ptr()) }; return_receive!(unsafe ocvrs_return => ret); let ret = ret.into_result()?; let ret = unsafe { BoxedRefMut::::opencv_from_extern(ret) }; Ok(ret) } } impl ToInputOutputArray for core::Vector> { #[inline] fn input_output_array(&mut self) -> Result> { return_send!(via ocvrs_return); unsafe { sys::std_vectorLstd_vectorLcv_PointGG_inputOutputArray(self.as_raw_mut_VectorOfVectorOfPoint(), ocvrs_return.as_mut_ptr()) }; return_receive!(unsafe ocvrs_return => ret); let ret = ret.into_result()?; let ret = unsafe { BoxedRefMut::::opencv_from_extern(ret) }; Ok(ret) } } output_array_ref_forward! { core::Vector> } #[deprecated = "Use the the non-alias form `core::Vector>` instead, removal in Nov 2024"] pub type VectorOfVectorOfPoint2d = core::Vector>; impl core::Vector> { pub fn as_raw_VectorOfVectorOfPoint2d(&self) -> extern_send!(Self) { self.as_raw() } pub fn as_raw_mut_VectorOfVectorOfPoint2d(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } vector_extern! { core::Vector, std_vectorLstd_vectorLcv_Point2dGG_new_const, std_vectorLstd_vectorLcv_Point2dGG_delete, std_vectorLstd_vectorLcv_Point2dGG_len_const, std_vectorLstd_vectorLcv_Point2dGG_isEmpty_const, std_vectorLstd_vectorLcv_Point2dGG_capacity_const, std_vectorLstd_vectorLcv_Point2dGG_shrinkToFit, std_vectorLstd_vectorLcv_Point2dGG_reserve_size_t, std_vectorLstd_vectorLcv_Point2dGG_remove_size_t, std_vectorLstd_vectorLcv_Point2dGG_swap_size_t_size_t, std_vectorLstd_vectorLcv_Point2dGG_clear, std_vectorLstd_vectorLcv_Point2dGG_get_const_size_t, std_vectorLstd_vectorLcv_Point2dGG_set_size_t_const_vectorLPoint2dG, std_vectorLstd_vectorLcv_Point2dGG_push_const_vectorLPoint2dG, std_vectorLstd_vectorLcv_Point2dGG_insert_size_t_const_vectorLPoint2dG, } vector_non_copy_or_bool! { clone core::Vector } impl ToInputArray for core::Vector> { #[inline] fn input_array(&self) -> Result> { return_send!(via ocvrs_return); unsafe { sys::std_vectorLstd_vectorLcv_Point2dGG_inputArray_const(self.as_raw_VectorOfVectorOfPoint2d(), ocvrs_return.as_mut_ptr()) }; return_receive!(unsafe ocvrs_return => ret); let ret = ret.into_result()?; let ret = unsafe { BoxedRef::::opencv_from_extern(ret) }; Ok(ret) } } input_array_ref_forward! { core::Vector> } impl ToOutputArray for core::Vector> { #[inline] fn output_array(&mut self) -> Result> { return_send!(via ocvrs_return); unsafe { sys::std_vectorLstd_vectorLcv_Point2dGG_outputArray(self.as_raw_mut_VectorOfVectorOfPoint2d(), ocvrs_return.as_mut_ptr()) }; return_receive!(unsafe ocvrs_return => ret); let ret = ret.into_result()?; let ret = unsafe { BoxedRefMut::::opencv_from_extern(ret) }; Ok(ret) } } impl ToInputOutputArray for core::Vector> { #[inline] fn input_output_array(&mut self) -> Result> { return_send!(via ocvrs_return); unsafe { sys::std_vectorLstd_vectorLcv_Point2dGG_inputOutputArray(self.as_raw_mut_VectorOfVectorOfPoint2d(), ocvrs_return.as_mut_ptr()) }; return_receive!(unsafe ocvrs_return => ret); let ret = ret.into_result()?; let ret = unsafe { BoxedRefMut::::opencv_from_extern(ret) }; Ok(ret) } } output_array_ref_forward! { core::Vector> } #[deprecated = "Use the the non-alias form `core::Vector>` instead, removal in Nov 2024"] pub type VectorOfVectorOfPoint2f = core::Vector>; impl core::Vector> { pub fn as_raw_VectorOfVectorOfPoint2f(&self) -> extern_send!(Self) { self.as_raw() } pub fn as_raw_mut_VectorOfVectorOfPoint2f(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } vector_extern! { core::Vector, std_vectorLstd_vectorLcv_Point2fGG_new_const, std_vectorLstd_vectorLcv_Point2fGG_delete, std_vectorLstd_vectorLcv_Point2fGG_len_const, std_vectorLstd_vectorLcv_Point2fGG_isEmpty_const, std_vectorLstd_vectorLcv_Point2fGG_capacity_const, std_vectorLstd_vectorLcv_Point2fGG_shrinkToFit, std_vectorLstd_vectorLcv_Point2fGG_reserve_size_t, std_vectorLstd_vectorLcv_Point2fGG_remove_size_t, std_vectorLstd_vectorLcv_Point2fGG_swap_size_t_size_t, std_vectorLstd_vectorLcv_Point2fGG_clear, std_vectorLstd_vectorLcv_Point2fGG_get_const_size_t, std_vectorLstd_vectorLcv_Point2fGG_set_size_t_const_vectorLPoint2fG, std_vectorLstd_vectorLcv_Point2fGG_push_const_vectorLPoint2fG, std_vectorLstd_vectorLcv_Point2fGG_insert_size_t_const_vectorLPoint2fG, } vector_non_copy_or_bool! { clone core::Vector } impl ToInputArray for core::Vector> { #[inline] fn input_array(&self) -> Result> { return_send!(via ocvrs_return); unsafe { sys::std_vectorLstd_vectorLcv_Point2fGG_inputArray_const(self.as_raw_VectorOfVectorOfPoint2f(), ocvrs_return.as_mut_ptr()) }; return_receive!(unsafe ocvrs_return => ret); let ret = ret.into_result()?; let ret = unsafe { BoxedRef::::opencv_from_extern(ret) }; Ok(ret) } } input_array_ref_forward! { core::Vector> } impl ToOutputArray for core::Vector> { #[inline] fn output_array(&mut self) -> Result> { return_send!(via ocvrs_return); unsafe { sys::std_vectorLstd_vectorLcv_Point2fGG_outputArray(self.as_raw_mut_VectorOfVectorOfPoint2f(), ocvrs_return.as_mut_ptr()) }; return_receive!(unsafe ocvrs_return => ret); let ret = ret.into_result()?; let ret = unsafe { BoxedRefMut::::opencv_from_extern(ret) }; Ok(ret) } } impl ToInputOutputArray for core::Vector> { #[inline] fn input_output_array(&mut self) -> Result> { return_send!(via ocvrs_return); unsafe { sys::std_vectorLstd_vectorLcv_Point2fGG_inputOutputArray(self.as_raw_mut_VectorOfVectorOfPoint2f(), ocvrs_return.as_mut_ptr()) }; return_receive!(unsafe ocvrs_return => ret); let ret = ret.into_result()?; let ret = unsafe { BoxedRefMut::::opencv_from_extern(ret) }; Ok(ret) } } output_array_ref_forward! { core::Vector> } #[deprecated = "Use the the non-alias form `core::Vector>` instead, removal in Nov 2024"] pub type VectorOfVectorOfPoint3d = core::Vector>; impl core::Vector> { pub fn as_raw_VectorOfVectorOfPoint3d(&self) -> extern_send!(Self) { self.as_raw() } pub fn as_raw_mut_VectorOfVectorOfPoint3d(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } vector_extern! { core::Vector, std_vectorLstd_vectorLcv_Point3dGG_new_const, std_vectorLstd_vectorLcv_Point3dGG_delete, std_vectorLstd_vectorLcv_Point3dGG_len_const, std_vectorLstd_vectorLcv_Point3dGG_isEmpty_const, std_vectorLstd_vectorLcv_Point3dGG_capacity_const, std_vectorLstd_vectorLcv_Point3dGG_shrinkToFit, std_vectorLstd_vectorLcv_Point3dGG_reserve_size_t, std_vectorLstd_vectorLcv_Point3dGG_remove_size_t, std_vectorLstd_vectorLcv_Point3dGG_swap_size_t_size_t, std_vectorLstd_vectorLcv_Point3dGG_clear, std_vectorLstd_vectorLcv_Point3dGG_get_const_size_t, std_vectorLstd_vectorLcv_Point3dGG_set_size_t_const_vectorLPoint3dG, std_vectorLstd_vectorLcv_Point3dGG_push_const_vectorLPoint3dG, std_vectorLstd_vectorLcv_Point3dGG_insert_size_t_const_vectorLPoint3dG, } vector_non_copy_or_bool! { clone core::Vector } impl ToInputArray for core::Vector> { #[inline] fn input_array(&self) -> Result> { return_send!(via ocvrs_return); unsafe { sys::std_vectorLstd_vectorLcv_Point3dGG_inputArray_const(self.as_raw_VectorOfVectorOfPoint3d(), ocvrs_return.as_mut_ptr()) }; return_receive!(unsafe ocvrs_return => ret); let ret = ret.into_result()?; let ret = unsafe { BoxedRef::::opencv_from_extern(ret) }; Ok(ret) } } input_array_ref_forward! { core::Vector> } impl ToOutputArray for core::Vector> { #[inline] fn output_array(&mut self) -> Result> { return_send!(via ocvrs_return); unsafe { sys::std_vectorLstd_vectorLcv_Point3dGG_outputArray(self.as_raw_mut_VectorOfVectorOfPoint3d(), ocvrs_return.as_mut_ptr()) }; return_receive!(unsafe ocvrs_return => ret); let ret = ret.into_result()?; let ret = unsafe { BoxedRefMut::::opencv_from_extern(ret) }; Ok(ret) } } impl ToInputOutputArray for core::Vector> { #[inline] fn input_output_array(&mut self) -> Result> { return_send!(via ocvrs_return); unsafe { sys::std_vectorLstd_vectorLcv_Point3dGG_inputOutputArray(self.as_raw_mut_VectorOfVectorOfPoint3d(), ocvrs_return.as_mut_ptr()) }; return_receive!(unsafe ocvrs_return => ret); let ret = ret.into_result()?; let ret = unsafe { BoxedRefMut::::opencv_from_extern(ret) }; Ok(ret) } } output_array_ref_forward! { core::Vector> } #[deprecated = "Use the the non-alias form `core::Vector>` instead, removal in Nov 2024"] pub type VectorOfVectorOfPoint3f = core::Vector>; impl core::Vector> { pub fn as_raw_VectorOfVectorOfPoint3f(&self) -> extern_send!(Self) { self.as_raw() } pub fn as_raw_mut_VectorOfVectorOfPoint3f(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } vector_extern! { core::Vector, std_vectorLstd_vectorLcv_Point3fGG_new_const, std_vectorLstd_vectorLcv_Point3fGG_delete, std_vectorLstd_vectorLcv_Point3fGG_len_const, std_vectorLstd_vectorLcv_Point3fGG_isEmpty_const, std_vectorLstd_vectorLcv_Point3fGG_capacity_const, std_vectorLstd_vectorLcv_Point3fGG_shrinkToFit, std_vectorLstd_vectorLcv_Point3fGG_reserve_size_t, std_vectorLstd_vectorLcv_Point3fGG_remove_size_t, std_vectorLstd_vectorLcv_Point3fGG_swap_size_t_size_t, std_vectorLstd_vectorLcv_Point3fGG_clear, std_vectorLstd_vectorLcv_Point3fGG_get_const_size_t, std_vectorLstd_vectorLcv_Point3fGG_set_size_t_const_vectorLPoint3fG, std_vectorLstd_vectorLcv_Point3fGG_push_const_vectorLPoint3fG, std_vectorLstd_vectorLcv_Point3fGG_insert_size_t_const_vectorLPoint3fG, } vector_non_copy_or_bool! { clone core::Vector } impl ToInputArray for core::Vector> { #[inline] fn input_array(&self) -> Result> { return_send!(via ocvrs_return); unsafe { sys::std_vectorLstd_vectorLcv_Point3fGG_inputArray_const(self.as_raw_VectorOfVectorOfPoint3f(), ocvrs_return.as_mut_ptr()) }; return_receive!(unsafe ocvrs_return => ret); let ret = ret.into_result()?; let ret = unsafe { BoxedRef::::opencv_from_extern(ret) }; Ok(ret) } } input_array_ref_forward! { core::Vector> } impl ToOutputArray for core::Vector> { #[inline] fn output_array(&mut self) -> Result> { return_send!(via ocvrs_return); unsafe { sys::std_vectorLstd_vectorLcv_Point3fGG_outputArray(self.as_raw_mut_VectorOfVectorOfPoint3f(), ocvrs_return.as_mut_ptr()) }; return_receive!(unsafe ocvrs_return => ret); let ret = ret.into_result()?; let ret = unsafe { BoxedRefMut::::opencv_from_extern(ret) }; Ok(ret) } } impl ToInputOutputArray for core::Vector> { #[inline] fn input_output_array(&mut self) -> Result> { return_send!(via ocvrs_return); unsafe { sys::std_vectorLstd_vectorLcv_Point3fGG_inputOutputArray(self.as_raw_mut_VectorOfVectorOfPoint3f(), ocvrs_return.as_mut_ptr()) }; return_receive!(unsafe ocvrs_return => ret); let ret = ret.into_result()?; let ret = unsafe { BoxedRefMut::::opencv_from_extern(ret) }; Ok(ret) } } output_array_ref_forward! { core::Vector> } #[deprecated = "Use the the non-alias form `core::Vector>` instead, removal in Nov 2024"] pub type VectorOfVectorOfPoint3i = core::Vector>; impl core::Vector> { pub fn as_raw_VectorOfVectorOfPoint3i(&self) -> extern_send!(Self) { self.as_raw() } pub fn as_raw_mut_VectorOfVectorOfPoint3i(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } vector_extern! { core::Vector, std_vectorLstd_vectorLcv_Point3iGG_new_const, std_vectorLstd_vectorLcv_Point3iGG_delete, std_vectorLstd_vectorLcv_Point3iGG_len_const, std_vectorLstd_vectorLcv_Point3iGG_isEmpty_const, std_vectorLstd_vectorLcv_Point3iGG_capacity_const, std_vectorLstd_vectorLcv_Point3iGG_shrinkToFit, std_vectorLstd_vectorLcv_Point3iGG_reserve_size_t, std_vectorLstd_vectorLcv_Point3iGG_remove_size_t, std_vectorLstd_vectorLcv_Point3iGG_swap_size_t_size_t, std_vectorLstd_vectorLcv_Point3iGG_clear, std_vectorLstd_vectorLcv_Point3iGG_get_const_size_t, std_vectorLstd_vectorLcv_Point3iGG_set_size_t_const_vectorLPoint3iG, std_vectorLstd_vectorLcv_Point3iGG_push_const_vectorLPoint3iG, std_vectorLstd_vectorLcv_Point3iGG_insert_size_t_const_vectorLPoint3iG, } vector_non_copy_or_bool! { clone core::Vector } impl ToInputArray for core::Vector> { #[inline] fn input_array(&self) -> Result> { return_send!(via ocvrs_return); unsafe { sys::std_vectorLstd_vectorLcv_Point3iGG_inputArray_const(self.as_raw_VectorOfVectorOfPoint3i(), ocvrs_return.as_mut_ptr()) }; return_receive!(unsafe ocvrs_return => ret); let ret = ret.into_result()?; let ret = unsafe { BoxedRef::::opencv_from_extern(ret) }; Ok(ret) } } input_array_ref_forward! { core::Vector> } impl ToOutputArray for core::Vector> { #[inline] fn output_array(&mut self) -> Result> { return_send!(via ocvrs_return); unsafe { sys::std_vectorLstd_vectorLcv_Point3iGG_outputArray(self.as_raw_mut_VectorOfVectorOfPoint3i(), ocvrs_return.as_mut_ptr()) }; return_receive!(unsafe ocvrs_return => ret); let ret = ret.into_result()?; let ret = unsafe { BoxedRefMut::::opencv_from_extern(ret) }; Ok(ret) } } impl ToInputOutputArray for core::Vector> { #[inline] fn input_output_array(&mut self) -> Result> { return_send!(via ocvrs_return); unsafe { sys::std_vectorLstd_vectorLcv_Point3iGG_inputOutputArray(self.as_raw_mut_VectorOfVectorOfPoint3i(), ocvrs_return.as_mut_ptr()) }; return_receive!(unsafe ocvrs_return => ret); let ret = ret.into_result()?; let ret = unsafe { BoxedRefMut::::opencv_from_extern(ret) }; Ok(ret) } } output_array_ref_forward! { core::Vector> } #[deprecated = "Use the the non-alias form `core::Vector>` instead, removal in Nov 2024"] pub type VectorOfVectorOfRange = core::Vector>; impl core::Vector> { pub fn as_raw_VectorOfVectorOfRange(&self) -> extern_send!(Self) { self.as_raw() } pub fn as_raw_mut_VectorOfVectorOfRange(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } vector_extern! { core::Vector, std_vectorLstd_vectorLcv_RangeGG_new_const, std_vectorLstd_vectorLcv_RangeGG_delete, std_vectorLstd_vectorLcv_RangeGG_len_const, std_vectorLstd_vectorLcv_RangeGG_isEmpty_const, std_vectorLstd_vectorLcv_RangeGG_capacity_const, std_vectorLstd_vectorLcv_RangeGG_shrinkToFit, std_vectorLstd_vectorLcv_RangeGG_reserve_size_t, std_vectorLstd_vectorLcv_RangeGG_remove_size_t, std_vectorLstd_vectorLcv_RangeGG_swap_size_t_size_t, std_vectorLstd_vectorLcv_RangeGG_clear, std_vectorLstd_vectorLcv_RangeGG_get_const_size_t, std_vectorLstd_vectorLcv_RangeGG_set_size_t_const_vectorLRangeG, std_vectorLstd_vectorLcv_RangeGG_push_const_vectorLRangeG, std_vectorLstd_vectorLcv_RangeGG_insert_size_t_const_vectorLRangeG, } vector_non_copy_or_bool! { core::Vector } #[deprecated = "Use the the non-alias form `core::Vector>` instead, removal in Nov 2024"] pub type VectorOfVectorOfVec2d = core::Vector>; impl core::Vector> { pub fn as_raw_VectorOfVectorOfVec2d(&self) -> extern_send!(Self) { self.as_raw() } pub fn as_raw_mut_VectorOfVectorOfVec2d(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } vector_extern! { core::Vector, std_vectorLstd_vectorLcv_Vec2dGG_new_const, std_vectorLstd_vectorLcv_Vec2dGG_delete, std_vectorLstd_vectorLcv_Vec2dGG_len_const, std_vectorLstd_vectorLcv_Vec2dGG_isEmpty_const, std_vectorLstd_vectorLcv_Vec2dGG_capacity_const, std_vectorLstd_vectorLcv_Vec2dGG_shrinkToFit, std_vectorLstd_vectorLcv_Vec2dGG_reserve_size_t, std_vectorLstd_vectorLcv_Vec2dGG_remove_size_t, std_vectorLstd_vectorLcv_Vec2dGG_swap_size_t_size_t, std_vectorLstd_vectorLcv_Vec2dGG_clear, std_vectorLstd_vectorLcv_Vec2dGG_get_const_size_t, std_vectorLstd_vectorLcv_Vec2dGG_set_size_t_const_vectorLVec2dG, std_vectorLstd_vectorLcv_Vec2dGG_push_const_vectorLVec2dG, std_vectorLstd_vectorLcv_Vec2dGG_insert_size_t_const_vectorLVec2dG, } vector_non_copy_or_bool! { clone core::Vector } impl ToInputArray for core::Vector> { #[inline] fn input_array(&self) -> Result> { return_send!(via ocvrs_return); unsafe { sys::std_vectorLstd_vectorLcv_Vec2dGG_inputArray_const(self.as_raw_VectorOfVectorOfVec2d(), ocvrs_return.as_mut_ptr()) }; return_receive!(unsafe ocvrs_return => ret); let ret = ret.into_result()?; let ret = unsafe { BoxedRef::::opencv_from_extern(ret) }; Ok(ret) } } input_array_ref_forward! { core::Vector> } impl ToOutputArray for core::Vector> { #[inline] fn output_array(&mut self) -> Result> { return_send!(via ocvrs_return); unsafe { sys::std_vectorLstd_vectorLcv_Vec2dGG_outputArray(self.as_raw_mut_VectorOfVectorOfVec2d(), ocvrs_return.as_mut_ptr()) }; return_receive!(unsafe ocvrs_return => ret); let ret = ret.into_result()?; let ret = unsafe { BoxedRefMut::::opencv_from_extern(ret) }; Ok(ret) } } impl ToInputOutputArray for core::Vector> { #[inline] fn input_output_array(&mut self) -> Result> { return_send!(via ocvrs_return); unsafe { sys::std_vectorLstd_vectorLcv_Vec2dGG_inputOutputArray(self.as_raw_mut_VectorOfVectorOfVec2d(), ocvrs_return.as_mut_ptr()) }; return_receive!(unsafe ocvrs_return => ret); let ret = ret.into_result()?; let ret = unsafe { BoxedRefMut::::opencv_from_extern(ret) }; Ok(ret) } } output_array_ref_forward! { core::Vector> } #[deprecated = "Use the the non-alias form `core::Vector>` instead, removal in Nov 2024"] pub type VectorOfVectorOfVec2f = core::Vector>; impl core::Vector> { pub fn as_raw_VectorOfVectorOfVec2f(&self) -> extern_send!(Self) { self.as_raw() } pub fn as_raw_mut_VectorOfVectorOfVec2f(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } vector_extern! { core::Vector, std_vectorLstd_vectorLcv_Vec2fGG_new_const, std_vectorLstd_vectorLcv_Vec2fGG_delete, std_vectorLstd_vectorLcv_Vec2fGG_len_const, std_vectorLstd_vectorLcv_Vec2fGG_isEmpty_const, std_vectorLstd_vectorLcv_Vec2fGG_capacity_const, std_vectorLstd_vectorLcv_Vec2fGG_shrinkToFit, std_vectorLstd_vectorLcv_Vec2fGG_reserve_size_t, std_vectorLstd_vectorLcv_Vec2fGG_remove_size_t, std_vectorLstd_vectorLcv_Vec2fGG_swap_size_t_size_t, std_vectorLstd_vectorLcv_Vec2fGG_clear, std_vectorLstd_vectorLcv_Vec2fGG_get_const_size_t, std_vectorLstd_vectorLcv_Vec2fGG_set_size_t_const_vectorLVec2fG, std_vectorLstd_vectorLcv_Vec2fGG_push_const_vectorLVec2fG, std_vectorLstd_vectorLcv_Vec2fGG_insert_size_t_const_vectorLVec2fG, } vector_non_copy_or_bool! { clone core::Vector } impl ToInputArray for core::Vector> { #[inline] fn input_array(&self) -> Result> { return_send!(via ocvrs_return); unsafe { sys::std_vectorLstd_vectorLcv_Vec2fGG_inputArray_const(self.as_raw_VectorOfVectorOfVec2f(), ocvrs_return.as_mut_ptr()) }; return_receive!(unsafe ocvrs_return => ret); let ret = ret.into_result()?; let ret = unsafe { BoxedRef::::opencv_from_extern(ret) }; Ok(ret) } } input_array_ref_forward! { core::Vector> } impl ToOutputArray for core::Vector> { #[inline] fn output_array(&mut self) -> Result> { return_send!(via ocvrs_return); unsafe { sys::std_vectorLstd_vectorLcv_Vec2fGG_outputArray(self.as_raw_mut_VectorOfVectorOfVec2f(), ocvrs_return.as_mut_ptr()) }; return_receive!(unsafe ocvrs_return => ret); let ret = ret.into_result()?; let ret = unsafe { BoxedRefMut::::opencv_from_extern(ret) }; Ok(ret) } } impl ToInputOutputArray for core::Vector> { #[inline] fn input_output_array(&mut self) -> Result> { return_send!(via ocvrs_return); unsafe { sys::std_vectorLstd_vectorLcv_Vec2fGG_inputOutputArray(self.as_raw_mut_VectorOfVectorOfVec2f(), ocvrs_return.as_mut_ptr()) }; return_receive!(unsafe ocvrs_return => ret); let ret = ret.into_result()?; let ret = unsafe { BoxedRefMut::::opencv_from_extern(ret) }; Ok(ret) } } output_array_ref_forward! { core::Vector> } #[deprecated = "Use the the non-alias form `core::Vector>` instead, removal in Nov 2024"] pub type VectorOfVectorOfVec2i = core::Vector>; impl core::Vector> { pub fn as_raw_VectorOfVectorOfVec2i(&self) -> extern_send!(Self) { self.as_raw() } pub fn as_raw_mut_VectorOfVectorOfVec2i(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } vector_extern! { core::Vector, std_vectorLstd_vectorLcv_Vec2iGG_new_const, std_vectorLstd_vectorLcv_Vec2iGG_delete, std_vectorLstd_vectorLcv_Vec2iGG_len_const, std_vectorLstd_vectorLcv_Vec2iGG_isEmpty_const, std_vectorLstd_vectorLcv_Vec2iGG_capacity_const, std_vectorLstd_vectorLcv_Vec2iGG_shrinkToFit, std_vectorLstd_vectorLcv_Vec2iGG_reserve_size_t, std_vectorLstd_vectorLcv_Vec2iGG_remove_size_t, std_vectorLstd_vectorLcv_Vec2iGG_swap_size_t_size_t, std_vectorLstd_vectorLcv_Vec2iGG_clear, std_vectorLstd_vectorLcv_Vec2iGG_get_const_size_t, std_vectorLstd_vectorLcv_Vec2iGG_set_size_t_const_vectorLVec2iG, std_vectorLstd_vectorLcv_Vec2iGG_push_const_vectorLVec2iG, std_vectorLstd_vectorLcv_Vec2iGG_insert_size_t_const_vectorLVec2iG, } vector_non_copy_or_bool! { clone core::Vector } impl ToInputArray for core::Vector> { #[inline] fn input_array(&self) -> Result> { return_send!(via ocvrs_return); unsafe { sys::std_vectorLstd_vectorLcv_Vec2iGG_inputArray_const(self.as_raw_VectorOfVectorOfVec2i(), ocvrs_return.as_mut_ptr()) }; return_receive!(unsafe ocvrs_return => ret); let ret = ret.into_result()?; let ret = unsafe { BoxedRef::::opencv_from_extern(ret) }; Ok(ret) } } input_array_ref_forward! { core::Vector> } impl ToOutputArray for core::Vector> { #[inline] fn output_array(&mut self) -> Result> { return_send!(via ocvrs_return); unsafe { sys::std_vectorLstd_vectorLcv_Vec2iGG_outputArray(self.as_raw_mut_VectorOfVectorOfVec2i(), ocvrs_return.as_mut_ptr()) }; return_receive!(unsafe ocvrs_return => ret); let ret = ret.into_result()?; let ret = unsafe { BoxedRefMut::::opencv_from_extern(ret) }; Ok(ret) } } impl ToInputOutputArray for core::Vector> { #[inline] fn input_output_array(&mut self) -> Result> { return_send!(via ocvrs_return); unsafe { sys::std_vectorLstd_vectorLcv_Vec2iGG_inputOutputArray(self.as_raw_mut_VectorOfVectorOfVec2i(), ocvrs_return.as_mut_ptr()) }; return_receive!(unsafe ocvrs_return => ret); let ret = ret.into_result()?; let ret = unsafe { BoxedRefMut::::opencv_from_extern(ret) }; Ok(ret) } } output_array_ref_forward! { core::Vector> } #[deprecated = "Use the the non-alias form `core::Vector>` instead, removal in Nov 2024"] pub type VectorOfVectorOfVec3d = core::Vector>; impl core::Vector> { pub fn as_raw_VectorOfVectorOfVec3d(&self) -> extern_send!(Self) { self.as_raw() } pub fn as_raw_mut_VectorOfVectorOfVec3d(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } vector_extern! { core::Vector, std_vectorLstd_vectorLcv_Vec3dGG_new_const, std_vectorLstd_vectorLcv_Vec3dGG_delete, std_vectorLstd_vectorLcv_Vec3dGG_len_const, std_vectorLstd_vectorLcv_Vec3dGG_isEmpty_const, std_vectorLstd_vectorLcv_Vec3dGG_capacity_const, std_vectorLstd_vectorLcv_Vec3dGG_shrinkToFit, std_vectorLstd_vectorLcv_Vec3dGG_reserve_size_t, std_vectorLstd_vectorLcv_Vec3dGG_remove_size_t, std_vectorLstd_vectorLcv_Vec3dGG_swap_size_t_size_t, std_vectorLstd_vectorLcv_Vec3dGG_clear, std_vectorLstd_vectorLcv_Vec3dGG_get_const_size_t, std_vectorLstd_vectorLcv_Vec3dGG_set_size_t_const_vectorLVec3dG, std_vectorLstd_vectorLcv_Vec3dGG_push_const_vectorLVec3dG, std_vectorLstd_vectorLcv_Vec3dGG_insert_size_t_const_vectorLVec3dG, } vector_non_copy_or_bool! { clone core::Vector } impl ToInputArray for core::Vector> { #[inline] fn input_array(&self) -> Result> { return_send!(via ocvrs_return); unsafe { sys::std_vectorLstd_vectorLcv_Vec3dGG_inputArray_const(self.as_raw_VectorOfVectorOfVec3d(), ocvrs_return.as_mut_ptr()) }; return_receive!(unsafe ocvrs_return => ret); let ret = ret.into_result()?; let ret = unsafe { BoxedRef::::opencv_from_extern(ret) }; Ok(ret) } } input_array_ref_forward! { core::Vector> } impl ToOutputArray for core::Vector> { #[inline] fn output_array(&mut self) -> Result> { return_send!(via ocvrs_return); unsafe { sys::std_vectorLstd_vectorLcv_Vec3dGG_outputArray(self.as_raw_mut_VectorOfVectorOfVec3d(), ocvrs_return.as_mut_ptr()) }; return_receive!(unsafe ocvrs_return => ret); let ret = ret.into_result()?; let ret = unsafe { BoxedRefMut::::opencv_from_extern(ret) }; Ok(ret) } } impl ToInputOutputArray for core::Vector> { #[inline] fn input_output_array(&mut self) -> Result> { return_send!(via ocvrs_return); unsafe { sys::std_vectorLstd_vectorLcv_Vec3dGG_inputOutputArray(self.as_raw_mut_VectorOfVectorOfVec3d(), ocvrs_return.as_mut_ptr()) }; return_receive!(unsafe ocvrs_return => ret); let ret = ret.into_result()?; let ret = unsafe { BoxedRefMut::::opencv_from_extern(ret) }; Ok(ret) } } output_array_ref_forward! { core::Vector> } #[deprecated = "Use the the non-alias form `core::Vector>` instead, removal in Nov 2024"] pub type VectorOfVectorOfVec3f = core::Vector>; impl core::Vector> { pub fn as_raw_VectorOfVectorOfVec3f(&self) -> extern_send!(Self) { self.as_raw() } pub fn as_raw_mut_VectorOfVectorOfVec3f(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } vector_extern! { core::Vector, std_vectorLstd_vectorLcv_Vec3fGG_new_const, std_vectorLstd_vectorLcv_Vec3fGG_delete, std_vectorLstd_vectorLcv_Vec3fGG_len_const, std_vectorLstd_vectorLcv_Vec3fGG_isEmpty_const, std_vectorLstd_vectorLcv_Vec3fGG_capacity_const, std_vectorLstd_vectorLcv_Vec3fGG_shrinkToFit, std_vectorLstd_vectorLcv_Vec3fGG_reserve_size_t, std_vectorLstd_vectorLcv_Vec3fGG_remove_size_t, std_vectorLstd_vectorLcv_Vec3fGG_swap_size_t_size_t, std_vectorLstd_vectorLcv_Vec3fGG_clear, std_vectorLstd_vectorLcv_Vec3fGG_get_const_size_t, std_vectorLstd_vectorLcv_Vec3fGG_set_size_t_const_vectorLVec3fG, std_vectorLstd_vectorLcv_Vec3fGG_push_const_vectorLVec3fG, std_vectorLstd_vectorLcv_Vec3fGG_insert_size_t_const_vectorLVec3fG, } vector_non_copy_or_bool! { clone core::Vector } impl ToInputArray for core::Vector> { #[inline] fn input_array(&self) -> Result> { return_send!(via ocvrs_return); unsafe { sys::std_vectorLstd_vectorLcv_Vec3fGG_inputArray_const(self.as_raw_VectorOfVectorOfVec3f(), ocvrs_return.as_mut_ptr()) }; return_receive!(unsafe ocvrs_return => ret); let ret = ret.into_result()?; let ret = unsafe { BoxedRef::::opencv_from_extern(ret) }; Ok(ret) } } input_array_ref_forward! { core::Vector> } impl ToOutputArray for core::Vector> { #[inline] fn output_array(&mut self) -> Result> { return_send!(via ocvrs_return); unsafe { sys::std_vectorLstd_vectorLcv_Vec3fGG_outputArray(self.as_raw_mut_VectorOfVectorOfVec3f(), ocvrs_return.as_mut_ptr()) }; return_receive!(unsafe ocvrs_return => ret); let ret = ret.into_result()?; let ret = unsafe { BoxedRefMut::::opencv_from_extern(ret) }; Ok(ret) } } impl ToInputOutputArray for core::Vector> { #[inline] fn input_output_array(&mut self) -> Result> { return_send!(via ocvrs_return); unsafe { sys::std_vectorLstd_vectorLcv_Vec3fGG_inputOutputArray(self.as_raw_mut_VectorOfVectorOfVec3f(), ocvrs_return.as_mut_ptr()) }; return_receive!(unsafe ocvrs_return => ret); let ret = ret.into_result()?; let ret = unsafe { BoxedRefMut::::opencv_from_extern(ret) }; Ok(ret) } } output_array_ref_forward! { core::Vector> } #[deprecated = "Use the the non-alias form `core::Vector>` instead, removal in Nov 2024"] pub type VectorOfVectorOfc_char = core::Vector>; impl core::Vector> { pub fn as_raw_VectorOfVectorOfc_char(&self) -> extern_send!(Self) { self.as_raw() } pub fn as_raw_mut_VectorOfVectorOfc_char(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } #[deprecated = "Use the the non-alias form `core::Vector>` instead, removal in Nov 2024"] pub type VectorOfVectorOff32 = core::Vector>; impl core::Vector> { pub fn as_raw_VectorOfVectorOff32(&self) -> extern_send!(Self) { self.as_raw() } pub fn as_raw_mut_VectorOfVectorOff32(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } vector_extern! { core::Vector, std_vectorLstd_vectorLfloatGG_new_const, std_vectorLstd_vectorLfloatGG_delete, std_vectorLstd_vectorLfloatGG_len_const, std_vectorLstd_vectorLfloatGG_isEmpty_const, std_vectorLstd_vectorLfloatGG_capacity_const, std_vectorLstd_vectorLfloatGG_shrinkToFit, std_vectorLstd_vectorLfloatGG_reserve_size_t, std_vectorLstd_vectorLfloatGG_remove_size_t, std_vectorLstd_vectorLfloatGG_swap_size_t_size_t, std_vectorLstd_vectorLfloatGG_clear, std_vectorLstd_vectorLfloatGG_get_const_size_t, std_vectorLstd_vectorLfloatGG_set_size_t_const_vectorLfloatG, std_vectorLstd_vectorLfloatGG_push_const_vectorLfloatG, std_vectorLstd_vectorLfloatGG_insert_size_t_const_vectorLfloatG, } vector_non_copy_or_bool! { clone core::Vector } impl ToInputArray for core::Vector> { #[inline] fn input_array(&self) -> Result> { return_send!(via ocvrs_return); unsafe { sys::std_vectorLstd_vectorLfloatGG_inputArray_const(self.as_raw_VectorOfVectorOff32(), ocvrs_return.as_mut_ptr()) }; return_receive!(unsafe ocvrs_return => ret); let ret = ret.into_result()?; let ret = unsafe { BoxedRef::::opencv_from_extern(ret) }; Ok(ret) } } input_array_ref_forward! { core::Vector> } impl ToOutputArray for core::Vector> { #[inline] fn output_array(&mut self) -> Result> { return_send!(via ocvrs_return); unsafe { sys::std_vectorLstd_vectorLfloatGG_outputArray(self.as_raw_mut_VectorOfVectorOff32(), ocvrs_return.as_mut_ptr()) }; return_receive!(unsafe ocvrs_return => ret); let ret = ret.into_result()?; let ret = unsafe { BoxedRefMut::::opencv_from_extern(ret) }; Ok(ret) } } impl ToInputOutputArray for core::Vector> { #[inline] fn input_output_array(&mut self) -> Result> { return_send!(via ocvrs_return); unsafe { sys::std_vectorLstd_vectorLfloatGG_inputOutputArray(self.as_raw_mut_VectorOfVectorOff32(), ocvrs_return.as_mut_ptr()) }; return_receive!(unsafe ocvrs_return => ret); let ret = ret.into_result()?; let ret = unsafe { BoxedRefMut::::opencv_from_extern(ret) }; Ok(ret) } } output_array_ref_forward! { core::Vector> } #[deprecated = "Use the the non-alias form `core::Vector>` instead, removal in Nov 2024"] pub type VectorOfVectorOff64 = core::Vector>; impl core::Vector> { pub fn as_raw_VectorOfVectorOff64(&self) -> extern_send!(Self) { self.as_raw() } pub fn as_raw_mut_VectorOfVectorOff64(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } vector_extern! { core::Vector, std_vectorLstd_vectorLdoubleGG_new_const, std_vectorLstd_vectorLdoubleGG_delete, std_vectorLstd_vectorLdoubleGG_len_const, std_vectorLstd_vectorLdoubleGG_isEmpty_const, std_vectorLstd_vectorLdoubleGG_capacity_const, std_vectorLstd_vectorLdoubleGG_shrinkToFit, std_vectorLstd_vectorLdoubleGG_reserve_size_t, std_vectorLstd_vectorLdoubleGG_remove_size_t, std_vectorLstd_vectorLdoubleGG_swap_size_t_size_t, std_vectorLstd_vectorLdoubleGG_clear, std_vectorLstd_vectorLdoubleGG_get_const_size_t, std_vectorLstd_vectorLdoubleGG_set_size_t_const_vectorLdoubleG, std_vectorLstd_vectorLdoubleGG_push_const_vectorLdoubleG, std_vectorLstd_vectorLdoubleGG_insert_size_t_const_vectorLdoubleG, } vector_non_copy_or_bool! { clone core::Vector } impl ToInputArray for core::Vector> { #[inline] fn input_array(&self) -> Result> { return_send!(via ocvrs_return); unsafe { sys::std_vectorLstd_vectorLdoubleGG_inputArray_const(self.as_raw_VectorOfVectorOff64(), ocvrs_return.as_mut_ptr()) }; return_receive!(unsafe ocvrs_return => ret); let ret = ret.into_result()?; let ret = unsafe { BoxedRef::::opencv_from_extern(ret) }; Ok(ret) } } input_array_ref_forward! { core::Vector> } impl ToOutputArray for core::Vector> { #[inline] fn output_array(&mut self) -> Result> { return_send!(via ocvrs_return); unsafe { sys::std_vectorLstd_vectorLdoubleGG_outputArray(self.as_raw_mut_VectorOfVectorOff64(), ocvrs_return.as_mut_ptr()) }; return_receive!(unsafe ocvrs_return => ret); let ret = ret.into_result()?; let ret = unsafe { BoxedRefMut::::opencv_from_extern(ret) }; Ok(ret) } } impl ToInputOutputArray for core::Vector> { #[inline] fn input_output_array(&mut self) -> Result> { return_send!(via ocvrs_return); unsafe { sys::std_vectorLstd_vectorLdoubleGG_inputOutputArray(self.as_raw_mut_VectorOfVectorOff64(), ocvrs_return.as_mut_ptr()) }; return_receive!(unsafe ocvrs_return => ret); let ret = ret.into_result()?; let ret = unsafe { BoxedRefMut::::opencv_from_extern(ret) }; Ok(ret) } } output_array_ref_forward! { core::Vector> } #[deprecated = "Use the the non-alias form `core::Vector>` instead, removal in Nov 2024"] pub type VectorOfVectorOfi32 = core::Vector>; impl core::Vector> { pub fn as_raw_VectorOfVectorOfi32(&self) -> extern_send!(Self) { self.as_raw() } pub fn as_raw_mut_VectorOfVectorOfi32(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } vector_extern! { core::Vector, std_vectorLstd_vectorLintGG_new_const, std_vectorLstd_vectorLintGG_delete, std_vectorLstd_vectorLintGG_len_const, std_vectorLstd_vectorLintGG_isEmpty_const, std_vectorLstd_vectorLintGG_capacity_const, std_vectorLstd_vectorLintGG_shrinkToFit, std_vectorLstd_vectorLintGG_reserve_size_t, std_vectorLstd_vectorLintGG_remove_size_t, std_vectorLstd_vectorLintGG_swap_size_t_size_t, std_vectorLstd_vectorLintGG_clear, std_vectorLstd_vectorLintGG_get_const_size_t, std_vectorLstd_vectorLintGG_set_size_t_const_vectorLintG, std_vectorLstd_vectorLintGG_push_const_vectorLintG, std_vectorLstd_vectorLintGG_insert_size_t_const_vectorLintG, } vector_non_copy_or_bool! { clone core::Vector } impl ToInputArray for core::Vector> { #[inline] fn input_array(&self) -> Result> { return_send!(via ocvrs_return); unsafe { sys::std_vectorLstd_vectorLintGG_inputArray_const(self.as_raw_VectorOfVectorOfi32(), ocvrs_return.as_mut_ptr()) }; return_receive!(unsafe ocvrs_return => ret); let ret = ret.into_result()?; let ret = unsafe { BoxedRef::::opencv_from_extern(ret) }; Ok(ret) } } input_array_ref_forward! { core::Vector> } impl ToOutputArray for core::Vector> { #[inline] fn output_array(&mut self) -> Result> { return_send!(via ocvrs_return); unsafe { sys::std_vectorLstd_vectorLintGG_outputArray(self.as_raw_mut_VectorOfVectorOfi32(), ocvrs_return.as_mut_ptr()) }; return_receive!(unsafe ocvrs_return => ret); let ret = ret.into_result()?; let ret = unsafe { BoxedRefMut::::opencv_from_extern(ret) }; Ok(ret) } } impl ToInputOutputArray for core::Vector> { #[inline] fn input_output_array(&mut self) -> Result> { return_send!(via ocvrs_return); unsafe { sys::std_vectorLstd_vectorLintGG_inputOutputArray(self.as_raw_mut_VectorOfVectorOfi32(), ocvrs_return.as_mut_ptr()) }; return_receive!(unsafe ocvrs_return => ret); let ret = ret.into_result()?; let ret = unsafe { BoxedRefMut::::opencv_from_extern(ret) }; Ok(ret) } } output_array_ref_forward! { core::Vector> } #[deprecated = "Use the the non-alias form `core::Vector>` instead, removal in Nov 2024"] pub type VectorOfVectorOfi8 = core::Vector>; impl core::Vector> { pub fn as_raw_VectorOfVectorOfi8(&self) -> extern_send!(Self) { self.as_raw() } pub fn as_raw_mut_VectorOfVectorOfi8(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } vector_extern! { core::Vector, std_vectorLstd_vectorLsigned_charGG_new_const, std_vectorLstd_vectorLsigned_charGG_delete, std_vectorLstd_vectorLsigned_charGG_len_const, std_vectorLstd_vectorLsigned_charGG_isEmpty_const, std_vectorLstd_vectorLsigned_charGG_capacity_const, std_vectorLstd_vectorLsigned_charGG_shrinkToFit, std_vectorLstd_vectorLsigned_charGG_reserve_size_t, std_vectorLstd_vectorLsigned_charGG_remove_size_t, std_vectorLstd_vectorLsigned_charGG_swap_size_t_size_t, std_vectorLstd_vectorLsigned_charGG_clear, std_vectorLstd_vectorLsigned_charGG_get_const_size_t, std_vectorLstd_vectorLsigned_charGG_set_size_t_const_vectorLsigned_charG, std_vectorLstd_vectorLsigned_charGG_push_const_vectorLsigned_charG, std_vectorLstd_vectorLsigned_charGG_insert_size_t_const_vectorLsigned_charG, } vector_non_copy_or_bool! { clone core::Vector } #[deprecated = "Use the the non-alias form `core::Vector>` instead, removal in Nov 2024"] pub type VectorOfVectorOfu8 = core::Vector>; impl core::Vector> { pub fn as_raw_VectorOfVectorOfu8(&self) -> extern_send!(Self) { self.as_raw() } pub fn as_raw_mut_VectorOfVectorOfu8(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } vector_extern! { core::Vector, std_vectorLstd_vectorLuint8_tGG_new_const, std_vectorLstd_vectorLuint8_tGG_delete, std_vectorLstd_vectorLuint8_tGG_len_const, std_vectorLstd_vectorLuint8_tGG_isEmpty_const, std_vectorLstd_vectorLuint8_tGG_capacity_const, std_vectorLstd_vectorLuint8_tGG_shrinkToFit, std_vectorLstd_vectorLuint8_tGG_reserve_size_t, std_vectorLstd_vectorLuint8_tGG_remove_size_t, std_vectorLstd_vectorLuint8_tGG_swap_size_t_size_t, std_vectorLstd_vectorLuint8_tGG_clear, std_vectorLstd_vectorLuint8_tGG_get_const_size_t, std_vectorLstd_vectorLuint8_tGG_set_size_t_const_vectorLuint8_tG, std_vectorLstd_vectorLuint8_tGG_push_const_vectorLuint8_tG, std_vectorLstd_vectorLuint8_tGG_insert_size_t_const_vectorLuint8_tG, } vector_non_copy_or_bool! { clone core::Vector } impl ToInputArray for core::Vector> { #[inline] fn input_array(&self) -> Result> { return_send!(via ocvrs_return); unsafe { sys::std_vectorLstd_vectorLuint8_tGG_inputArray_const(self.as_raw_VectorOfVectorOfu8(), ocvrs_return.as_mut_ptr()) }; return_receive!(unsafe ocvrs_return => ret); let ret = ret.into_result()?; let ret = unsafe { BoxedRef::::opencv_from_extern(ret) }; Ok(ret) } } input_array_ref_forward! { core::Vector> } impl ToOutputArray for core::Vector> { #[inline] fn output_array(&mut self) -> Result> { return_send!(via ocvrs_return); unsafe { sys::std_vectorLstd_vectorLuint8_tGG_outputArray(self.as_raw_mut_VectorOfVectorOfu8(), ocvrs_return.as_mut_ptr()) }; return_receive!(unsafe ocvrs_return => ret); let ret = ret.into_result()?; let ret = unsafe { BoxedRefMut::::opencv_from_extern(ret) }; Ok(ret) } } impl ToInputOutputArray for core::Vector> { #[inline] fn input_output_array(&mut self) -> Result> { return_send!(via ocvrs_return); unsafe { sys::std_vectorLstd_vectorLuint8_tGG_inputOutputArray(self.as_raw_mut_VectorOfVectorOfu8(), ocvrs_return.as_mut_ptr()) }; return_receive!(unsafe ocvrs_return => ret); let ret = ret.into_result()?; let ret = unsafe { BoxedRefMut::::opencv_from_extern(ret) }; Ok(ret) } } output_array_ref_forward! { core::Vector> } #[deprecated = "Use the the non-alias form `core::Vector` instead, removal in Nov 2024"] pub type VectorOfbool = core::Vector; impl core::Vector { pub fn as_raw_VectorOfbool(&self) -> extern_send!(Self) { self.as_raw() } pub fn as_raw_mut_VectorOfbool(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } vector_extern! { bool, std_vectorLboolG_new_const, std_vectorLboolG_delete, std_vectorLboolG_len_const, std_vectorLboolG_isEmpty_const, std_vectorLboolG_capacity_const, std_vectorLboolG_shrinkToFit, std_vectorLboolG_reserve_size_t, std_vectorLboolG_remove_size_t, std_vectorLboolG_swap_size_t_size_t, std_vectorLboolG_clear, std_vectorLboolG_get_const_size_t, std_vectorLboolG_set_size_t_const_bool, std_vectorLboolG_push_const_bool, std_vectorLboolG_insert_size_t_const_bool, } vector_non_copy_or_bool! { clone bool } impl ToInputArray for core::Vector { #[inline] fn input_array(&self) -> Result> { return_send!(via ocvrs_return); unsafe { sys::std_vectorLboolG_inputArray_const(self.as_raw_VectorOfbool(), ocvrs_return.as_mut_ptr()) }; return_receive!(unsafe ocvrs_return => ret); let ret = ret.into_result()?; let ret = unsafe { BoxedRef::::opencv_from_extern(ret) }; Ok(ret) } } input_array_ref_forward! { core::Vector } #[deprecated = "Use the the non-alias form `core::Vector` instead, removal in Nov 2024"] pub type VectorOfc_char = core::Vector; impl core::Vector { pub fn as_raw_VectorOfc_char(&self) -> extern_send!(Self) { self.as_raw() } pub fn as_raw_mut_VectorOfc_char(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } #[deprecated = "Use the the non-alias form `core::Vector` instead, removal in Nov 2024"] pub type VectorOff32 = core::Vector; impl core::Vector { pub fn as_raw_VectorOff32(&self) -> extern_send!(Self) { self.as_raw() } pub fn as_raw_mut_VectorOff32(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } vector_extern! { f32, std_vectorLfloatG_new_const, std_vectorLfloatG_delete, std_vectorLfloatG_len_const, std_vectorLfloatG_isEmpty_const, std_vectorLfloatG_capacity_const, std_vectorLfloatG_shrinkToFit, std_vectorLfloatG_reserve_size_t, std_vectorLfloatG_remove_size_t, std_vectorLfloatG_swap_size_t_size_t, std_vectorLfloatG_clear, std_vectorLfloatG_get_const_size_t, std_vectorLfloatG_set_size_t_const_float, std_vectorLfloatG_push_const_float, std_vectorLfloatG_insert_size_t_const_float, } vector_copy_non_bool! { f32, std_vectorLfloatG_data_const, std_vectorLfloatG_dataMut, cv_fromSlice_const_const_floatX_size_t, std_vectorLfloatG_clone_const, } impl ToInputArray for core::Vector { #[inline] fn input_array(&self) -> Result> { return_send!(via ocvrs_return); unsafe { sys::std_vectorLfloatG_inputArray_const(self.as_raw_VectorOff32(), ocvrs_return.as_mut_ptr()) }; return_receive!(unsafe ocvrs_return => ret); let ret = ret.into_result()?; let ret = unsafe { BoxedRef::::opencv_from_extern(ret) }; Ok(ret) } } input_array_ref_forward! { core::Vector } impl ToOutputArray for core::Vector { #[inline] fn output_array(&mut self) -> Result> { return_send!(via ocvrs_return); unsafe { sys::std_vectorLfloatG_outputArray(self.as_raw_mut_VectorOff32(), ocvrs_return.as_mut_ptr()) }; return_receive!(unsafe ocvrs_return => ret); let ret = ret.into_result()?; let ret = unsafe { BoxedRefMut::::opencv_from_extern(ret) }; Ok(ret) } } impl ToInputOutputArray for core::Vector { #[inline] fn input_output_array(&mut self) -> Result> { return_send!(via ocvrs_return); unsafe { sys::std_vectorLfloatG_inputOutputArray(self.as_raw_mut_VectorOff32(), ocvrs_return.as_mut_ptr()) }; return_receive!(unsafe ocvrs_return => ret); let ret = ret.into_result()?; let ret = unsafe { BoxedRefMut::::opencv_from_extern(ret) }; Ok(ret) } } output_array_ref_forward! { core::Vector } #[deprecated = "Use the the non-alias form `core::Vector` instead, removal in Nov 2024"] pub type VectorOff64 = core::Vector; impl core::Vector { pub fn as_raw_VectorOff64(&self) -> extern_send!(Self) { self.as_raw() } pub fn as_raw_mut_VectorOff64(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } vector_extern! { f64, std_vectorLdoubleG_new_const, std_vectorLdoubleG_delete, std_vectorLdoubleG_len_const, std_vectorLdoubleG_isEmpty_const, std_vectorLdoubleG_capacity_const, std_vectorLdoubleG_shrinkToFit, std_vectorLdoubleG_reserve_size_t, std_vectorLdoubleG_remove_size_t, std_vectorLdoubleG_swap_size_t_size_t, std_vectorLdoubleG_clear, std_vectorLdoubleG_get_const_size_t, std_vectorLdoubleG_set_size_t_const_double, std_vectorLdoubleG_push_const_double, std_vectorLdoubleG_insert_size_t_const_double, } vector_copy_non_bool! { f64, std_vectorLdoubleG_data_const, std_vectorLdoubleG_dataMut, cv_fromSlice_const_const_doubleX_size_t, std_vectorLdoubleG_clone_const, } impl ToInputArray for core::Vector { #[inline] fn input_array(&self) -> Result> { return_send!(via ocvrs_return); unsafe { sys::std_vectorLdoubleG_inputArray_const(self.as_raw_VectorOff64(), ocvrs_return.as_mut_ptr()) }; return_receive!(unsafe ocvrs_return => ret); let ret = ret.into_result()?; let ret = unsafe { BoxedRef::::opencv_from_extern(ret) }; Ok(ret) } } input_array_ref_forward! { core::Vector } impl ToOutputArray for core::Vector { #[inline] fn output_array(&mut self) -> Result> { return_send!(via ocvrs_return); unsafe { sys::std_vectorLdoubleG_outputArray(self.as_raw_mut_VectorOff64(), ocvrs_return.as_mut_ptr()) }; return_receive!(unsafe ocvrs_return => ret); let ret = ret.into_result()?; let ret = unsafe { BoxedRefMut::::opencv_from_extern(ret) }; Ok(ret) } } impl ToInputOutputArray for core::Vector { #[inline] fn input_output_array(&mut self) -> Result> { return_send!(via ocvrs_return); unsafe { sys::std_vectorLdoubleG_inputOutputArray(self.as_raw_mut_VectorOff64(), ocvrs_return.as_mut_ptr()) }; return_receive!(unsafe ocvrs_return => ret); let ret = ret.into_result()?; let ret = unsafe { BoxedRefMut::::opencv_from_extern(ret) }; Ok(ret) } } output_array_ref_forward! { core::Vector } #[deprecated = "Use the the non-alias form `core::Vector` instead, removal in Nov 2024"] pub type VectorOfi32 = core::Vector; impl core::Vector { pub fn as_raw_VectorOfi32(&self) -> extern_send!(Self) { self.as_raw() } pub fn as_raw_mut_VectorOfi32(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } vector_extern! { i32, std_vectorLintG_new_const, std_vectorLintG_delete, std_vectorLintG_len_const, std_vectorLintG_isEmpty_const, std_vectorLintG_capacity_const, std_vectorLintG_shrinkToFit, std_vectorLintG_reserve_size_t, std_vectorLintG_remove_size_t, std_vectorLintG_swap_size_t_size_t, std_vectorLintG_clear, std_vectorLintG_get_const_size_t, std_vectorLintG_set_size_t_const_int, std_vectorLintG_push_const_int, std_vectorLintG_insert_size_t_const_int, } vector_copy_non_bool! { i32, std_vectorLintG_data_const, std_vectorLintG_dataMut, cv_fromSlice_const_const_intX_size_t, std_vectorLintG_clone_const, } impl ToInputArray for core::Vector { #[inline] fn input_array(&self) -> Result> { return_send!(via ocvrs_return); unsafe { sys::std_vectorLintG_inputArray_const(self.as_raw_VectorOfi32(), ocvrs_return.as_mut_ptr()) }; return_receive!(unsafe ocvrs_return => ret); let ret = ret.into_result()?; let ret = unsafe { BoxedRef::::opencv_from_extern(ret) }; Ok(ret) } } input_array_ref_forward! { core::Vector } impl ToOutputArray for core::Vector { #[inline] fn output_array(&mut self) -> Result> { return_send!(via ocvrs_return); unsafe { sys::std_vectorLintG_outputArray(self.as_raw_mut_VectorOfi32(), ocvrs_return.as_mut_ptr()) }; return_receive!(unsafe ocvrs_return => ret); let ret = ret.into_result()?; let ret = unsafe { BoxedRefMut::::opencv_from_extern(ret) }; Ok(ret) } } impl ToInputOutputArray for core::Vector { #[inline] fn input_output_array(&mut self) -> Result> { return_send!(via ocvrs_return); unsafe { sys::std_vectorLintG_inputOutputArray(self.as_raw_mut_VectorOfi32(), ocvrs_return.as_mut_ptr()) }; return_receive!(unsafe ocvrs_return => ret); let ret = ret.into_result()?; let ret = unsafe { BoxedRefMut::::opencv_from_extern(ret) }; Ok(ret) } } output_array_ref_forward! { core::Vector } #[deprecated = "Use the the non-alias form `core::Vector` instead, removal in Nov 2024"] pub type VectorOfi8 = core::Vector; impl core::Vector { pub fn as_raw_VectorOfi8(&self) -> extern_send!(Self) { self.as_raw() } pub fn as_raw_mut_VectorOfi8(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } vector_extern! { i8, std_vectorLsigned_charG_new_const, std_vectorLsigned_charG_delete, std_vectorLsigned_charG_len_const, std_vectorLsigned_charG_isEmpty_const, std_vectorLsigned_charG_capacity_const, std_vectorLsigned_charG_shrinkToFit, std_vectorLsigned_charG_reserve_size_t, std_vectorLsigned_charG_remove_size_t, std_vectorLsigned_charG_swap_size_t_size_t, std_vectorLsigned_charG_clear, std_vectorLsigned_charG_get_const_size_t, std_vectorLsigned_charG_set_size_t_const_signed_char, std_vectorLsigned_charG_push_const_signed_char, std_vectorLsigned_charG_insert_size_t_const_signed_char, } vector_copy_non_bool! { i8, std_vectorLsigned_charG_data_const, std_vectorLsigned_charG_dataMut, cv_fromSlice_const_const_signed_charX_size_t, std_vectorLsigned_charG_clone_const, } #[deprecated = "Use the the non-alias form `core::Vector` instead, removal in Nov 2024"] pub type VectorOfsize_t = core::Vector; impl core::Vector { pub fn as_raw_VectorOfsize_t(&self) -> extern_send!(Self) { self.as_raw() } pub fn as_raw_mut_VectorOfsize_t(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } vector_extern! { size_t, std_vectorLsize_tG_new_const, std_vectorLsize_tG_delete, std_vectorLsize_tG_len_const, std_vectorLsize_tG_isEmpty_const, std_vectorLsize_tG_capacity_const, std_vectorLsize_tG_shrinkToFit, std_vectorLsize_tG_reserve_size_t, std_vectorLsize_tG_remove_size_t, std_vectorLsize_tG_swap_size_t_size_t, std_vectorLsize_tG_clear, std_vectorLsize_tG_get_const_size_t, std_vectorLsize_tG_set_size_t_const_size_t, std_vectorLsize_tG_push_const_size_t, std_vectorLsize_tG_insert_size_t_const_size_t, } vector_copy_non_bool! { size_t, std_vectorLsize_tG_data_const, std_vectorLsize_tG_dataMut, cv_fromSlice_const_const_size_tX_size_t, std_vectorLsize_tG_clone_const, } #[deprecated = "Use the the non-alias form `core::Vector` instead, removal in Nov 2024"] pub type VectorOfu8 = core::Vector; impl core::Vector { pub fn as_raw_VectorOfu8(&self) -> extern_send!(Self) { self.as_raw() } pub fn as_raw_mut_VectorOfu8(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } vector_extern! { u8, std_vectorLuint8_tG_new_const, std_vectorLuint8_tG_delete, std_vectorLuint8_tG_len_const, std_vectorLuint8_tG_isEmpty_const, std_vectorLuint8_tG_capacity_const, std_vectorLuint8_tG_shrinkToFit, std_vectorLuint8_tG_reserve_size_t, std_vectorLuint8_tG_remove_size_t, std_vectorLuint8_tG_swap_size_t_size_t, std_vectorLuint8_tG_clear, std_vectorLuint8_tG_get_const_size_t, std_vectorLuint8_tG_set_size_t_const_uint8_t, std_vectorLuint8_tG_push_const_uint8_t, std_vectorLuint8_tG_insert_size_t_const_uint8_t, } vector_copy_non_bool! { u8, std_vectorLuint8_tG_data_const, std_vectorLuint8_tG_dataMut, cv_fromSlice_const_const_uint8_tX_size_t, std_vectorLuint8_tG_clone_const, } impl ToInputArray for core::Vector { #[inline] fn input_array(&self) -> Result> { return_send!(via ocvrs_return); unsafe { sys::std_vectorLuint8_tG_inputArray_const(self.as_raw_VectorOfu8(), ocvrs_return.as_mut_ptr()) }; return_receive!(unsafe ocvrs_return => ret); let ret = ret.into_result()?; let ret = unsafe { BoxedRef::::opencv_from_extern(ret) }; Ok(ret) } } input_array_ref_forward! { core::Vector } impl ToOutputArray for core::Vector { #[inline] fn output_array(&mut self) -> Result> { return_send!(via ocvrs_return); unsafe { sys::std_vectorLuint8_tG_outputArray(self.as_raw_mut_VectorOfu8(), ocvrs_return.as_mut_ptr()) }; return_receive!(unsafe ocvrs_return => ret); let ret = ret.into_result()?; let ret = unsafe { BoxedRefMut::::opencv_from_extern(ret) }; Ok(ret) } } impl ToInputOutputArray for core::Vector { #[inline] fn input_output_array(&mut self) -> Result> { return_send!(via ocvrs_return); unsafe { sys::std_vectorLuint8_tG_inputOutputArray(self.as_raw_mut_VectorOfu8(), ocvrs_return.as_mut_ptr()) }; return_receive!(unsafe ocvrs_return => ret); let ret = ret.into_result()?; let ret = unsafe { BoxedRefMut::::opencv_from_extern(ret) }; Ok(ret) } } output_array_ref_forward! { core::Vector } } #[cfg(ocvrs_has_module_core)] pub use core_types::*; #[cfg(ocvrs_has_module_cudaarithm)] mod cudaarithm_types { use crate::{mod_prelude::*, core, types, sys}; #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfConvolution = core::Ptr; ptr_extern! { crate::cudaarithm::Convolution, cv_PtrLcv_cuda_ConvolutionG_new_null_const, cv_PtrLcv_cuda_ConvolutionG_delete, cv_PtrLcv_cuda_ConvolutionG_getInnerPtr_const, cv_PtrLcv_cuda_ConvolutionG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfConvolution(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfConvolution(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::cudaarithm::ConvolutionTraitConst for core::Ptr { #[inline] fn as_raw_Convolution(&self) -> *const c_void { self.inner_as_raw() } } impl crate::cudaarithm::ConvolutionTrait for core::Ptr { #[inline] fn as_raw_mut_Convolution(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_cuda_ConvolutionG_to_PtrOfAlgorithm } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfConvolution") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfDFT = core::Ptr; ptr_extern! { crate::cudaarithm::DFT, cv_PtrLcv_cuda_DFTG_new_null_const, cv_PtrLcv_cuda_DFTG_delete, cv_PtrLcv_cuda_DFTG_getInnerPtr_const, cv_PtrLcv_cuda_DFTG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfDFT(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfDFT(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::cudaarithm::DFTTraitConst for core::Ptr { #[inline] fn as_raw_DFT(&self) -> *const c_void { self.inner_as_raw() } } impl crate::cudaarithm::DFTTrait for core::Ptr { #[inline] fn as_raw_mut_DFT(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_cuda_DFTG_to_PtrOfAlgorithm } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfDFT") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfLookUpTable = core::Ptr; ptr_extern! { crate::cudaarithm::LookUpTable, cv_PtrLcv_cuda_LookUpTableG_new_null_const, cv_PtrLcv_cuda_LookUpTableG_delete, cv_PtrLcv_cuda_LookUpTableG_getInnerPtr_const, cv_PtrLcv_cuda_LookUpTableG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfLookUpTable(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfLookUpTable(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::cudaarithm::LookUpTableTraitConst for core::Ptr { #[inline] fn as_raw_LookUpTable(&self) -> *const c_void { self.inner_as_raw() } } impl crate::cudaarithm::LookUpTableTrait for core::Ptr { #[inline] fn as_raw_mut_LookUpTable(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_cuda_LookUpTableG_to_PtrOfAlgorithm } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfLookUpTable") .finish() } } } #[cfg(ocvrs_has_module_cudaarithm)] pub use cudaarithm_types::*; #[cfg(ocvrs_has_module_cudabgsegm)] mod cudabgsegm_types { use crate::{mod_prelude::*, core, types, sys}; #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfCUDA_BackgroundSubtractorMOG = core::Ptr; ptr_extern! { crate::cudabgsegm::CUDA_BackgroundSubtractorMOG, cv_PtrLcv_cuda_BackgroundSubtractorMOGG_new_null_const, cv_PtrLcv_cuda_BackgroundSubtractorMOGG_delete, cv_PtrLcv_cuda_BackgroundSubtractorMOGG_getInnerPtr_const, cv_PtrLcv_cuda_BackgroundSubtractorMOGG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfCUDA_BackgroundSubtractorMOG(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfCUDA_BackgroundSubtractorMOG(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::cudabgsegm::CUDA_BackgroundSubtractorMOGTraitConst for core::Ptr { #[inline] fn as_raw_CUDA_BackgroundSubtractorMOG(&self) -> *const c_void { self.inner_as_raw() } } impl crate::cudabgsegm::CUDA_BackgroundSubtractorMOGTrait for core::Ptr { #[inline] fn as_raw_mut_CUDA_BackgroundSubtractorMOG(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_cuda_BackgroundSubtractorMOGG_to_PtrOfAlgorithm } impl crate::video::BackgroundSubtractorTraitConst for core::Ptr { #[inline] fn as_raw_BackgroundSubtractor(&self) -> *const c_void { self.inner_as_raw() } } impl crate::video::BackgroundSubtractorTrait for core::Ptr { #[inline] fn as_raw_mut_BackgroundSubtractor(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_cuda_BackgroundSubtractorMOGG_to_PtrOfBackgroundSubtractor } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfCUDA_BackgroundSubtractorMOG") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfCUDA_BackgroundSubtractorMOG2 = core::Ptr; ptr_extern! { crate::cudabgsegm::CUDA_BackgroundSubtractorMOG2, cv_PtrLcv_cuda_BackgroundSubtractorMOG2G_new_null_const, cv_PtrLcv_cuda_BackgroundSubtractorMOG2G_delete, cv_PtrLcv_cuda_BackgroundSubtractorMOG2G_getInnerPtr_const, cv_PtrLcv_cuda_BackgroundSubtractorMOG2G_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfCUDA_BackgroundSubtractorMOG2(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfCUDA_BackgroundSubtractorMOG2(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::cudabgsegm::CUDA_BackgroundSubtractorMOG2TraitConst for core::Ptr { #[inline] fn as_raw_CUDA_BackgroundSubtractorMOG2(&self) -> *const c_void { self.inner_as_raw() } } impl crate::cudabgsegm::CUDA_BackgroundSubtractorMOG2Trait for core::Ptr { #[inline] fn as_raw_mut_CUDA_BackgroundSubtractorMOG2(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_cuda_BackgroundSubtractorMOG2G_to_PtrOfAlgorithm } impl crate::video::BackgroundSubtractorTraitConst for core::Ptr { #[inline] fn as_raw_BackgroundSubtractor(&self) -> *const c_void { self.inner_as_raw() } } impl crate::video::BackgroundSubtractorTrait for core::Ptr { #[inline] fn as_raw_mut_BackgroundSubtractor(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_cuda_BackgroundSubtractorMOG2G_to_PtrOfBackgroundSubtractor } impl crate::video::BackgroundSubtractorMOG2TraitConst for core::Ptr { #[inline] fn as_raw_BackgroundSubtractorMOG2(&self) -> *const c_void { self.inner_as_raw() } } impl crate::video::BackgroundSubtractorMOG2Trait for core::Ptr { #[inline] fn as_raw_mut_BackgroundSubtractorMOG2(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_cuda_BackgroundSubtractorMOG2G_to_PtrOfBackgroundSubtractorMOG2 } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfCUDA_BackgroundSubtractorMOG2") .finish() } } } #[cfg(ocvrs_has_module_cudabgsegm)] pub use cudabgsegm_types::*; #[cfg(ocvrs_has_module_cudacodec)] mod cudacodec_types { use crate::{mod_prelude::*, core, types, sys}; #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfCUDA_EncoderCallback = core::Ptr; ptr_extern! { crate::cudacodec::CUDA_EncoderCallback, cv_PtrLcv_cudacodec_EncoderCallbackG_new_null_const, cv_PtrLcv_cudacodec_EncoderCallbackG_delete, cv_PtrLcv_cudacodec_EncoderCallbackG_getInnerPtr_const, cv_PtrLcv_cudacodec_EncoderCallbackG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfCUDA_EncoderCallback(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfCUDA_EncoderCallback(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::cudacodec::CUDA_EncoderCallbackTraitConst for core::Ptr { #[inline] fn as_raw_CUDA_EncoderCallback(&self) -> *const c_void { self.inner_as_raw() } } impl crate::cudacodec::CUDA_EncoderCallbackTrait for core::Ptr { #[inline] fn as_raw_mut_CUDA_EncoderCallback(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfCUDA_EncoderCallback") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfCUDA_RawVideoSource = core::Ptr; ptr_extern! { crate::cudacodec::CUDA_RawVideoSource, cv_PtrLcv_cudacodec_RawVideoSourceG_new_null_const, cv_PtrLcv_cudacodec_RawVideoSourceG_delete, cv_PtrLcv_cudacodec_RawVideoSourceG_getInnerPtr_const, cv_PtrLcv_cudacodec_RawVideoSourceG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfCUDA_RawVideoSource(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfCUDA_RawVideoSource(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::cudacodec::CUDA_RawVideoSourceTraitConst for core::Ptr { #[inline] fn as_raw_CUDA_RawVideoSource(&self) -> *const c_void { self.inner_as_raw() } } impl crate::cudacodec::CUDA_RawVideoSourceTrait for core::Ptr { #[inline] fn as_raw_mut_CUDA_RawVideoSource(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfCUDA_RawVideoSource") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfCUDA_VideoReader = core::Ptr; ptr_extern! { crate::cudacodec::CUDA_VideoReader, cv_PtrLcv_cudacodec_VideoReaderG_new_null_const, cv_PtrLcv_cudacodec_VideoReaderG_delete, cv_PtrLcv_cudacodec_VideoReaderG_getInnerPtr_const, cv_PtrLcv_cudacodec_VideoReaderG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfCUDA_VideoReader(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfCUDA_VideoReader(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::cudacodec::CUDA_VideoReaderTraitConst for core::Ptr { #[inline] fn as_raw_CUDA_VideoReader(&self) -> *const c_void { self.inner_as_raw() } } impl crate::cudacodec::CUDA_VideoReaderTrait for core::Ptr { #[inline] fn as_raw_mut_CUDA_VideoReader(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfCUDA_VideoReader") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfCUDA_VideoWriter = core::Ptr; ptr_extern! { crate::cudacodec::CUDA_VideoWriter, cv_PtrLcv_cudacodec_VideoWriterG_new_null_const, cv_PtrLcv_cudacodec_VideoWriterG_delete, cv_PtrLcv_cudacodec_VideoWriterG_getInnerPtr_const, cv_PtrLcv_cudacodec_VideoWriterG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfCUDA_VideoWriter(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfCUDA_VideoWriter(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::cudacodec::CUDA_VideoWriterTraitConst for core::Ptr { #[inline] fn as_raw_CUDA_VideoWriter(&self) -> *const c_void { self.inner_as_raw() } } impl crate::cudacodec::CUDA_VideoWriterTrait for core::Ptr { #[inline] fn as_raw_mut_CUDA_VideoWriter(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfCUDA_VideoWriter") .finish() } } } #[cfg(ocvrs_has_module_cudacodec)] pub use cudacodec_types::*; #[cfg(ocvrs_has_module_cudafeatures2d)] mod cudafeatures2d_types { use crate::{mod_prelude::*, core, types, sys}; #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfCUDA_DescriptorMatcher = core::Ptr; ptr_extern! { crate::cudafeatures2d::CUDA_DescriptorMatcher, cv_PtrLcv_cuda_DescriptorMatcherG_new_null_const, cv_PtrLcv_cuda_DescriptorMatcherG_delete, cv_PtrLcv_cuda_DescriptorMatcherG_getInnerPtr_const, cv_PtrLcv_cuda_DescriptorMatcherG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfCUDA_DescriptorMatcher(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfCUDA_DescriptorMatcher(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::cudafeatures2d::CUDA_DescriptorMatcherTraitConst for core::Ptr { #[inline] fn as_raw_CUDA_DescriptorMatcher(&self) -> *const c_void { self.inner_as_raw() } } impl crate::cudafeatures2d::CUDA_DescriptorMatcherTrait for core::Ptr { #[inline] fn as_raw_mut_CUDA_DescriptorMatcher(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_cuda_DescriptorMatcherG_to_PtrOfAlgorithm } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfCUDA_DescriptorMatcher") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfCUDA_FastFeatureDetector = core::Ptr; ptr_extern! { crate::cudafeatures2d::CUDA_FastFeatureDetector, cv_PtrLcv_cuda_FastFeatureDetectorG_new_null_const, cv_PtrLcv_cuda_FastFeatureDetectorG_delete, cv_PtrLcv_cuda_FastFeatureDetectorG_getInnerPtr_const, cv_PtrLcv_cuda_FastFeatureDetectorG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfCUDA_FastFeatureDetector(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfCUDA_FastFeatureDetector(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::cudafeatures2d::CUDA_FastFeatureDetectorTraitConst for core::Ptr { #[inline] fn as_raw_CUDA_FastFeatureDetector(&self) -> *const c_void { self.inner_as_raw() } } impl crate::cudafeatures2d::CUDA_FastFeatureDetectorTrait for core::Ptr { #[inline] fn as_raw_mut_CUDA_FastFeatureDetector(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_cuda_FastFeatureDetectorG_to_PtrOfAlgorithm } impl crate::features2d::Feature2DTraitConst for core::Ptr { #[inline] fn as_raw_Feature2D(&self) -> *const c_void { self.inner_as_raw() } } impl crate::features2d::Feature2DTrait for core::Ptr { #[inline] fn as_raw_mut_Feature2D(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_cuda_FastFeatureDetectorG_to_PtrOfFeature2D } impl crate::cudafeatures2d::CUDA_Feature2DAsyncTraitConst for core::Ptr { #[inline] fn as_raw_CUDA_Feature2DAsync(&self) -> *const c_void { self.inner_as_raw() } } impl crate::cudafeatures2d::CUDA_Feature2DAsyncTrait for core::Ptr { #[inline] fn as_raw_mut_CUDA_Feature2DAsync(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_cuda_FastFeatureDetectorG_to_PtrOfCUDA_Feature2DAsync } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfCUDA_FastFeatureDetector") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfCUDA_Feature2DAsync = core::Ptr; ptr_extern! { crate::cudafeatures2d::CUDA_Feature2DAsync, cv_PtrLcv_cuda_Feature2DAsyncG_new_null_const, cv_PtrLcv_cuda_Feature2DAsyncG_delete, cv_PtrLcv_cuda_Feature2DAsyncG_getInnerPtr_const, cv_PtrLcv_cuda_Feature2DAsyncG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfCUDA_Feature2DAsync(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfCUDA_Feature2DAsync(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::cudafeatures2d::CUDA_Feature2DAsyncTraitConst for core::Ptr { #[inline] fn as_raw_CUDA_Feature2DAsync(&self) -> *const c_void { self.inner_as_raw() } } impl crate::cudafeatures2d::CUDA_Feature2DAsyncTrait for core::Ptr { #[inline] fn as_raw_mut_CUDA_Feature2DAsync(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_cuda_Feature2DAsyncG_to_PtrOfAlgorithm } impl crate::features2d::Feature2DTraitConst for core::Ptr { #[inline] fn as_raw_Feature2D(&self) -> *const c_void { self.inner_as_raw() } } impl crate::features2d::Feature2DTrait for core::Ptr { #[inline] fn as_raw_mut_Feature2D(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_cuda_Feature2DAsyncG_to_PtrOfFeature2D } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfCUDA_Feature2DAsync") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfCUDA_ORB = core::Ptr; ptr_extern! { crate::cudafeatures2d::CUDA_ORB, cv_PtrLcv_cuda_ORBG_new_null_const, cv_PtrLcv_cuda_ORBG_delete, cv_PtrLcv_cuda_ORBG_getInnerPtr_const, cv_PtrLcv_cuda_ORBG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfCUDA_ORB(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfCUDA_ORB(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::cudafeatures2d::CUDA_ORBTraitConst for core::Ptr { #[inline] fn as_raw_CUDA_ORB(&self) -> *const c_void { self.inner_as_raw() } } impl crate::cudafeatures2d::CUDA_ORBTrait for core::Ptr { #[inline] fn as_raw_mut_CUDA_ORB(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_cuda_ORBG_to_PtrOfAlgorithm } impl crate::features2d::Feature2DTraitConst for core::Ptr { #[inline] fn as_raw_Feature2D(&self) -> *const c_void { self.inner_as_raw() } } impl crate::features2d::Feature2DTrait for core::Ptr { #[inline] fn as_raw_mut_Feature2D(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_cuda_ORBG_to_PtrOfFeature2D } impl crate::cudafeatures2d::CUDA_Feature2DAsyncTraitConst for core::Ptr { #[inline] fn as_raw_CUDA_Feature2DAsync(&self) -> *const c_void { self.inner_as_raw() } } impl crate::cudafeatures2d::CUDA_Feature2DAsyncTrait for core::Ptr { #[inline] fn as_raw_mut_CUDA_Feature2DAsync(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_cuda_ORBG_to_PtrOfCUDA_Feature2DAsync } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfCUDA_ORB") .finish() } } } #[cfg(ocvrs_has_module_cudafeatures2d)] pub use cudafeatures2d_types::*; #[cfg(ocvrs_has_module_cudafilters)] mod cudafilters_types { use crate::{mod_prelude::*, core, types, sys}; #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfFilter = core::Ptr; ptr_extern! { crate::cudafilters::Filter, cv_PtrLcv_cuda_FilterG_new_null_const, cv_PtrLcv_cuda_FilterG_delete, cv_PtrLcv_cuda_FilterG_getInnerPtr_const, cv_PtrLcv_cuda_FilterG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfFilter(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfFilter(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::cudafilters::FilterTraitConst for core::Ptr { #[inline] fn as_raw_Filter(&self) -> *const c_void { self.inner_as_raw() } } impl crate::cudafilters::FilterTrait for core::Ptr { #[inline] fn as_raw_mut_Filter(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_cuda_FilterG_to_PtrOfAlgorithm } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfFilter") .finish() } } } #[cfg(ocvrs_has_module_cudafilters)] pub use cudafilters_types::*; #[cfg(ocvrs_has_module_cudaimgproc)] mod cudaimgproc_types { use crate::{mod_prelude::*, core, types, sys}; #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfCUDA_CLAHE = core::Ptr; ptr_extern! { crate::cudaimgproc::CUDA_CLAHE, cv_PtrLcv_cuda_CLAHEG_new_null_const, cv_PtrLcv_cuda_CLAHEG_delete, cv_PtrLcv_cuda_CLAHEG_getInnerPtr_const, cv_PtrLcv_cuda_CLAHEG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfCUDA_CLAHE(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfCUDA_CLAHE(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::cudaimgproc::CUDA_CLAHETraitConst for core::Ptr { #[inline] fn as_raw_CUDA_CLAHE(&self) -> *const c_void { self.inner_as_raw() } } impl crate::cudaimgproc::CUDA_CLAHETrait for core::Ptr { #[inline] fn as_raw_mut_CUDA_CLAHE(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_cuda_CLAHEG_to_PtrOfAlgorithm } impl crate::imgproc::CLAHETraitConst for core::Ptr { #[inline] fn as_raw_CLAHE(&self) -> *const c_void { self.inner_as_raw() } } impl crate::imgproc::CLAHETrait for core::Ptr { #[inline] fn as_raw_mut_CLAHE(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_cuda_CLAHEG_to_PtrOfCLAHE } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfCUDA_CLAHE") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfCUDA_CannyEdgeDetector = core::Ptr; ptr_extern! { crate::cudaimgproc::CUDA_CannyEdgeDetector, cv_PtrLcv_cuda_CannyEdgeDetectorG_new_null_const, cv_PtrLcv_cuda_CannyEdgeDetectorG_delete, cv_PtrLcv_cuda_CannyEdgeDetectorG_getInnerPtr_const, cv_PtrLcv_cuda_CannyEdgeDetectorG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfCUDA_CannyEdgeDetector(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfCUDA_CannyEdgeDetector(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::cudaimgproc::CUDA_CannyEdgeDetectorTraitConst for core::Ptr { #[inline] fn as_raw_CUDA_CannyEdgeDetector(&self) -> *const c_void { self.inner_as_raw() } } impl crate::cudaimgproc::CUDA_CannyEdgeDetectorTrait for core::Ptr { #[inline] fn as_raw_mut_CUDA_CannyEdgeDetector(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_cuda_CannyEdgeDetectorG_to_PtrOfAlgorithm } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfCUDA_CannyEdgeDetector") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfCUDA_CornernessCriteria = core::Ptr; ptr_extern! { crate::cudaimgproc::CUDA_CornernessCriteria, cv_PtrLcv_cuda_CornernessCriteriaG_new_null_const, cv_PtrLcv_cuda_CornernessCriteriaG_delete, cv_PtrLcv_cuda_CornernessCriteriaG_getInnerPtr_const, cv_PtrLcv_cuda_CornernessCriteriaG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfCUDA_CornernessCriteria(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfCUDA_CornernessCriteria(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::cudaimgproc::CUDA_CornernessCriteriaTraitConst for core::Ptr { #[inline] fn as_raw_CUDA_CornernessCriteria(&self) -> *const c_void { self.inner_as_raw() } } impl crate::cudaimgproc::CUDA_CornernessCriteriaTrait for core::Ptr { #[inline] fn as_raw_mut_CUDA_CornernessCriteria(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_cuda_CornernessCriteriaG_to_PtrOfAlgorithm } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfCUDA_CornernessCriteria") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfCUDA_CornersDetector = core::Ptr; ptr_extern! { crate::cudaimgproc::CUDA_CornersDetector, cv_PtrLcv_cuda_CornersDetectorG_new_null_const, cv_PtrLcv_cuda_CornersDetectorG_delete, cv_PtrLcv_cuda_CornersDetectorG_getInnerPtr_const, cv_PtrLcv_cuda_CornersDetectorG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfCUDA_CornersDetector(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfCUDA_CornersDetector(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::cudaimgproc::CUDA_CornersDetectorTraitConst for core::Ptr { #[inline] fn as_raw_CUDA_CornersDetector(&self) -> *const c_void { self.inner_as_raw() } } impl crate::cudaimgproc::CUDA_CornersDetectorTrait for core::Ptr { #[inline] fn as_raw_mut_CUDA_CornersDetector(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_cuda_CornersDetectorG_to_PtrOfAlgorithm } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfCUDA_CornersDetector") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfCUDA_HoughCirclesDetector = core::Ptr; ptr_extern! { crate::cudaimgproc::CUDA_HoughCirclesDetector, cv_PtrLcv_cuda_HoughCirclesDetectorG_new_null_const, cv_PtrLcv_cuda_HoughCirclesDetectorG_delete, cv_PtrLcv_cuda_HoughCirclesDetectorG_getInnerPtr_const, cv_PtrLcv_cuda_HoughCirclesDetectorG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfCUDA_HoughCirclesDetector(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfCUDA_HoughCirclesDetector(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::cudaimgproc::CUDA_HoughCirclesDetectorTraitConst for core::Ptr { #[inline] fn as_raw_CUDA_HoughCirclesDetector(&self) -> *const c_void { self.inner_as_raw() } } impl crate::cudaimgproc::CUDA_HoughCirclesDetectorTrait for core::Ptr { #[inline] fn as_raw_mut_CUDA_HoughCirclesDetector(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_cuda_HoughCirclesDetectorG_to_PtrOfAlgorithm } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfCUDA_HoughCirclesDetector") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfCUDA_HoughLinesDetector = core::Ptr; ptr_extern! { crate::cudaimgproc::CUDA_HoughLinesDetector, cv_PtrLcv_cuda_HoughLinesDetectorG_new_null_const, cv_PtrLcv_cuda_HoughLinesDetectorG_delete, cv_PtrLcv_cuda_HoughLinesDetectorG_getInnerPtr_const, cv_PtrLcv_cuda_HoughLinesDetectorG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfCUDA_HoughLinesDetector(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfCUDA_HoughLinesDetector(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::cudaimgproc::CUDA_HoughLinesDetectorTraitConst for core::Ptr { #[inline] fn as_raw_CUDA_HoughLinesDetector(&self) -> *const c_void { self.inner_as_raw() } } impl crate::cudaimgproc::CUDA_HoughLinesDetectorTrait for core::Ptr { #[inline] fn as_raw_mut_CUDA_HoughLinesDetector(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_cuda_HoughLinesDetectorG_to_PtrOfAlgorithm } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfCUDA_HoughLinesDetector") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfCUDA_HoughSegmentDetector = core::Ptr; ptr_extern! { crate::cudaimgproc::CUDA_HoughSegmentDetector, cv_PtrLcv_cuda_HoughSegmentDetectorG_new_null_const, cv_PtrLcv_cuda_HoughSegmentDetectorG_delete, cv_PtrLcv_cuda_HoughSegmentDetectorG_getInnerPtr_const, cv_PtrLcv_cuda_HoughSegmentDetectorG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfCUDA_HoughSegmentDetector(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfCUDA_HoughSegmentDetector(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::cudaimgproc::CUDA_HoughSegmentDetectorTraitConst for core::Ptr { #[inline] fn as_raw_CUDA_HoughSegmentDetector(&self) -> *const c_void { self.inner_as_raw() } } impl crate::cudaimgproc::CUDA_HoughSegmentDetectorTrait for core::Ptr { #[inline] fn as_raw_mut_CUDA_HoughSegmentDetector(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_cuda_HoughSegmentDetectorG_to_PtrOfAlgorithm } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfCUDA_HoughSegmentDetector") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfCUDA_TemplateMatching = core::Ptr; ptr_extern! { crate::cudaimgproc::CUDA_TemplateMatching, cv_PtrLcv_cuda_TemplateMatchingG_new_null_const, cv_PtrLcv_cuda_TemplateMatchingG_delete, cv_PtrLcv_cuda_TemplateMatchingG_getInnerPtr_const, cv_PtrLcv_cuda_TemplateMatchingG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfCUDA_TemplateMatching(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfCUDA_TemplateMatching(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::cudaimgproc::CUDA_TemplateMatchingTraitConst for core::Ptr { #[inline] fn as_raw_CUDA_TemplateMatching(&self) -> *const c_void { self.inner_as_raw() } } impl crate::cudaimgproc::CUDA_TemplateMatchingTrait for core::Ptr { #[inline] fn as_raw_mut_CUDA_TemplateMatching(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_cuda_TemplateMatchingG_to_PtrOfAlgorithm } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfCUDA_TemplateMatching") .finish() } } } #[cfg(ocvrs_has_module_cudaimgproc)] pub use cudaimgproc_types::*; #[cfg(ocvrs_has_module_cudaobjdetect)] mod cudaobjdetect_types { use crate::{mod_prelude::*, core, types, sys}; #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfCUDA_CascadeClassifier = core::Ptr; ptr_extern! { crate::cudaobjdetect::CUDA_CascadeClassifier, cv_PtrLcv_cuda_CascadeClassifierG_new_null_const, cv_PtrLcv_cuda_CascadeClassifierG_delete, cv_PtrLcv_cuda_CascadeClassifierG_getInnerPtr_const, cv_PtrLcv_cuda_CascadeClassifierG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfCUDA_CascadeClassifier(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfCUDA_CascadeClassifier(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::cudaobjdetect::CUDA_CascadeClassifierTraitConst for core::Ptr { #[inline] fn as_raw_CUDA_CascadeClassifier(&self) -> *const c_void { self.inner_as_raw() } } impl crate::cudaobjdetect::CUDA_CascadeClassifierTrait for core::Ptr { #[inline] fn as_raw_mut_CUDA_CascadeClassifier(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_cuda_CascadeClassifierG_to_PtrOfAlgorithm } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfCUDA_CascadeClassifier") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfCUDA_HOG = core::Ptr; ptr_extern! { crate::cudaobjdetect::CUDA_HOG, cv_PtrLcv_cuda_HOGG_new_null_const, cv_PtrLcv_cuda_HOGG_delete, cv_PtrLcv_cuda_HOGG_getInnerPtr_const, cv_PtrLcv_cuda_HOGG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfCUDA_HOG(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfCUDA_HOG(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::cudaobjdetect::CUDA_HOGTraitConst for core::Ptr { #[inline] fn as_raw_CUDA_HOG(&self) -> *const c_void { self.inner_as_raw() } } impl crate::cudaobjdetect::CUDA_HOGTrait for core::Ptr { #[inline] fn as_raw_mut_CUDA_HOG(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_cuda_HOGG_to_PtrOfAlgorithm } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfCUDA_HOG") .finish() } } } #[cfg(ocvrs_has_module_cudaobjdetect)] pub use cudaobjdetect_types::*; #[cfg(ocvrs_has_module_cudaoptflow)] mod cudaoptflow_types { use crate::{mod_prelude::*, core, types, sys}; #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfCUDA_BroxOpticalFlow = core::Ptr; ptr_extern! { crate::cudaoptflow::CUDA_BroxOpticalFlow, cv_PtrLcv_cuda_BroxOpticalFlowG_new_null_const, cv_PtrLcv_cuda_BroxOpticalFlowG_delete, cv_PtrLcv_cuda_BroxOpticalFlowG_getInnerPtr_const, cv_PtrLcv_cuda_BroxOpticalFlowG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfCUDA_BroxOpticalFlow(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfCUDA_BroxOpticalFlow(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::cudaoptflow::CUDA_BroxOpticalFlowTraitConst for core::Ptr { #[inline] fn as_raw_CUDA_BroxOpticalFlow(&self) -> *const c_void { self.inner_as_raw() } } impl crate::cudaoptflow::CUDA_BroxOpticalFlowTrait for core::Ptr { #[inline] fn as_raw_mut_CUDA_BroxOpticalFlow(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_cuda_BroxOpticalFlowG_to_PtrOfAlgorithm } impl crate::cudaoptflow::CUDA_DenseOpticalFlowTraitConst for core::Ptr { #[inline] fn as_raw_CUDA_DenseOpticalFlow(&self) -> *const c_void { self.inner_as_raw() } } impl crate::cudaoptflow::CUDA_DenseOpticalFlowTrait for core::Ptr { #[inline] fn as_raw_mut_CUDA_DenseOpticalFlow(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_cuda_BroxOpticalFlowG_to_PtrOfCUDA_DenseOpticalFlow } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfCUDA_BroxOpticalFlow") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfCUDA_DenseOpticalFlow = core::Ptr; ptr_extern! { crate::cudaoptflow::CUDA_DenseOpticalFlow, cv_PtrLcv_cuda_DenseOpticalFlowG_new_null_const, cv_PtrLcv_cuda_DenseOpticalFlowG_delete, cv_PtrLcv_cuda_DenseOpticalFlowG_getInnerPtr_const, cv_PtrLcv_cuda_DenseOpticalFlowG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfCUDA_DenseOpticalFlow(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfCUDA_DenseOpticalFlow(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::cudaoptflow::CUDA_DenseOpticalFlowTraitConst for core::Ptr { #[inline] fn as_raw_CUDA_DenseOpticalFlow(&self) -> *const c_void { self.inner_as_raw() } } impl crate::cudaoptflow::CUDA_DenseOpticalFlowTrait for core::Ptr { #[inline] fn as_raw_mut_CUDA_DenseOpticalFlow(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_cuda_DenseOpticalFlowG_to_PtrOfAlgorithm } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfCUDA_DenseOpticalFlow") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfCUDA_DensePyrLKOpticalFlow = core::Ptr; ptr_extern! { crate::cudaoptflow::CUDA_DensePyrLKOpticalFlow, cv_PtrLcv_cuda_DensePyrLKOpticalFlowG_new_null_const, cv_PtrLcv_cuda_DensePyrLKOpticalFlowG_delete, cv_PtrLcv_cuda_DensePyrLKOpticalFlowG_getInnerPtr_const, cv_PtrLcv_cuda_DensePyrLKOpticalFlowG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfCUDA_DensePyrLKOpticalFlow(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfCUDA_DensePyrLKOpticalFlow(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::cudaoptflow::CUDA_DensePyrLKOpticalFlowTraitConst for core::Ptr { #[inline] fn as_raw_CUDA_DensePyrLKOpticalFlow(&self) -> *const c_void { self.inner_as_raw() } } impl crate::cudaoptflow::CUDA_DensePyrLKOpticalFlowTrait for core::Ptr { #[inline] fn as_raw_mut_CUDA_DensePyrLKOpticalFlow(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_cuda_DensePyrLKOpticalFlowG_to_PtrOfAlgorithm } impl crate::cudaoptflow::CUDA_DenseOpticalFlowTraitConst for core::Ptr { #[inline] fn as_raw_CUDA_DenseOpticalFlow(&self) -> *const c_void { self.inner_as_raw() } } impl crate::cudaoptflow::CUDA_DenseOpticalFlowTrait for core::Ptr { #[inline] fn as_raw_mut_CUDA_DenseOpticalFlow(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_cuda_DensePyrLKOpticalFlowG_to_PtrOfCUDA_DenseOpticalFlow } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfCUDA_DensePyrLKOpticalFlow") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfCUDA_FarnebackOpticalFlow = core::Ptr; ptr_extern! { crate::cudaoptflow::CUDA_FarnebackOpticalFlow, cv_PtrLcv_cuda_FarnebackOpticalFlowG_new_null_const, cv_PtrLcv_cuda_FarnebackOpticalFlowG_delete, cv_PtrLcv_cuda_FarnebackOpticalFlowG_getInnerPtr_const, cv_PtrLcv_cuda_FarnebackOpticalFlowG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfCUDA_FarnebackOpticalFlow(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfCUDA_FarnebackOpticalFlow(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::cudaoptflow::CUDA_FarnebackOpticalFlowTraitConst for core::Ptr { #[inline] fn as_raw_CUDA_FarnebackOpticalFlow(&self) -> *const c_void { self.inner_as_raw() } } impl crate::cudaoptflow::CUDA_FarnebackOpticalFlowTrait for core::Ptr { #[inline] fn as_raw_mut_CUDA_FarnebackOpticalFlow(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_cuda_FarnebackOpticalFlowG_to_PtrOfAlgorithm } impl crate::cudaoptflow::CUDA_DenseOpticalFlowTraitConst for core::Ptr { #[inline] fn as_raw_CUDA_DenseOpticalFlow(&self) -> *const c_void { self.inner_as_raw() } } impl crate::cudaoptflow::CUDA_DenseOpticalFlowTrait for core::Ptr { #[inline] fn as_raw_mut_CUDA_DenseOpticalFlow(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_cuda_FarnebackOpticalFlowG_to_PtrOfCUDA_DenseOpticalFlow } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfCUDA_FarnebackOpticalFlow") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfCUDA_NvidiaHWOpticalFlow = core::Ptr; ptr_extern! { crate::cudaoptflow::CUDA_NvidiaHWOpticalFlow, cv_PtrLcv_cuda_NvidiaHWOpticalFlowG_new_null_const, cv_PtrLcv_cuda_NvidiaHWOpticalFlowG_delete, cv_PtrLcv_cuda_NvidiaHWOpticalFlowG_getInnerPtr_const, cv_PtrLcv_cuda_NvidiaHWOpticalFlowG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfCUDA_NvidiaHWOpticalFlow(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfCUDA_NvidiaHWOpticalFlow(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::cudaoptflow::CUDA_NvidiaHWOpticalFlowTraitConst for core::Ptr { #[inline] fn as_raw_CUDA_NvidiaHWOpticalFlow(&self) -> *const c_void { self.inner_as_raw() } } impl crate::cudaoptflow::CUDA_NvidiaHWOpticalFlowTrait for core::Ptr { #[inline] fn as_raw_mut_CUDA_NvidiaHWOpticalFlow(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_cuda_NvidiaHWOpticalFlowG_to_PtrOfAlgorithm } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfCUDA_NvidiaHWOpticalFlow") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfCUDA_NvidiaOpticalFlow_1_0 = core::Ptr; ptr_extern! { crate::cudaoptflow::CUDA_NvidiaOpticalFlow_1_0, cv_PtrLcv_cuda_NvidiaOpticalFlow_1_0G_new_null_const, cv_PtrLcv_cuda_NvidiaOpticalFlow_1_0G_delete, cv_PtrLcv_cuda_NvidiaOpticalFlow_1_0G_getInnerPtr_const, cv_PtrLcv_cuda_NvidiaOpticalFlow_1_0G_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfCUDA_NvidiaOpticalFlow_1_0(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfCUDA_NvidiaOpticalFlow_1_0(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::cudaoptflow::CUDA_NvidiaOpticalFlow_1_0TraitConst for core::Ptr { #[inline] fn as_raw_CUDA_NvidiaOpticalFlow_1_0(&self) -> *const c_void { self.inner_as_raw() } } impl crate::cudaoptflow::CUDA_NvidiaOpticalFlow_1_0Trait for core::Ptr { #[inline] fn as_raw_mut_CUDA_NvidiaOpticalFlow_1_0(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_cuda_NvidiaOpticalFlow_1_0G_to_PtrOfAlgorithm } impl crate::cudaoptflow::CUDA_NvidiaHWOpticalFlowTraitConst for core::Ptr { #[inline] fn as_raw_CUDA_NvidiaHWOpticalFlow(&self) -> *const c_void { self.inner_as_raw() } } impl crate::cudaoptflow::CUDA_NvidiaHWOpticalFlowTrait for core::Ptr { #[inline] fn as_raw_mut_CUDA_NvidiaHWOpticalFlow(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_cuda_NvidiaOpticalFlow_1_0G_to_PtrOfCUDA_NvidiaHWOpticalFlow } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfCUDA_NvidiaOpticalFlow_1_0") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfCUDA_NvidiaOpticalFlow_2_0 = core::Ptr; ptr_extern! { crate::cudaoptflow::CUDA_NvidiaOpticalFlow_2_0, cv_PtrLcv_cuda_NvidiaOpticalFlow_2_0G_new_null_const, cv_PtrLcv_cuda_NvidiaOpticalFlow_2_0G_delete, cv_PtrLcv_cuda_NvidiaOpticalFlow_2_0G_getInnerPtr_const, cv_PtrLcv_cuda_NvidiaOpticalFlow_2_0G_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfCUDA_NvidiaOpticalFlow_2_0(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfCUDA_NvidiaOpticalFlow_2_0(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::cudaoptflow::CUDA_NvidiaOpticalFlow_2_0TraitConst for core::Ptr { #[inline] fn as_raw_CUDA_NvidiaOpticalFlow_2_0(&self) -> *const c_void { self.inner_as_raw() } } impl crate::cudaoptflow::CUDA_NvidiaOpticalFlow_2_0Trait for core::Ptr { #[inline] fn as_raw_mut_CUDA_NvidiaOpticalFlow_2_0(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_cuda_NvidiaOpticalFlow_2_0G_to_PtrOfAlgorithm } impl crate::cudaoptflow::CUDA_NvidiaHWOpticalFlowTraitConst for core::Ptr { #[inline] fn as_raw_CUDA_NvidiaHWOpticalFlow(&self) -> *const c_void { self.inner_as_raw() } } impl crate::cudaoptflow::CUDA_NvidiaHWOpticalFlowTrait for core::Ptr { #[inline] fn as_raw_mut_CUDA_NvidiaHWOpticalFlow(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_cuda_NvidiaOpticalFlow_2_0G_to_PtrOfCUDA_NvidiaHWOpticalFlow } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfCUDA_NvidiaOpticalFlow_2_0") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfCUDA_OpticalFlowDual_TVL1 = core::Ptr; ptr_extern! { crate::cudaoptflow::CUDA_OpticalFlowDual_TVL1, cv_PtrLcv_cuda_OpticalFlowDual_TVL1G_new_null_const, cv_PtrLcv_cuda_OpticalFlowDual_TVL1G_delete, cv_PtrLcv_cuda_OpticalFlowDual_TVL1G_getInnerPtr_const, cv_PtrLcv_cuda_OpticalFlowDual_TVL1G_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfCUDA_OpticalFlowDual_TVL1(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfCUDA_OpticalFlowDual_TVL1(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::cudaoptflow::CUDA_OpticalFlowDual_TVL1TraitConst for core::Ptr { #[inline] fn as_raw_CUDA_OpticalFlowDual_TVL1(&self) -> *const c_void { self.inner_as_raw() } } impl crate::cudaoptflow::CUDA_OpticalFlowDual_TVL1Trait for core::Ptr { #[inline] fn as_raw_mut_CUDA_OpticalFlowDual_TVL1(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_cuda_OpticalFlowDual_TVL1G_to_PtrOfAlgorithm } impl crate::cudaoptflow::CUDA_DenseOpticalFlowTraitConst for core::Ptr { #[inline] fn as_raw_CUDA_DenseOpticalFlow(&self) -> *const c_void { self.inner_as_raw() } } impl crate::cudaoptflow::CUDA_DenseOpticalFlowTrait for core::Ptr { #[inline] fn as_raw_mut_CUDA_DenseOpticalFlow(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_cuda_OpticalFlowDual_TVL1G_to_PtrOfCUDA_DenseOpticalFlow } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfCUDA_OpticalFlowDual_TVL1") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfCUDA_SparseOpticalFlow = core::Ptr; ptr_extern! { crate::cudaoptflow::CUDA_SparseOpticalFlow, cv_PtrLcv_cuda_SparseOpticalFlowG_new_null_const, cv_PtrLcv_cuda_SparseOpticalFlowG_delete, cv_PtrLcv_cuda_SparseOpticalFlowG_getInnerPtr_const, cv_PtrLcv_cuda_SparseOpticalFlowG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfCUDA_SparseOpticalFlow(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfCUDA_SparseOpticalFlow(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::cudaoptflow::CUDA_SparseOpticalFlowTraitConst for core::Ptr { #[inline] fn as_raw_CUDA_SparseOpticalFlow(&self) -> *const c_void { self.inner_as_raw() } } impl crate::cudaoptflow::CUDA_SparseOpticalFlowTrait for core::Ptr { #[inline] fn as_raw_mut_CUDA_SparseOpticalFlow(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_cuda_SparseOpticalFlowG_to_PtrOfAlgorithm } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfCUDA_SparseOpticalFlow") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfCUDA_SparsePyrLKOpticalFlow = core::Ptr; ptr_extern! { crate::cudaoptflow::CUDA_SparsePyrLKOpticalFlow, cv_PtrLcv_cuda_SparsePyrLKOpticalFlowG_new_null_const, cv_PtrLcv_cuda_SparsePyrLKOpticalFlowG_delete, cv_PtrLcv_cuda_SparsePyrLKOpticalFlowG_getInnerPtr_const, cv_PtrLcv_cuda_SparsePyrLKOpticalFlowG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfCUDA_SparsePyrLKOpticalFlow(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfCUDA_SparsePyrLKOpticalFlow(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::cudaoptflow::CUDA_SparsePyrLKOpticalFlowTraitConst for core::Ptr { #[inline] fn as_raw_CUDA_SparsePyrLKOpticalFlow(&self) -> *const c_void { self.inner_as_raw() } } impl crate::cudaoptflow::CUDA_SparsePyrLKOpticalFlowTrait for core::Ptr { #[inline] fn as_raw_mut_CUDA_SparsePyrLKOpticalFlow(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_cuda_SparsePyrLKOpticalFlowG_to_PtrOfAlgorithm } impl crate::cudaoptflow::CUDA_SparseOpticalFlowTraitConst for core::Ptr { #[inline] fn as_raw_CUDA_SparseOpticalFlow(&self) -> *const c_void { self.inner_as_raw() } } impl crate::cudaoptflow::CUDA_SparseOpticalFlowTrait for core::Ptr { #[inline] fn as_raw_mut_CUDA_SparseOpticalFlow(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_cuda_SparsePyrLKOpticalFlowG_to_PtrOfCUDA_SparseOpticalFlow } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfCUDA_SparsePyrLKOpticalFlow") .finish() } } } #[cfg(ocvrs_has_module_cudaoptflow)] pub use cudaoptflow_types::*; #[cfg(ocvrs_has_module_cudastereo)] mod cudastereo_types { use crate::{mod_prelude::*, core, types, sys}; #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfCUDA_DisparityBilateralFilter = core::Ptr; ptr_extern! { crate::cudastereo::CUDA_DisparityBilateralFilter, cv_PtrLcv_cuda_DisparityBilateralFilterG_new_null_const, cv_PtrLcv_cuda_DisparityBilateralFilterG_delete, cv_PtrLcv_cuda_DisparityBilateralFilterG_getInnerPtr_const, cv_PtrLcv_cuda_DisparityBilateralFilterG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfCUDA_DisparityBilateralFilter(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfCUDA_DisparityBilateralFilter(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::cudastereo::CUDA_DisparityBilateralFilterTraitConst for core::Ptr { #[inline] fn as_raw_CUDA_DisparityBilateralFilter(&self) -> *const c_void { self.inner_as_raw() } } impl crate::cudastereo::CUDA_DisparityBilateralFilterTrait for core::Ptr { #[inline] fn as_raw_mut_CUDA_DisparityBilateralFilter(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_cuda_DisparityBilateralFilterG_to_PtrOfAlgorithm } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfCUDA_DisparityBilateralFilter") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfCUDA_StereoBM = core::Ptr; ptr_extern! { crate::cudastereo::CUDA_StereoBM, cv_PtrLcv_cuda_StereoBMG_new_null_const, cv_PtrLcv_cuda_StereoBMG_delete, cv_PtrLcv_cuda_StereoBMG_getInnerPtr_const, cv_PtrLcv_cuda_StereoBMG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfCUDA_StereoBM(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfCUDA_StereoBM(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::cudastereo::CUDA_StereoBMTraitConst for core::Ptr { #[inline] fn as_raw_CUDA_StereoBM(&self) -> *const c_void { self.inner_as_raw() } } impl crate::cudastereo::CUDA_StereoBMTrait for core::Ptr { #[inline] fn as_raw_mut_CUDA_StereoBM(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_cuda_StereoBMG_to_PtrOfAlgorithm } impl crate::calib3d::StereoBMTraitConst for core::Ptr { #[inline] fn as_raw_StereoBM(&self) -> *const c_void { self.inner_as_raw() } } impl crate::calib3d::StereoBMTrait for core::Ptr { #[inline] fn as_raw_mut_StereoBM(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_cuda_StereoBMG_to_PtrOfStereoBM } impl crate::calib3d::StereoMatcherTraitConst for core::Ptr { #[inline] fn as_raw_StereoMatcher(&self) -> *const c_void { self.inner_as_raw() } } impl crate::calib3d::StereoMatcherTrait for core::Ptr { #[inline] fn as_raw_mut_StereoMatcher(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_cuda_StereoBMG_to_PtrOfStereoMatcher } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfCUDA_StereoBM") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfCUDA_StereoBeliefPropagation = core::Ptr; ptr_extern! { crate::cudastereo::CUDA_StereoBeliefPropagation, cv_PtrLcv_cuda_StereoBeliefPropagationG_new_null_const, cv_PtrLcv_cuda_StereoBeliefPropagationG_delete, cv_PtrLcv_cuda_StereoBeliefPropagationG_getInnerPtr_const, cv_PtrLcv_cuda_StereoBeliefPropagationG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfCUDA_StereoBeliefPropagation(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfCUDA_StereoBeliefPropagation(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::cudastereo::CUDA_StereoBeliefPropagationTraitConst for core::Ptr { #[inline] fn as_raw_CUDA_StereoBeliefPropagation(&self) -> *const c_void { self.inner_as_raw() } } impl crate::cudastereo::CUDA_StereoBeliefPropagationTrait for core::Ptr { #[inline] fn as_raw_mut_CUDA_StereoBeliefPropagation(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_cuda_StereoBeliefPropagationG_to_PtrOfAlgorithm } impl crate::calib3d::StereoMatcherTraitConst for core::Ptr { #[inline] fn as_raw_StereoMatcher(&self) -> *const c_void { self.inner_as_raw() } } impl crate::calib3d::StereoMatcherTrait for core::Ptr { #[inline] fn as_raw_mut_StereoMatcher(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_cuda_StereoBeliefPropagationG_to_PtrOfStereoMatcher } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfCUDA_StereoBeliefPropagation") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfCUDA_StereoConstantSpaceBP = core::Ptr; ptr_extern! { crate::cudastereo::CUDA_StereoConstantSpaceBP, cv_PtrLcv_cuda_StereoConstantSpaceBPG_new_null_const, cv_PtrLcv_cuda_StereoConstantSpaceBPG_delete, cv_PtrLcv_cuda_StereoConstantSpaceBPG_getInnerPtr_const, cv_PtrLcv_cuda_StereoConstantSpaceBPG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfCUDA_StereoConstantSpaceBP(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfCUDA_StereoConstantSpaceBP(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::cudastereo::CUDA_StereoConstantSpaceBPTraitConst for core::Ptr { #[inline] fn as_raw_CUDA_StereoConstantSpaceBP(&self) -> *const c_void { self.inner_as_raw() } } impl crate::cudastereo::CUDA_StereoConstantSpaceBPTrait for core::Ptr { #[inline] fn as_raw_mut_CUDA_StereoConstantSpaceBP(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_cuda_StereoConstantSpaceBPG_to_PtrOfAlgorithm } impl crate::calib3d::StereoMatcherTraitConst for core::Ptr { #[inline] fn as_raw_StereoMatcher(&self) -> *const c_void { self.inner_as_raw() } } impl crate::calib3d::StereoMatcherTrait for core::Ptr { #[inline] fn as_raw_mut_StereoMatcher(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_cuda_StereoConstantSpaceBPG_to_PtrOfStereoMatcher } impl crate::cudastereo::CUDA_StereoBeliefPropagationTraitConst for core::Ptr { #[inline] fn as_raw_CUDA_StereoBeliefPropagation(&self) -> *const c_void { self.inner_as_raw() } } impl crate::cudastereo::CUDA_StereoBeliefPropagationTrait for core::Ptr { #[inline] fn as_raw_mut_CUDA_StereoBeliefPropagation(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_cuda_StereoConstantSpaceBPG_to_PtrOfCUDA_StereoBeliefPropagation } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfCUDA_StereoConstantSpaceBP") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfCUDA_StereoSGM = core::Ptr; ptr_extern! { crate::cudastereo::CUDA_StereoSGM, cv_PtrLcv_cuda_StereoSGMG_new_null_const, cv_PtrLcv_cuda_StereoSGMG_delete, cv_PtrLcv_cuda_StereoSGMG_getInnerPtr_const, cv_PtrLcv_cuda_StereoSGMG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfCUDA_StereoSGM(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfCUDA_StereoSGM(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::cudastereo::CUDA_StereoSGMTraitConst for core::Ptr { #[inline] fn as_raw_CUDA_StereoSGM(&self) -> *const c_void { self.inner_as_raw() } } impl crate::cudastereo::CUDA_StereoSGMTrait for core::Ptr { #[inline] fn as_raw_mut_CUDA_StereoSGM(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_cuda_StereoSGMG_to_PtrOfAlgorithm } impl crate::calib3d::StereoMatcherTraitConst for core::Ptr { #[inline] fn as_raw_StereoMatcher(&self) -> *const c_void { self.inner_as_raw() } } impl crate::calib3d::StereoMatcherTrait for core::Ptr { #[inline] fn as_raw_mut_StereoMatcher(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_cuda_StereoSGMG_to_PtrOfStereoMatcher } impl crate::calib3d::StereoSGBMTraitConst for core::Ptr { #[inline] fn as_raw_StereoSGBM(&self) -> *const c_void { self.inner_as_raw() } } impl crate::calib3d::StereoSGBMTrait for core::Ptr { #[inline] fn as_raw_mut_StereoSGBM(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_cuda_StereoSGMG_to_PtrOfStereoSGBM } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfCUDA_StereoSGM") .finish() } } } #[cfg(ocvrs_has_module_cudastereo)] pub use cudastereo_types::*; #[cfg(ocvrs_has_module_dnn)] mod dnn_types { use crate::{mod_prelude::*, core, types, sys}; #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfAbsLayer = core::Ptr; ptr_extern! { crate::dnn::AbsLayer, cv_PtrLcv_dnn_AbsLayerG_new_null_const, cv_PtrLcv_dnn_AbsLayerG_delete, cv_PtrLcv_dnn_AbsLayerG_getInnerPtr_const, cv_PtrLcv_dnn_AbsLayerG_getInnerPtrMut } ptr_extern_ctor! { crate::dnn::AbsLayer, cv_PtrLcv_dnn_AbsLayerG_new_const_AbsLayer } impl core::Ptr { #[inline] pub fn as_raw_PtrOfAbsLayer(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfAbsLayer(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::dnn::AbsLayerTraitConst for core::Ptr { #[inline] fn as_raw_AbsLayer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::AbsLayerTrait for core::Ptr { #[inline] fn as_raw_mut_AbsLayer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_AbsLayerG_to_PtrOfAlgorithm } impl crate::dnn::ActivationLayerTraitConst for core::Ptr { #[inline] fn as_raw_ActivationLayer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::ActivationLayerTrait for core::Ptr { #[inline] fn as_raw_mut_ActivationLayer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_AbsLayerG_to_PtrOfActivationLayer } impl crate::dnn::LayerTraitConst for core::Ptr { #[inline] fn as_raw_Layer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::LayerTrait for core::Ptr { #[inline] fn as_raw_mut_Layer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_AbsLayerG_to_PtrOfLayer } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfAbsLayer") .field("blobs", &crate::dnn::LayerTraitConst::blobs(self)) .field("name", &crate::dnn::LayerTraitConst::name(self)) .field("typ", &crate::dnn::LayerTraitConst::typ(self)) .field("preferable_target", &crate::dnn::LayerTraitConst::preferable_target(self)) .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfAccumLayer = core::Ptr; ptr_extern! { crate::dnn::AccumLayer, cv_PtrLcv_dnn_AccumLayerG_new_null_const, cv_PtrLcv_dnn_AccumLayerG_delete, cv_PtrLcv_dnn_AccumLayerG_getInnerPtr_const, cv_PtrLcv_dnn_AccumLayerG_getInnerPtrMut } ptr_extern_ctor! { crate::dnn::AccumLayer, cv_PtrLcv_dnn_AccumLayerG_new_const_AccumLayer } impl core::Ptr { #[inline] pub fn as_raw_PtrOfAccumLayer(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfAccumLayer(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::dnn::AccumLayerTraitConst for core::Ptr { #[inline] fn as_raw_AccumLayer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::AccumLayerTrait for core::Ptr { #[inline] fn as_raw_mut_AccumLayer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_AccumLayerG_to_PtrOfAlgorithm } impl crate::dnn::LayerTraitConst for core::Ptr { #[inline] fn as_raw_Layer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::LayerTrait for core::Ptr { #[inline] fn as_raw_mut_Layer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_AccumLayerG_to_PtrOfLayer } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfAccumLayer") .field("blobs", &crate::dnn::LayerTraitConst::blobs(self)) .field("name", &crate::dnn::LayerTraitConst::name(self)) .field("typ", &crate::dnn::LayerTraitConst::typ(self)) .field("preferable_target", &crate::dnn::LayerTraitConst::preferable_target(self)) .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfAcosLayer = core::Ptr; ptr_extern! { crate::dnn::AcosLayer, cv_PtrLcv_dnn_AcosLayerG_new_null_const, cv_PtrLcv_dnn_AcosLayerG_delete, cv_PtrLcv_dnn_AcosLayerG_getInnerPtr_const, cv_PtrLcv_dnn_AcosLayerG_getInnerPtrMut } ptr_extern_ctor! { crate::dnn::AcosLayer, cv_PtrLcv_dnn_AcosLayerG_new_const_AcosLayer } impl core::Ptr { #[inline] pub fn as_raw_PtrOfAcosLayer(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfAcosLayer(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::dnn::AcosLayerTraitConst for core::Ptr { #[inline] fn as_raw_AcosLayer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::AcosLayerTrait for core::Ptr { #[inline] fn as_raw_mut_AcosLayer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_AcosLayerG_to_PtrOfAlgorithm } impl crate::dnn::ActivationLayerTraitConst for core::Ptr { #[inline] fn as_raw_ActivationLayer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::ActivationLayerTrait for core::Ptr { #[inline] fn as_raw_mut_ActivationLayer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_AcosLayerG_to_PtrOfActivationLayer } impl crate::dnn::LayerTraitConst for core::Ptr { #[inline] fn as_raw_Layer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::LayerTrait for core::Ptr { #[inline] fn as_raw_mut_Layer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_AcosLayerG_to_PtrOfLayer } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfAcosLayer") .field("blobs", &crate::dnn::LayerTraitConst::blobs(self)) .field("name", &crate::dnn::LayerTraitConst::name(self)) .field("typ", &crate::dnn::LayerTraitConst::typ(self)) .field("preferable_target", &crate::dnn::LayerTraitConst::preferable_target(self)) .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfAcoshLayer = core::Ptr; ptr_extern! { crate::dnn::AcoshLayer, cv_PtrLcv_dnn_AcoshLayerG_new_null_const, cv_PtrLcv_dnn_AcoshLayerG_delete, cv_PtrLcv_dnn_AcoshLayerG_getInnerPtr_const, cv_PtrLcv_dnn_AcoshLayerG_getInnerPtrMut } ptr_extern_ctor! { crate::dnn::AcoshLayer, cv_PtrLcv_dnn_AcoshLayerG_new_const_AcoshLayer } impl core::Ptr { #[inline] pub fn as_raw_PtrOfAcoshLayer(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfAcoshLayer(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::dnn::AcoshLayerTraitConst for core::Ptr { #[inline] fn as_raw_AcoshLayer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::AcoshLayerTrait for core::Ptr { #[inline] fn as_raw_mut_AcoshLayer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_AcoshLayerG_to_PtrOfAlgorithm } impl crate::dnn::ActivationLayerTraitConst for core::Ptr { #[inline] fn as_raw_ActivationLayer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::ActivationLayerTrait for core::Ptr { #[inline] fn as_raw_mut_ActivationLayer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_AcoshLayerG_to_PtrOfActivationLayer } impl crate::dnn::LayerTraitConst for core::Ptr { #[inline] fn as_raw_Layer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::LayerTrait for core::Ptr { #[inline] fn as_raw_mut_Layer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_AcoshLayerG_to_PtrOfLayer } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfAcoshLayer") .field("blobs", &crate::dnn::LayerTraitConst::blobs(self)) .field("name", &crate::dnn::LayerTraitConst::name(self)) .field("typ", &crate::dnn::LayerTraitConst::typ(self)) .field("preferable_target", &crate::dnn::LayerTraitConst::preferable_target(self)) .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfActivationLayer = core::Ptr; ptr_extern! { crate::dnn::ActivationLayer, cv_PtrLcv_dnn_ActivationLayerG_new_null_const, cv_PtrLcv_dnn_ActivationLayerG_delete, cv_PtrLcv_dnn_ActivationLayerG_getInnerPtr_const, cv_PtrLcv_dnn_ActivationLayerG_getInnerPtrMut } ptr_extern_ctor! { crate::dnn::ActivationLayer, cv_PtrLcv_dnn_ActivationLayerG_new_const_ActivationLayer } impl core::Ptr { #[inline] pub fn as_raw_PtrOfActivationLayer(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfActivationLayer(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::dnn::ActivationLayerTraitConst for core::Ptr { #[inline] fn as_raw_ActivationLayer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::ActivationLayerTrait for core::Ptr { #[inline] fn as_raw_mut_ActivationLayer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_ActivationLayerG_to_PtrOfAlgorithm } impl crate::dnn::LayerTraitConst for core::Ptr { #[inline] fn as_raw_Layer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::LayerTrait for core::Ptr { #[inline] fn as_raw_mut_Layer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_ActivationLayerG_to_PtrOfLayer } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfActivationLayer") .field("blobs", &crate::dnn::LayerTraitConst::blobs(self)) .field("name", &crate::dnn::LayerTraitConst::name(self)) .field("typ", &crate::dnn::LayerTraitConst::typ(self)) .field("preferable_target", &crate::dnn::LayerTraitConst::preferable_target(self)) .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfActivationLayerInt8 = core::Ptr; ptr_extern! { crate::dnn::ActivationLayerInt8, cv_PtrLcv_dnn_ActivationLayerInt8G_new_null_const, cv_PtrLcv_dnn_ActivationLayerInt8G_delete, cv_PtrLcv_dnn_ActivationLayerInt8G_getInnerPtr_const, cv_PtrLcv_dnn_ActivationLayerInt8G_getInnerPtrMut } ptr_extern_ctor! { crate::dnn::ActivationLayerInt8, cv_PtrLcv_dnn_ActivationLayerInt8G_new_const_ActivationLayerInt8 } impl core::Ptr { #[inline] pub fn as_raw_PtrOfActivationLayerInt8(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfActivationLayerInt8(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::dnn::ActivationLayerInt8TraitConst for core::Ptr { #[inline] fn as_raw_ActivationLayerInt8(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::ActivationLayerInt8Trait for core::Ptr { #[inline] fn as_raw_mut_ActivationLayerInt8(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_ActivationLayerInt8G_to_PtrOfAlgorithm } impl crate::dnn::ActivationLayerTraitConst for core::Ptr { #[inline] fn as_raw_ActivationLayer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::ActivationLayerTrait for core::Ptr { #[inline] fn as_raw_mut_ActivationLayer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_ActivationLayerInt8G_to_PtrOfActivationLayer } impl crate::dnn::LayerTraitConst for core::Ptr { #[inline] fn as_raw_Layer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::LayerTrait for core::Ptr { #[inline] fn as_raw_mut_Layer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_ActivationLayerInt8G_to_PtrOfLayer } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfActivationLayerInt8") .field("blobs", &crate::dnn::LayerTraitConst::blobs(self)) .field("name", &crate::dnn::LayerTraitConst::name(self)) .field("typ", &crate::dnn::LayerTraitConst::typ(self)) .field("preferable_target", &crate::dnn::LayerTraitConst::preferable_target(self)) .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfArgLayer = core::Ptr; ptr_extern! { crate::dnn::ArgLayer, cv_PtrLcv_dnn_ArgLayerG_new_null_const, cv_PtrLcv_dnn_ArgLayerG_delete, cv_PtrLcv_dnn_ArgLayerG_getInnerPtr_const, cv_PtrLcv_dnn_ArgLayerG_getInnerPtrMut } ptr_extern_ctor! { crate::dnn::ArgLayer, cv_PtrLcv_dnn_ArgLayerG_new_const_ArgLayer } impl core::Ptr { #[inline] pub fn as_raw_PtrOfArgLayer(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfArgLayer(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::dnn::ArgLayerTraitConst for core::Ptr { #[inline] fn as_raw_ArgLayer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::ArgLayerTrait for core::Ptr { #[inline] fn as_raw_mut_ArgLayer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_ArgLayerG_to_PtrOfAlgorithm } impl crate::dnn::LayerTraitConst for core::Ptr { #[inline] fn as_raw_Layer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::LayerTrait for core::Ptr { #[inline] fn as_raw_mut_Layer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_ArgLayerG_to_PtrOfLayer } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfArgLayer") .field("blobs", &crate::dnn::LayerTraitConst::blobs(self)) .field("name", &crate::dnn::LayerTraitConst::name(self)) .field("typ", &crate::dnn::LayerTraitConst::typ(self)) .field("preferable_target", &crate::dnn::LayerTraitConst::preferable_target(self)) .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfAsinLayer = core::Ptr; ptr_extern! { crate::dnn::AsinLayer, cv_PtrLcv_dnn_AsinLayerG_new_null_const, cv_PtrLcv_dnn_AsinLayerG_delete, cv_PtrLcv_dnn_AsinLayerG_getInnerPtr_const, cv_PtrLcv_dnn_AsinLayerG_getInnerPtrMut } ptr_extern_ctor! { crate::dnn::AsinLayer, cv_PtrLcv_dnn_AsinLayerG_new_const_AsinLayer } impl core::Ptr { #[inline] pub fn as_raw_PtrOfAsinLayer(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfAsinLayer(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::dnn::AsinLayerTraitConst for core::Ptr { #[inline] fn as_raw_AsinLayer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::AsinLayerTrait for core::Ptr { #[inline] fn as_raw_mut_AsinLayer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_AsinLayerG_to_PtrOfAlgorithm } impl crate::dnn::ActivationLayerTraitConst for core::Ptr { #[inline] fn as_raw_ActivationLayer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::ActivationLayerTrait for core::Ptr { #[inline] fn as_raw_mut_ActivationLayer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_AsinLayerG_to_PtrOfActivationLayer } impl crate::dnn::LayerTraitConst for core::Ptr { #[inline] fn as_raw_Layer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::LayerTrait for core::Ptr { #[inline] fn as_raw_mut_Layer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_AsinLayerG_to_PtrOfLayer } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfAsinLayer") .field("blobs", &crate::dnn::LayerTraitConst::blobs(self)) .field("name", &crate::dnn::LayerTraitConst::name(self)) .field("typ", &crate::dnn::LayerTraitConst::typ(self)) .field("preferable_target", &crate::dnn::LayerTraitConst::preferable_target(self)) .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfAsinhLayer = core::Ptr; ptr_extern! { crate::dnn::AsinhLayer, cv_PtrLcv_dnn_AsinhLayerG_new_null_const, cv_PtrLcv_dnn_AsinhLayerG_delete, cv_PtrLcv_dnn_AsinhLayerG_getInnerPtr_const, cv_PtrLcv_dnn_AsinhLayerG_getInnerPtrMut } ptr_extern_ctor! { crate::dnn::AsinhLayer, cv_PtrLcv_dnn_AsinhLayerG_new_const_AsinhLayer } impl core::Ptr { #[inline] pub fn as_raw_PtrOfAsinhLayer(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfAsinhLayer(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::dnn::AsinhLayerTraitConst for core::Ptr { #[inline] fn as_raw_AsinhLayer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::AsinhLayerTrait for core::Ptr { #[inline] fn as_raw_mut_AsinhLayer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_AsinhLayerG_to_PtrOfAlgorithm } impl crate::dnn::ActivationLayerTraitConst for core::Ptr { #[inline] fn as_raw_ActivationLayer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::ActivationLayerTrait for core::Ptr { #[inline] fn as_raw_mut_ActivationLayer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_AsinhLayerG_to_PtrOfActivationLayer } impl crate::dnn::LayerTraitConst for core::Ptr { #[inline] fn as_raw_Layer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::LayerTrait for core::Ptr { #[inline] fn as_raw_mut_Layer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_AsinhLayerG_to_PtrOfLayer } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfAsinhLayer") .field("blobs", &crate::dnn::LayerTraitConst::blobs(self)) .field("name", &crate::dnn::LayerTraitConst::name(self)) .field("typ", &crate::dnn::LayerTraitConst::typ(self)) .field("preferable_target", &crate::dnn::LayerTraitConst::preferable_target(self)) .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfAtanLayer = core::Ptr; ptr_extern! { crate::dnn::AtanLayer, cv_PtrLcv_dnn_AtanLayerG_new_null_const, cv_PtrLcv_dnn_AtanLayerG_delete, cv_PtrLcv_dnn_AtanLayerG_getInnerPtr_const, cv_PtrLcv_dnn_AtanLayerG_getInnerPtrMut } ptr_extern_ctor! { crate::dnn::AtanLayer, cv_PtrLcv_dnn_AtanLayerG_new_const_AtanLayer } impl core::Ptr { #[inline] pub fn as_raw_PtrOfAtanLayer(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfAtanLayer(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::dnn::AtanLayerTraitConst for core::Ptr { #[inline] fn as_raw_AtanLayer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::AtanLayerTrait for core::Ptr { #[inline] fn as_raw_mut_AtanLayer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_AtanLayerG_to_PtrOfAlgorithm } impl crate::dnn::ActivationLayerTraitConst for core::Ptr { #[inline] fn as_raw_ActivationLayer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::ActivationLayerTrait for core::Ptr { #[inline] fn as_raw_mut_ActivationLayer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_AtanLayerG_to_PtrOfActivationLayer } impl crate::dnn::LayerTraitConst for core::Ptr { #[inline] fn as_raw_Layer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::LayerTrait for core::Ptr { #[inline] fn as_raw_mut_Layer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_AtanLayerG_to_PtrOfLayer } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfAtanLayer") .field("blobs", &crate::dnn::LayerTraitConst::blobs(self)) .field("name", &crate::dnn::LayerTraitConst::name(self)) .field("typ", &crate::dnn::LayerTraitConst::typ(self)) .field("preferable_target", &crate::dnn::LayerTraitConst::preferable_target(self)) .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfAtanhLayer = core::Ptr; ptr_extern! { crate::dnn::AtanhLayer, cv_PtrLcv_dnn_AtanhLayerG_new_null_const, cv_PtrLcv_dnn_AtanhLayerG_delete, cv_PtrLcv_dnn_AtanhLayerG_getInnerPtr_const, cv_PtrLcv_dnn_AtanhLayerG_getInnerPtrMut } ptr_extern_ctor! { crate::dnn::AtanhLayer, cv_PtrLcv_dnn_AtanhLayerG_new_const_AtanhLayer } impl core::Ptr { #[inline] pub fn as_raw_PtrOfAtanhLayer(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfAtanhLayer(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::dnn::AtanhLayerTraitConst for core::Ptr { #[inline] fn as_raw_AtanhLayer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::AtanhLayerTrait for core::Ptr { #[inline] fn as_raw_mut_AtanhLayer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_AtanhLayerG_to_PtrOfAlgorithm } impl crate::dnn::ActivationLayerTraitConst for core::Ptr { #[inline] fn as_raw_ActivationLayer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::ActivationLayerTrait for core::Ptr { #[inline] fn as_raw_mut_ActivationLayer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_AtanhLayerG_to_PtrOfActivationLayer } impl crate::dnn::LayerTraitConst for core::Ptr { #[inline] fn as_raw_Layer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::LayerTrait for core::Ptr { #[inline] fn as_raw_mut_Layer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_AtanhLayerG_to_PtrOfLayer } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfAtanhLayer") .field("blobs", &crate::dnn::LayerTraitConst::blobs(self)) .field("name", &crate::dnn::LayerTraitConst::name(self)) .field("typ", &crate::dnn::LayerTraitConst::typ(self)) .field("preferable_target", &crate::dnn::LayerTraitConst::preferable_target(self)) .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfAttentionLayer = core::Ptr; ptr_extern! { crate::dnn::AttentionLayer, cv_PtrLcv_dnn_AttentionLayerG_new_null_const, cv_PtrLcv_dnn_AttentionLayerG_delete, cv_PtrLcv_dnn_AttentionLayerG_getInnerPtr_const, cv_PtrLcv_dnn_AttentionLayerG_getInnerPtrMut } ptr_extern_ctor! { crate::dnn::AttentionLayer, cv_PtrLcv_dnn_AttentionLayerG_new_const_AttentionLayer } impl core::Ptr { #[inline] pub fn as_raw_PtrOfAttentionLayer(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfAttentionLayer(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::dnn::AttentionLayerTraitConst for core::Ptr { #[inline] fn as_raw_AttentionLayer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::AttentionLayerTrait for core::Ptr { #[inline] fn as_raw_mut_AttentionLayer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_AttentionLayerG_to_PtrOfAlgorithm } impl crate::dnn::LayerTraitConst for core::Ptr { #[inline] fn as_raw_Layer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::LayerTrait for core::Ptr { #[inline] fn as_raw_mut_Layer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_AttentionLayerG_to_PtrOfLayer } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfAttentionLayer") .field("blobs", &crate::dnn::LayerTraitConst::blobs(self)) .field("name", &crate::dnn::LayerTraitConst::name(self)) .field("typ", &crate::dnn::LayerTraitConst::typ(self)) .field("preferable_target", &crate::dnn::LayerTraitConst::preferable_target(self)) .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfBNLLLayer = core::Ptr; ptr_extern! { crate::dnn::BNLLLayer, cv_PtrLcv_dnn_BNLLLayerG_new_null_const, cv_PtrLcv_dnn_BNLLLayerG_delete, cv_PtrLcv_dnn_BNLLLayerG_getInnerPtr_const, cv_PtrLcv_dnn_BNLLLayerG_getInnerPtrMut } ptr_extern_ctor! { crate::dnn::BNLLLayer, cv_PtrLcv_dnn_BNLLLayerG_new_const_BNLLLayer } impl core::Ptr { #[inline] pub fn as_raw_PtrOfBNLLLayer(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfBNLLLayer(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::dnn::BNLLLayerTraitConst for core::Ptr { #[inline] fn as_raw_BNLLLayer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::BNLLLayerTrait for core::Ptr { #[inline] fn as_raw_mut_BNLLLayer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_BNLLLayerG_to_PtrOfAlgorithm } impl crate::dnn::ActivationLayerTraitConst for core::Ptr { #[inline] fn as_raw_ActivationLayer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::ActivationLayerTrait for core::Ptr { #[inline] fn as_raw_mut_ActivationLayer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_BNLLLayerG_to_PtrOfActivationLayer } impl crate::dnn::LayerTraitConst for core::Ptr { #[inline] fn as_raw_Layer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::LayerTrait for core::Ptr { #[inline] fn as_raw_mut_Layer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_BNLLLayerG_to_PtrOfLayer } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfBNLLLayer") .field("blobs", &crate::dnn::LayerTraitConst::blobs(self)) .field("name", &crate::dnn::LayerTraitConst::name(self)) .field("typ", &crate::dnn::LayerTraitConst::typ(self)) .field("preferable_target", &crate::dnn::LayerTraitConst::preferable_target(self)) .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfBackendNode = core::Ptr; ptr_extern! { crate::dnn::BackendNode, cv_PtrLcv_dnn_BackendNodeG_new_null_const, cv_PtrLcv_dnn_BackendNodeG_delete, cv_PtrLcv_dnn_BackendNodeG_getInnerPtr_const, cv_PtrLcv_dnn_BackendNodeG_getInnerPtrMut } ptr_extern_ctor! { crate::dnn::BackendNode, cv_PtrLcv_dnn_BackendNodeG_new_const_BackendNode } impl core::Ptr { #[inline] pub fn as_raw_PtrOfBackendNode(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfBackendNode(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::dnn::BackendNodeTraitConst for core::Ptr { #[inline] fn as_raw_BackendNode(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::BackendNodeTrait for core::Ptr { #[inline] fn as_raw_mut_BackendNode(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfBackendNode") .field("backend_id", &crate::dnn::BackendNodeTraitConst::backend_id(self)) .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfBackendWrapper = core::Ptr; ptr_extern! { crate::dnn::BackendWrapper, cv_PtrLcv_dnn_BackendWrapperG_new_null_const, cv_PtrLcv_dnn_BackendWrapperG_delete, cv_PtrLcv_dnn_BackendWrapperG_getInnerPtr_const, cv_PtrLcv_dnn_BackendWrapperG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfBackendWrapper(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfBackendWrapper(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::dnn::BackendWrapperTraitConst for core::Ptr { #[inline] fn as_raw_BackendWrapper(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::BackendWrapperTrait for core::Ptr { #[inline] fn as_raw_mut_BackendWrapper(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfBackendWrapper") .field("backend_id", &crate::dnn::BackendWrapperTraitConst::backend_id(self)) .field("target_id", &crate::dnn::BackendWrapperTraitConst::target_id(self)) .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfBaseConvolutionLayer = core::Ptr; ptr_extern! { crate::dnn::BaseConvolutionLayer, cv_PtrLcv_dnn_BaseConvolutionLayerG_new_null_const, cv_PtrLcv_dnn_BaseConvolutionLayerG_delete, cv_PtrLcv_dnn_BaseConvolutionLayerG_getInnerPtr_const, cv_PtrLcv_dnn_BaseConvolutionLayerG_getInnerPtrMut } ptr_extern_ctor! { crate::dnn::BaseConvolutionLayer, cv_PtrLcv_dnn_BaseConvolutionLayerG_new_const_BaseConvolutionLayer } impl core::Ptr { #[inline] pub fn as_raw_PtrOfBaseConvolutionLayer(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfBaseConvolutionLayer(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::dnn::BaseConvolutionLayerTraitConst for core::Ptr { #[inline] fn as_raw_BaseConvolutionLayer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::BaseConvolutionLayerTrait for core::Ptr { #[inline] fn as_raw_mut_BaseConvolutionLayer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_BaseConvolutionLayerG_to_PtrOfAlgorithm } impl crate::dnn::LayerTraitConst for core::Ptr { #[inline] fn as_raw_Layer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::LayerTrait for core::Ptr { #[inline] fn as_raw_mut_Layer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_BaseConvolutionLayerG_to_PtrOfLayer } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfBaseConvolutionLayer") .field("kernel", &crate::dnn::BaseConvolutionLayerTraitConst::kernel(self)) .field("stride", &crate::dnn::BaseConvolutionLayerTraitConst::stride(self)) .field("pad", &crate::dnn::BaseConvolutionLayerTraitConst::pad(self)) .field("dilation", &crate::dnn::BaseConvolutionLayerTraitConst::dilation(self)) .field("adjust_pad", &crate::dnn::BaseConvolutionLayerTraitConst::adjust_pad(self)) .field("adjust_pads", &crate::dnn::BaseConvolutionLayerTraitConst::adjust_pads(self)) .field("kernel_size", &crate::dnn::BaseConvolutionLayerTraitConst::kernel_size(self)) .field("strides", &crate::dnn::BaseConvolutionLayerTraitConst::strides(self)) .field("dilations", &crate::dnn::BaseConvolutionLayerTraitConst::dilations(self)) .field("pads_begin", &crate::dnn::BaseConvolutionLayerTraitConst::pads_begin(self)) .field("pads_end", &crate::dnn::BaseConvolutionLayerTraitConst::pads_end(self)) .field("pad_mode", &crate::dnn::BaseConvolutionLayerTraitConst::pad_mode(self)) .field("num_output", &crate::dnn::BaseConvolutionLayerTraitConst::num_output(self)) .field("blobs", &crate::dnn::LayerTraitConst::blobs(self)) .field("name", &crate::dnn::LayerTraitConst::name(self)) .field("typ", &crate::dnn::LayerTraitConst::typ(self)) .field("preferable_target", &crate::dnn::LayerTraitConst::preferable_target(self)) .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfBatchNormLayer = core::Ptr; ptr_extern! { crate::dnn::BatchNormLayer, cv_PtrLcv_dnn_BatchNormLayerG_new_null_const, cv_PtrLcv_dnn_BatchNormLayerG_delete, cv_PtrLcv_dnn_BatchNormLayerG_getInnerPtr_const, cv_PtrLcv_dnn_BatchNormLayerG_getInnerPtrMut } ptr_extern_ctor! { crate::dnn::BatchNormLayer, cv_PtrLcv_dnn_BatchNormLayerG_new_const_BatchNormLayer } impl core::Ptr { #[inline] pub fn as_raw_PtrOfBatchNormLayer(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfBatchNormLayer(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::dnn::BatchNormLayerTraitConst for core::Ptr { #[inline] fn as_raw_BatchNormLayer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::BatchNormLayerTrait for core::Ptr { #[inline] fn as_raw_mut_BatchNormLayer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_BatchNormLayerG_to_PtrOfAlgorithm } impl crate::dnn::ActivationLayerTraitConst for core::Ptr { #[inline] fn as_raw_ActivationLayer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::ActivationLayerTrait for core::Ptr { #[inline] fn as_raw_mut_ActivationLayer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_BatchNormLayerG_to_PtrOfActivationLayer } impl crate::dnn::LayerTraitConst for core::Ptr { #[inline] fn as_raw_Layer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::LayerTrait for core::Ptr { #[inline] fn as_raw_mut_Layer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_BatchNormLayerG_to_PtrOfLayer } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfBatchNormLayer") .field("has_weights", &crate::dnn::BatchNormLayerTraitConst::has_weights(self)) .field("has_bias", &crate::dnn::BatchNormLayerTraitConst::has_bias(self)) .field("epsilon", &crate::dnn::BatchNormLayerTraitConst::epsilon(self)) .field("blobs", &crate::dnn::LayerTraitConst::blobs(self)) .field("name", &crate::dnn::LayerTraitConst::name(self)) .field("typ", &crate::dnn::LayerTraitConst::typ(self)) .field("preferable_target", &crate::dnn::LayerTraitConst::preferable_target(self)) .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfBatchNormLayerInt8 = core::Ptr; ptr_extern! { crate::dnn::BatchNormLayerInt8, cv_PtrLcv_dnn_BatchNormLayerInt8G_new_null_const, cv_PtrLcv_dnn_BatchNormLayerInt8G_delete, cv_PtrLcv_dnn_BatchNormLayerInt8G_getInnerPtr_const, cv_PtrLcv_dnn_BatchNormLayerInt8G_getInnerPtrMut } ptr_extern_ctor! { crate::dnn::BatchNormLayerInt8, cv_PtrLcv_dnn_BatchNormLayerInt8G_new_const_BatchNormLayerInt8 } impl core::Ptr { #[inline] pub fn as_raw_PtrOfBatchNormLayerInt8(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfBatchNormLayerInt8(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::dnn::BatchNormLayerInt8TraitConst for core::Ptr { #[inline] fn as_raw_BatchNormLayerInt8(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::BatchNormLayerInt8Trait for core::Ptr { #[inline] fn as_raw_mut_BatchNormLayerInt8(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_BatchNormLayerInt8G_to_PtrOfAlgorithm } impl crate::dnn::ActivationLayerTraitConst for core::Ptr { #[inline] fn as_raw_ActivationLayer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::ActivationLayerTrait for core::Ptr { #[inline] fn as_raw_mut_ActivationLayer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_BatchNormLayerInt8G_to_PtrOfActivationLayer } impl crate::dnn::BatchNormLayerTraitConst for core::Ptr { #[inline] fn as_raw_BatchNormLayer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::BatchNormLayerTrait for core::Ptr { #[inline] fn as_raw_mut_BatchNormLayer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_BatchNormLayerInt8G_to_PtrOfBatchNormLayer } impl crate::dnn::LayerTraitConst for core::Ptr { #[inline] fn as_raw_Layer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::LayerTrait for core::Ptr { #[inline] fn as_raw_mut_Layer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_BatchNormLayerInt8G_to_PtrOfLayer } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfBatchNormLayerInt8") .field("input_sc", &crate::dnn::BatchNormLayerInt8TraitConst::input_sc(self)) .field("output_sc", &crate::dnn::BatchNormLayerInt8TraitConst::output_sc(self)) .field("input_zp", &crate::dnn::BatchNormLayerInt8TraitConst::input_zp(self)) .field("output_zp", &crate::dnn::BatchNormLayerInt8TraitConst::output_zp(self)) .field("has_weights", &crate::dnn::BatchNormLayerTraitConst::has_weights(self)) .field("has_bias", &crate::dnn::BatchNormLayerTraitConst::has_bias(self)) .field("epsilon", &crate::dnn::BatchNormLayerTraitConst::epsilon(self)) .field("blobs", &crate::dnn::LayerTraitConst::blobs(self)) .field("name", &crate::dnn::LayerTraitConst::name(self)) .field("typ", &crate::dnn::LayerTraitConst::typ(self)) .field("preferable_target", &crate::dnn::LayerTraitConst::preferable_target(self)) .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfBlankLayer = core::Ptr; ptr_extern! { crate::dnn::BlankLayer, cv_PtrLcv_dnn_BlankLayerG_new_null_const, cv_PtrLcv_dnn_BlankLayerG_delete, cv_PtrLcv_dnn_BlankLayerG_getInnerPtr_const, cv_PtrLcv_dnn_BlankLayerG_getInnerPtrMut } ptr_extern_ctor! { crate::dnn::BlankLayer, cv_PtrLcv_dnn_BlankLayerG_new_const_BlankLayer } impl core::Ptr { #[inline] pub fn as_raw_PtrOfBlankLayer(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfBlankLayer(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::dnn::BlankLayerTraitConst for core::Ptr { #[inline] fn as_raw_BlankLayer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::BlankLayerTrait for core::Ptr { #[inline] fn as_raw_mut_BlankLayer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_BlankLayerG_to_PtrOfAlgorithm } impl crate::dnn::LayerTraitConst for core::Ptr { #[inline] fn as_raw_Layer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::LayerTrait for core::Ptr { #[inline] fn as_raw_mut_Layer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_BlankLayerG_to_PtrOfLayer } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfBlankLayer") .field("blobs", &crate::dnn::LayerTraitConst::blobs(self)) .field("name", &crate::dnn::LayerTraitConst::name(self)) .field("typ", &crate::dnn::LayerTraitConst::typ(self)) .field("preferable_target", &crate::dnn::LayerTraitConst::preferable_target(self)) .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfCeilLayer = core::Ptr; ptr_extern! { crate::dnn::CeilLayer, cv_PtrLcv_dnn_CeilLayerG_new_null_const, cv_PtrLcv_dnn_CeilLayerG_delete, cv_PtrLcv_dnn_CeilLayerG_getInnerPtr_const, cv_PtrLcv_dnn_CeilLayerG_getInnerPtrMut } ptr_extern_ctor! { crate::dnn::CeilLayer, cv_PtrLcv_dnn_CeilLayerG_new_const_CeilLayer } impl core::Ptr { #[inline] pub fn as_raw_PtrOfCeilLayer(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfCeilLayer(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::dnn::CeilLayerTraitConst for core::Ptr { #[inline] fn as_raw_CeilLayer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::CeilLayerTrait for core::Ptr { #[inline] fn as_raw_mut_CeilLayer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_CeilLayerG_to_PtrOfAlgorithm } impl crate::dnn::ActivationLayerTraitConst for core::Ptr { #[inline] fn as_raw_ActivationLayer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::ActivationLayerTrait for core::Ptr { #[inline] fn as_raw_mut_ActivationLayer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_CeilLayerG_to_PtrOfActivationLayer } impl crate::dnn::LayerTraitConst for core::Ptr { #[inline] fn as_raw_Layer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::LayerTrait for core::Ptr { #[inline] fn as_raw_mut_Layer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_CeilLayerG_to_PtrOfLayer } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfCeilLayer") .field("blobs", &crate::dnn::LayerTraitConst::blobs(self)) .field("name", &crate::dnn::LayerTraitConst::name(self)) .field("typ", &crate::dnn::LayerTraitConst::typ(self)) .field("preferable_target", &crate::dnn::LayerTraitConst::preferable_target(self)) .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfCeluLayer = core::Ptr; ptr_extern! { crate::dnn::CeluLayer, cv_PtrLcv_dnn_CeluLayerG_new_null_const, cv_PtrLcv_dnn_CeluLayerG_delete, cv_PtrLcv_dnn_CeluLayerG_getInnerPtr_const, cv_PtrLcv_dnn_CeluLayerG_getInnerPtrMut } ptr_extern_ctor! { crate::dnn::CeluLayer, cv_PtrLcv_dnn_CeluLayerG_new_const_CeluLayer } impl core::Ptr { #[inline] pub fn as_raw_PtrOfCeluLayer(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfCeluLayer(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::dnn::CeluLayerTraitConst for core::Ptr { #[inline] fn as_raw_CeluLayer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::CeluLayerTrait for core::Ptr { #[inline] fn as_raw_mut_CeluLayer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_CeluLayerG_to_PtrOfAlgorithm } impl crate::dnn::ActivationLayerTraitConst for core::Ptr { #[inline] fn as_raw_ActivationLayer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::ActivationLayerTrait for core::Ptr { #[inline] fn as_raw_mut_ActivationLayer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_CeluLayerG_to_PtrOfActivationLayer } impl crate::dnn::LayerTraitConst for core::Ptr { #[inline] fn as_raw_Layer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::LayerTrait for core::Ptr { #[inline] fn as_raw_mut_Layer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_CeluLayerG_to_PtrOfLayer } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfCeluLayer") .field("alpha", &crate::dnn::CeluLayerTraitConst::alpha(self)) .field("blobs", &crate::dnn::LayerTraitConst::blobs(self)) .field("name", &crate::dnn::LayerTraitConst::name(self)) .field("typ", &crate::dnn::LayerTraitConst::typ(self)) .field("preferable_target", &crate::dnn::LayerTraitConst::preferable_target(self)) .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfChannelsPReLULayer = core::Ptr; ptr_extern! { crate::dnn::ChannelsPReLULayer, cv_PtrLcv_dnn_ChannelsPReLULayerG_new_null_const, cv_PtrLcv_dnn_ChannelsPReLULayerG_delete, cv_PtrLcv_dnn_ChannelsPReLULayerG_getInnerPtr_const, cv_PtrLcv_dnn_ChannelsPReLULayerG_getInnerPtrMut } ptr_extern_ctor! { crate::dnn::ChannelsPReLULayer, cv_PtrLcv_dnn_ChannelsPReLULayerG_new_const_ChannelsPReLULayer } impl core::Ptr { #[inline] pub fn as_raw_PtrOfChannelsPReLULayer(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfChannelsPReLULayer(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::dnn::ChannelsPReLULayerTraitConst for core::Ptr { #[inline] fn as_raw_ChannelsPReLULayer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::ChannelsPReLULayerTrait for core::Ptr { #[inline] fn as_raw_mut_ChannelsPReLULayer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_ChannelsPReLULayerG_to_PtrOfAlgorithm } impl crate::dnn::ActivationLayerTraitConst for core::Ptr { #[inline] fn as_raw_ActivationLayer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::ActivationLayerTrait for core::Ptr { #[inline] fn as_raw_mut_ActivationLayer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_ChannelsPReLULayerG_to_PtrOfActivationLayer } impl crate::dnn::LayerTraitConst for core::Ptr { #[inline] fn as_raw_Layer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::LayerTrait for core::Ptr { #[inline] fn as_raw_mut_Layer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_ChannelsPReLULayerG_to_PtrOfLayer } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfChannelsPReLULayer") .field("blobs", &crate::dnn::LayerTraitConst::blobs(self)) .field("name", &crate::dnn::LayerTraitConst::name(self)) .field("typ", &crate::dnn::LayerTraitConst::typ(self)) .field("preferable_target", &crate::dnn::LayerTraitConst::preferable_target(self)) .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfCompareLayer = core::Ptr; ptr_extern! { crate::dnn::CompareLayer, cv_PtrLcv_dnn_CompareLayerG_new_null_const, cv_PtrLcv_dnn_CompareLayerG_delete, cv_PtrLcv_dnn_CompareLayerG_getInnerPtr_const, cv_PtrLcv_dnn_CompareLayerG_getInnerPtrMut } ptr_extern_ctor! { crate::dnn::CompareLayer, cv_PtrLcv_dnn_CompareLayerG_new_const_CompareLayer } impl core::Ptr { #[inline] pub fn as_raw_PtrOfCompareLayer(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfCompareLayer(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::dnn::CompareLayerTraitConst for core::Ptr { #[inline] fn as_raw_CompareLayer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::CompareLayerTrait for core::Ptr { #[inline] fn as_raw_mut_CompareLayer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_CompareLayerG_to_PtrOfAlgorithm } impl crate::dnn::LayerTraitConst for core::Ptr { #[inline] fn as_raw_Layer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::LayerTrait for core::Ptr { #[inline] fn as_raw_mut_Layer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_CompareLayerG_to_PtrOfLayer } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfCompareLayer") .field("blobs", &crate::dnn::LayerTraitConst::blobs(self)) .field("name", &crate::dnn::LayerTraitConst::name(self)) .field("typ", &crate::dnn::LayerTraitConst::typ(self)) .field("preferable_target", &crate::dnn::LayerTraitConst::preferable_target(self)) .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfConcatLayer = core::Ptr; ptr_extern! { crate::dnn::ConcatLayer, cv_PtrLcv_dnn_ConcatLayerG_new_null_const, cv_PtrLcv_dnn_ConcatLayerG_delete, cv_PtrLcv_dnn_ConcatLayerG_getInnerPtr_const, cv_PtrLcv_dnn_ConcatLayerG_getInnerPtrMut } ptr_extern_ctor! { crate::dnn::ConcatLayer, cv_PtrLcv_dnn_ConcatLayerG_new_const_ConcatLayer } impl core::Ptr { #[inline] pub fn as_raw_PtrOfConcatLayer(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfConcatLayer(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::dnn::ConcatLayerTraitConst for core::Ptr { #[inline] fn as_raw_ConcatLayer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::ConcatLayerTrait for core::Ptr { #[inline] fn as_raw_mut_ConcatLayer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_ConcatLayerG_to_PtrOfAlgorithm } impl crate::dnn::LayerTraitConst for core::Ptr { #[inline] fn as_raw_Layer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::LayerTrait for core::Ptr { #[inline] fn as_raw_mut_Layer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_ConcatLayerG_to_PtrOfLayer } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfConcatLayer") .field("axis", &crate::dnn::ConcatLayerTraitConst::axis(self)) .field("padding", &crate::dnn::ConcatLayerTraitConst::padding(self)) .field("padding_value", &crate::dnn::ConcatLayerTraitConst::padding_value(self)) .field("blobs", &crate::dnn::LayerTraitConst::blobs(self)) .field("name", &crate::dnn::LayerTraitConst::name(self)) .field("typ", &crate::dnn::LayerTraitConst::typ(self)) .field("preferable_target", &crate::dnn::LayerTraitConst::preferable_target(self)) .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfConstLayer = core::Ptr; ptr_extern! { crate::dnn::ConstLayer, cv_PtrLcv_dnn_ConstLayerG_new_null_const, cv_PtrLcv_dnn_ConstLayerG_delete, cv_PtrLcv_dnn_ConstLayerG_getInnerPtr_const, cv_PtrLcv_dnn_ConstLayerG_getInnerPtrMut } ptr_extern_ctor! { crate::dnn::ConstLayer, cv_PtrLcv_dnn_ConstLayerG_new_const_ConstLayer } impl core::Ptr { #[inline] pub fn as_raw_PtrOfConstLayer(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfConstLayer(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::dnn::ConstLayerTraitConst for core::Ptr { #[inline] fn as_raw_ConstLayer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::ConstLayerTrait for core::Ptr { #[inline] fn as_raw_mut_ConstLayer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_ConstLayerG_to_PtrOfAlgorithm } impl crate::dnn::LayerTraitConst for core::Ptr { #[inline] fn as_raw_Layer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::LayerTrait for core::Ptr { #[inline] fn as_raw_mut_Layer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_ConstLayerG_to_PtrOfLayer } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfConstLayer") .field("blobs", &crate::dnn::LayerTraitConst::blobs(self)) .field("name", &crate::dnn::LayerTraitConst::name(self)) .field("typ", &crate::dnn::LayerTraitConst::typ(self)) .field("preferable_target", &crate::dnn::LayerTraitConst::preferable_target(self)) .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfConvolutionLayer = core::Ptr; ptr_extern! { crate::dnn::ConvolutionLayer, cv_PtrLcv_dnn_ConvolutionLayerG_new_null_const, cv_PtrLcv_dnn_ConvolutionLayerG_delete, cv_PtrLcv_dnn_ConvolutionLayerG_getInnerPtr_const, cv_PtrLcv_dnn_ConvolutionLayerG_getInnerPtrMut } ptr_extern_ctor! { crate::dnn::ConvolutionLayer, cv_PtrLcv_dnn_ConvolutionLayerG_new_const_ConvolutionLayer } impl core::Ptr { #[inline] pub fn as_raw_PtrOfConvolutionLayer(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfConvolutionLayer(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::dnn::ConvolutionLayerTraitConst for core::Ptr { #[inline] fn as_raw_ConvolutionLayer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::ConvolutionLayerTrait for core::Ptr { #[inline] fn as_raw_mut_ConvolutionLayer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_ConvolutionLayerG_to_PtrOfAlgorithm } impl crate::dnn::BaseConvolutionLayerTraitConst for core::Ptr { #[inline] fn as_raw_BaseConvolutionLayer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::BaseConvolutionLayerTrait for core::Ptr { #[inline] fn as_raw_mut_BaseConvolutionLayer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_ConvolutionLayerG_to_PtrOfBaseConvolutionLayer } impl crate::dnn::LayerTraitConst for core::Ptr { #[inline] fn as_raw_Layer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::LayerTrait for core::Ptr { #[inline] fn as_raw_mut_Layer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_ConvolutionLayerG_to_PtrOfLayer } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfConvolutionLayer") .field("fused_activation", &crate::dnn::ConvolutionLayerTraitConst::fused_activation(self)) .field("fused_add", &crate::dnn::ConvolutionLayerTraitConst::fused_add(self)) .field("use_winograd", &crate::dnn::ConvolutionLayerTraitConst::use_winograd(self)) .field("kernel", &crate::dnn::BaseConvolutionLayerTraitConst::kernel(self)) .field("stride", &crate::dnn::BaseConvolutionLayerTraitConst::stride(self)) .field("pad", &crate::dnn::BaseConvolutionLayerTraitConst::pad(self)) .field("dilation", &crate::dnn::BaseConvolutionLayerTraitConst::dilation(self)) .field("adjust_pad", &crate::dnn::BaseConvolutionLayerTraitConst::adjust_pad(self)) .field("adjust_pads", &crate::dnn::BaseConvolutionLayerTraitConst::adjust_pads(self)) .field("kernel_size", &crate::dnn::BaseConvolutionLayerTraitConst::kernel_size(self)) .field("strides", &crate::dnn::BaseConvolutionLayerTraitConst::strides(self)) .field("dilations", &crate::dnn::BaseConvolutionLayerTraitConst::dilations(self)) .field("pads_begin", &crate::dnn::BaseConvolutionLayerTraitConst::pads_begin(self)) .field("pads_end", &crate::dnn::BaseConvolutionLayerTraitConst::pads_end(self)) .field("pad_mode", &crate::dnn::BaseConvolutionLayerTraitConst::pad_mode(self)) .field("num_output", &crate::dnn::BaseConvolutionLayerTraitConst::num_output(self)) .field("blobs", &crate::dnn::LayerTraitConst::blobs(self)) .field("name", &crate::dnn::LayerTraitConst::name(self)) .field("typ", &crate::dnn::LayerTraitConst::typ(self)) .field("preferable_target", &crate::dnn::LayerTraitConst::preferable_target(self)) .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfConvolutionLayerInt8 = core::Ptr; ptr_extern! { crate::dnn::ConvolutionLayerInt8, cv_PtrLcv_dnn_ConvolutionLayerInt8G_new_null_const, cv_PtrLcv_dnn_ConvolutionLayerInt8G_delete, cv_PtrLcv_dnn_ConvolutionLayerInt8G_getInnerPtr_const, cv_PtrLcv_dnn_ConvolutionLayerInt8G_getInnerPtrMut } ptr_extern_ctor! { crate::dnn::ConvolutionLayerInt8, cv_PtrLcv_dnn_ConvolutionLayerInt8G_new_const_ConvolutionLayerInt8 } impl core::Ptr { #[inline] pub fn as_raw_PtrOfConvolutionLayerInt8(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfConvolutionLayerInt8(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::dnn::ConvolutionLayerInt8TraitConst for core::Ptr { #[inline] fn as_raw_ConvolutionLayerInt8(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::ConvolutionLayerInt8Trait for core::Ptr { #[inline] fn as_raw_mut_ConvolutionLayerInt8(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_ConvolutionLayerInt8G_to_PtrOfAlgorithm } impl crate::dnn::BaseConvolutionLayerTraitConst for core::Ptr { #[inline] fn as_raw_BaseConvolutionLayer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::BaseConvolutionLayerTrait for core::Ptr { #[inline] fn as_raw_mut_BaseConvolutionLayer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_ConvolutionLayerInt8G_to_PtrOfBaseConvolutionLayer } impl crate::dnn::LayerTraitConst for core::Ptr { #[inline] fn as_raw_Layer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::LayerTrait for core::Ptr { #[inline] fn as_raw_mut_Layer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_ConvolutionLayerInt8G_to_PtrOfLayer } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfConvolutionLayerInt8") .field("input_zp", &crate::dnn::ConvolutionLayerInt8TraitConst::input_zp(self)) .field("output_zp", &crate::dnn::ConvolutionLayerInt8TraitConst::output_zp(self)) .field("input_sc", &crate::dnn::ConvolutionLayerInt8TraitConst::input_sc(self)) .field("output_sc", &crate::dnn::ConvolutionLayerInt8TraitConst::output_sc(self)) .field("per_channel", &crate::dnn::ConvolutionLayerInt8TraitConst::per_channel(self)) .field("use_winograd", &crate::dnn::ConvolutionLayerInt8TraitConst::use_winograd(self)) .field("kernel", &crate::dnn::BaseConvolutionLayerTraitConst::kernel(self)) .field("stride", &crate::dnn::BaseConvolutionLayerTraitConst::stride(self)) .field("pad", &crate::dnn::BaseConvolutionLayerTraitConst::pad(self)) .field("dilation", &crate::dnn::BaseConvolutionLayerTraitConst::dilation(self)) .field("adjust_pad", &crate::dnn::BaseConvolutionLayerTraitConst::adjust_pad(self)) .field("adjust_pads", &crate::dnn::BaseConvolutionLayerTraitConst::adjust_pads(self)) .field("kernel_size", &crate::dnn::BaseConvolutionLayerTraitConst::kernel_size(self)) .field("strides", &crate::dnn::BaseConvolutionLayerTraitConst::strides(self)) .field("dilations", &crate::dnn::BaseConvolutionLayerTraitConst::dilations(self)) .field("pads_begin", &crate::dnn::BaseConvolutionLayerTraitConst::pads_begin(self)) .field("pads_end", &crate::dnn::BaseConvolutionLayerTraitConst::pads_end(self)) .field("pad_mode", &crate::dnn::BaseConvolutionLayerTraitConst::pad_mode(self)) .field("num_output", &crate::dnn::BaseConvolutionLayerTraitConst::num_output(self)) .field("blobs", &crate::dnn::LayerTraitConst::blobs(self)) .field("name", &crate::dnn::LayerTraitConst::name(self)) .field("typ", &crate::dnn::LayerTraitConst::typ(self)) .field("preferable_target", &crate::dnn::LayerTraitConst::preferable_target(self)) .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfCorrelationLayer = core::Ptr; ptr_extern! { crate::dnn::CorrelationLayer, cv_PtrLcv_dnn_CorrelationLayerG_new_null_const, cv_PtrLcv_dnn_CorrelationLayerG_delete, cv_PtrLcv_dnn_CorrelationLayerG_getInnerPtr_const, cv_PtrLcv_dnn_CorrelationLayerG_getInnerPtrMut } ptr_extern_ctor! { crate::dnn::CorrelationLayer, cv_PtrLcv_dnn_CorrelationLayerG_new_const_CorrelationLayer } impl core::Ptr { #[inline] pub fn as_raw_PtrOfCorrelationLayer(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfCorrelationLayer(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::dnn::CorrelationLayerTraitConst for core::Ptr { #[inline] fn as_raw_CorrelationLayer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::CorrelationLayerTrait for core::Ptr { #[inline] fn as_raw_mut_CorrelationLayer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_CorrelationLayerG_to_PtrOfAlgorithm } impl crate::dnn::LayerTraitConst for core::Ptr { #[inline] fn as_raw_Layer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::LayerTrait for core::Ptr { #[inline] fn as_raw_mut_Layer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_CorrelationLayerG_to_PtrOfLayer } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfCorrelationLayer") .field("blobs", &crate::dnn::LayerTraitConst::blobs(self)) .field("name", &crate::dnn::LayerTraitConst::name(self)) .field("typ", &crate::dnn::LayerTraitConst::typ(self)) .field("preferable_target", &crate::dnn::LayerTraitConst::preferable_target(self)) .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfCosLayer = core::Ptr; ptr_extern! { crate::dnn::CosLayer, cv_PtrLcv_dnn_CosLayerG_new_null_const, cv_PtrLcv_dnn_CosLayerG_delete, cv_PtrLcv_dnn_CosLayerG_getInnerPtr_const, cv_PtrLcv_dnn_CosLayerG_getInnerPtrMut } ptr_extern_ctor! { crate::dnn::CosLayer, cv_PtrLcv_dnn_CosLayerG_new_const_CosLayer } impl core::Ptr { #[inline] pub fn as_raw_PtrOfCosLayer(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfCosLayer(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::dnn::CosLayerTraitConst for core::Ptr { #[inline] fn as_raw_CosLayer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::CosLayerTrait for core::Ptr { #[inline] fn as_raw_mut_CosLayer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_CosLayerG_to_PtrOfAlgorithm } impl crate::dnn::ActivationLayerTraitConst for core::Ptr { #[inline] fn as_raw_ActivationLayer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::ActivationLayerTrait for core::Ptr { #[inline] fn as_raw_mut_ActivationLayer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_CosLayerG_to_PtrOfActivationLayer } impl crate::dnn::LayerTraitConst for core::Ptr { #[inline] fn as_raw_Layer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::LayerTrait for core::Ptr { #[inline] fn as_raw_mut_Layer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_CosLayerG_to_PtrOfLayer } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfCosLayer") .field("blobs", &crate::dnn::LayerTraitConst::blobs(self)) .field("name", &crate::dnn::LayerTraitConst::name(self)) .field("typ", &crate::dnn::LayerTraitConst::typ(self)) .field("preferable_target", &crate::dnn::LayerTraitConst::preferable_target(self)) .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfCoshLayer = core::Ptr; ptr_extern! { crate::dnn::CoshLayer, cv_PtrLcv_dnn_CoshLayerG_new_null_const, cv_PtrLcv_dnn_CoshLayerG_delete, cv_PtrLcv_dnn_CoshLayerG_getInnerPtr_const, cv_PtrLcv_dnn_CoshLayerG_getInnerPtrMut } ptr_extern_ctor! { crate::dnn::CoshLayer, cv_PtrLcv_dnn_CoshLayerG_new_const_CoshLayer } impl core::Ptr { #[inline] pub fn as_raw_PtrOfCoshLayer(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfCoshLayer(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::dnn::CoshLayerTraitConst for core::Ptr { #[inline] fn as_raw_CoshLayer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::CoshLayerTrait for core::Ptr { #[inline] fn as_raw_mut_CoshLayer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_CoshLayerG_to_PtrOfAlgorithm } impl crate::dnn::ActivationLayerTraitConst for core::Ptr { #[inline] fn as_raw_ActivationLayer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::ActivationLayerTrait for core::Ptr { #[inline] fn as_raw_mut_ActivationLayer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_CoshLayerG_to_PtrOfActivationLayer } impl crate::dnn::LayerTraitConst for core::Ptr { #[inline] fn as_raw_Layer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::LayerTrait for core::Ptr { #[inline] fn as_raw_mut_Layer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_CoshLayerG_to_PtrOfLayer } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfCoshLayer") .field("blobs", &crate::dnn::LayerTraitConst::blobs(self)) .field("name", &crate::dnn::LayerTraitConst::name(self)) .field("typ", &crate::dnn::LayerTraitConst::typ(self)) .field("preferable_target", &crate::dnn::LayerTraitConst::preferable_target(self)) .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfCropAndResizeLayer = core::Ptr; ptr_extern! { crate::dnn::CropAndResizeLayer, cv_PtrLcv_dnn_CropAndResizeLayerG_new_null_const, cv_PtrLcv_dnn_CropAndResizeLayerG_delete, cv_PtrLcv_dnn_CropAndResizeLayerG_getInnerPtr_const, cv_PtrLcv_dnn_CropAndResizeLayerG_getInnerPtrMut } ptr_extern_ctor! { crate::dnn::CropAndResizeLayer, cv_PtrLcv_dnn_CropAndResizeLayerG_new_const_CropAndResizeLayer } impl core::Ptr { #[inline] pub fn as_raw_PtrOfCropAndResizeLayer(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfCropAndResizeLayer(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::dnn::CropAndResizeLayerTraitConst for core::Ptr { #[inline] fn as_raw_CropAndResizeLayer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::CropAndResizeLayerTrait for core::Ptr { #[inline] fn as_raw_mut_CropAndResizeLayer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_CropAndResizeLayerG_to_PtrOfAlgorithm } impl crate::dnn::LayerTraitConst for core::Ptr { #[inline] fn as_raw_Layer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::LayerTrait for core::Ptr { #[inline] fn as_raw_mut_Layer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_CropAndResizeLayerG_to_PtrOfLayer } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfCropAndResizeLayer") .field("blobs", &crate::dnn::LayerTraitConst::blobs(self)) .field("name", &crate::dnn::LayerTraitConst::name(self)) .field("typ", &crate::dnn::LayerTraitConst::typ(self)) .field("preferable_target", &crate::dnn::LayerTraitConst::preferable_target(self)) .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfCropLayer = core::Ptr; ptr_extern! { crate::dnn::CropLayer, cv_PtrLcv_dnn_CropLayerG_new_null_const, cv_PtrLcv_dnn_CropLayerG_delete, cv_PtrLcv_dnn_CropLayerG_getInnerPtr_const, cv_PtrLcv_dnn_CropLayerG_getInnerPtrMut } ptr_extern_ctor! { crate::dnn::CropLayer, cv_PtrLcv_dnn_CropLayerG_new_const_CropLayer } impl core::Ptr { #[inline] pub fn as_raw_PtrOfCropLayer(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfCropLayer(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::dnn::CropLayerTraitConst for core::Ptr { #[inline] fn as_raw_CropLayer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::CropLayerTrait for core::Ptr { #[inline] fn as_raw_mut_CropLayer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_CropLayerG_to_PtrOfAlgorithm } impl crate::dnn::LayerTraitConst for core::Ptr { #[inline] fn as_raw_Layer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::LayerTrait for core::Ptr { #[inline] fn as_raw_mut_Layer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_CropLayerG_to_PtrOfLayer } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfCropLayer") .field("blobs", &crate::dnn::LayerTraitConst::blobs(self)) .field("name", &crate::dnn::LayerTraitConst::name(self)) .field("typ", &crate::dnn::LayerTraitConst::typ(self)) .field("preferable_target", &crate::dnn::LayerTraitConst::preferable_target(self)) .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfCumSumLayer = core::Ptr; ptr_extern! { crate::dnn::CumSumLayer, cv_PtrLcv_dnn_CumSumLayerG_new_null_const, cv_PtrLcv_dnn_CumSumLayerG_delete, cv_PtrLcv_dnn_CumSumLayerG_getInnerPtr_const, cv_PtrLcv_dnn_CumSumLayerG_getInnerPtrMut } ptr_extern_ctor! { crate::dnn::CumSumLayer, cv_PtrLcv_dnn_CumSumLayerG_new_const_CumSumLayer } impl core::Ptr { #[inline] pub fn as_raw_PtrOfCumSumLayer(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfCumSumLayer(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::dnn::CumSumLayerTraitConst for core::Ptr { #[inline] fn as_raw_CumSumLayer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::CumSumLayerTrait for core::Ptr { #[inline] fn as_raw_mut_CumSumLayer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_CumSumLayerG_to_PtrOfAlgorithm } impl crate::dnn::LayerTraitConst for core::Ptr { #[inline] fn as_raw_Layer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::LayerTrait for core::Ptr { #[inline] fn as_raw_mut_Layer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_CumSumLayerG_to_PtrOfLayer } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfCumSumLayer") .field("exclusive", &crate::dnn::CumSumLayerTraitConst::exclusive(self)) .field("reverse", &crate::dnn::CumSumLayerTraitConst::reverse(self)) .field("blobs", &crate::dnn::LayerTraitConst::blobs(self)) .field("name", &crate::dnn::LayerTraitConst::name(self)) .field("typ", &crate::dnn::LayerTraitConst::typ(self)) .field("preferable_target", &crate::dnn::LayerTraitConst::preferable_target(self)) .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfDataAugmentationLayer = core::Ptr; ptr_extern! { crate::dnn::DataAugmentationLayer, cv_PtrLcv_dnn_DataAugmentationLayerG_new_null_const, cv_PtrLcv_dnn_DataAugmentationLayerG_delete, cv_PtrLcv_dnn_DataAugmentationLayerG_getInnerPtr_const, cv_PtrLcv_dnn_DataAugmentationLayerG_getInnerPtrMut } ptr_extern_ctor! { crate::dnn::DataAugmentationLayer, cv_PtrLcv_dnn_DataAugmentationLayerG_new_const_DataAugmentationLayer } impl core::Ptr { #[inline] pub fn as_raw_PtrOfDataAugmentationLayer(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfDataAugmentationLayer(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::dnn::DataAugmentationLayerTraitConst for core::Ptr { #[inline] fn as_raw_DataAugmentationLayer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::DataAugmentationLayerTrait for core::Ptr { #[inline] fn as_raw_mut_DataAugmentationLayer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_DataAugmentationLayerG_to_PtrOfAlgorithm } impl crate::dnn::LayerTraitConst for core::Ptr { #[inline] fn as_raw_Layer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::LayerTrait for core::Ptr { #[inline] fn as_raw_mut_Layer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_DataAugmentationLayerG_to_PtrOfLayer } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfDataAugmentationLayer") .field("blobs", &crate::dnn::LayerTraitConst::blobs(self)) .field("name", &crate::dnn::LayerTraitConst::name(self)) .field("typ", &crate::dnn::LayerTraitConst::typ(self)) .field("preferable_target", &crate::dnn::LayerTraitConst::preferable_target(self)) .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfDeconvolutionLayer = core::Ptr; ptr_extern! { crate::dnn::DeconvolutionLayer, cv_PtrLcv_dnn_DeconvolutionLayerG_new_null_const, cv_PtrLcv_dnn_DeconvolutionLayerG_delete, cv_PtrLcv_dnn_DeconvolutionLayerG_getInnerPtr_const, cv_PtrLcv_dnn_DeconvolutionLayerG_getInnerPtrMut } ptr_extern_ctor! { crate::dnn::DeconvolutionLayer, cv_PtrLcv_dnn_DeconvolutionLayerG_new_const_DeconvolutionLayer } impl core::Ptr { #[inline] pub fn as_raw_PtrOfDeconvolutionLayer(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfDeconvolutionLayer(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::dnn::DeconvolutionLayerTraitConst for core::Ptr { #[inline] fn as_raw_DeconvolutionLayer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::DeconvolutionLayerTrait for core::Ptr { #[inline] fn as_raw_mut_DeconvolutionLayer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_DeconvolutionLayerG_to_PtrOfAlgorithm } impl crate::dnn::BaseConvolutionLayerTraitConst for core::Ptr { #[inline] fn as_raw_BaseConvolutionLayer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::BaseConvolutionLayerTrait for core::Ptr { #[inline] fn as_raw_mut_BaseConvolutionLayer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_DeconvolutionLayerG_to_PtrOfBaseConvolutionLayer } impl crate::dnn::LayerTraitConst for core::Ptr { #[inline] fn as_raw_Layer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::LayerTrait for core::Ptr { #[inline] fn as_raw_mut_Layer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_DeconvolutionLayerG_to_PtrOfLayer } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfDeconvolutionLayer") .field("kernel", &crate::dnn::BaseConvolutionLayerTraitConst::kernel(self)) .field("stride", &crate::dnn::BaseConvolutionLayerTraitConst::stride(self)) .field("pad", &crate::dnn::BaseConvolutionLayerTraitConst::pad(self)) .field("dilation", &crate::dnn::BaseConvolutionLayerTraitConst::dilation(self)) .field("adjust_pad", &crate::dnn::BaseConvolutionLayerTraitConst::adjust_pad(self)) .field("adjust_pads", &crate::dnn::BaseConvolutionLayerTraitConst::adjust_pads(self)) .field("kernel_size", &crate::dnn::BaseConvolutionLayerTraitConst::kernel_size(self)) .field("strides", &crate::dnn::BaseConvolutionLayerTraitConst::strides(self)) .field("dilations", &crate::dnn::BaseConvolutionLayerTraitConst::dilations(self)) .field("pads_begin", &crate::dnn::BaseConvolutionLayerTraitConst::pads_begin(self)) .field("pads_end", &crate::dnn::BaseConvolutionLayerTraitConst::pads_end(self)) .field("pad_mode", &crate::dnn::BaseConvolutionLayerTraitConst::pad_mode(self)) .field("num_output", &crate::dnn::BaseConvolutionLayerTraitConst::num_output(self)) .field("blobs", &crate::dnn::LayerTraitConst::blobs(self)) .field("name", &crate::dnn::LayerTraitConst::name(self)) .field("typ", &crate::dnn::LayerTraitConst::typ(self)) .field("preferable_target", &crate::dnn::LayerTraitConst::preferable_target(self)) .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfDequantizeLayer = core::Ptr; ptr_extern! { crate::dnn::DequantizeLayer, cv_PtrLcv_dnn_DequantizeLayerG_new_null_const, cv_PtrLcv_dnn_DequantizeLayerG_delete, cv_PtrLcv_dnn_DequantizeLayerG_getInnerPtr_const, cv_PtrLcv_dnn_DequantizeLayerG_getInnerPtrMut } ptr_extern_ctor! { crate::dnn::DequantizeLayer, cv_PtrLcv_dnn_DequantizeLayerG_new_const_DequantizeLayer } impl core::Ptr { #[inline] pub fn as_raw_PtrOfDequantizeLayer(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfDequantizeLayer(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::dnn::DequantizeLayerTraitConst for core::Ptr { #[inline] fn as_raw_DequantizeLayer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::DequantizeLayerTrait for core::Ptr { #[inline] fn as_raw_mut_DequantizeLayer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_DequantizeLayerG_to_PtrOfAlgorithm } impl crate::dnn::LayerTraitConst for core::Ptr { #[inline] fn as_raw_Layer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::LayerTrait for core::Ptr { #[inline] fn as_raw_mut_Layer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_DequantizeLayerG_to_PtrOfLayer } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfDequantizeLayer") .field("scales", &crate::dnn::DequantizeLayerTraitConst::scales(self)) .field("zeropoints", &crate::dnn::DequantizeLayerTraitConst::zeropoints(self)) .field("blobs", &crate::dnn::LayerTraitConst::blobs(self)) .field("name", &crate::dnn::LayerTraitConst::name(self)) .field("typ", &crate::dnn::LayerTraitConst::typ(self)) .field("preferable_target", &crate::dnn::LayerTraitConst::preferable_target(self)) .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfDetectionOutputLayer = core::Ptr; ptr_extern! { crate::dnn::DetectionOutputLayer, cv_PtrLcv_dnn_DetectionOutputLayerG_new_null_const, cv_PtrLcv_dnn_DetectionOutputLayerG_delete, cv_PtrLcv_dnn_DetectionOutputLayerG_getInnerPtr_const, cv_PtrLcv_dnn_DetectionOutputLayerG_getInnerPtrMut } ptr_extern_ctor! { crate::dnn::DetectionOutputLayer, cv_PtrLcv_dnn_DetectionOutputLayerG_new_const_DetectionOutputLayer } impl core::Ptr { #[inline] pub fn as_raw_PtrOfDetectionOutputLayer(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfDetectionOutputLayer(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::dnn::DetectionOutputLayerTraitConst for core::Ptr { #[inline] fn as_raw_DetectionOutputLayer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::DetectionOutputLayerTrait for core::Ptr { #[inline] fn as_raw_mut_DetectionOutputLayer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_DetectionOutputLayerG_to_PtrOfAlgorithm } impl crate::dnn::LayerTraitConst for core::Ptr { #[inline] fn as_raw_Layer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::LayerTrait for core::Ptr { #[inline] fn as_raw_mut_Layer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_DetectionOutputLayerG_to_PtrOfLayer } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfDetectionOutputLayer") .field("blobs", &crate::dnn::LayerTraitConst::blobs(self)) .field("name", &crate::dnn::LayerTraitConst::name(self)) .field("typ", &crate::dnn::LayerTraitConst::typ(self)) .field("preferable_target", &crate::dnn::LayerTraitConst::preferable_target(self)) .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfELULayer = core::Ptr; ptr_extern! { crate::dnn::ELULayer, cv_PtrLcv_dnn_ELULayerG_new_null_const, cv_PtrLcv_dnn_ELULayerG_delete, cv_PtrLcv_dnn_ELULayerG_getInnerPtr_const, cv_PtrLcv_dnn_ELULayerG_getInnerPtrMut } ptr_extern_ctor! { crate::dnn::ELULayer, cv_PtrLcv_dnn_ELULayerG_new_const_ELULayer } impl core::Ptr { #[inline] pub fn as_raw_PtrOfELULayer(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfELULayer(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::dnn::ELULayerTraitConst for core::Ptr { #[inline] fn as_raw_ELULayer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::ELULayerTrait for core::Ptr { #[inline] fn as_raw_mut_ELULayer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_ELULayerG_to_PtrOfAlgorithm } impl crate::dnn::ActivationLayerTraitConst for core::Ptr { #[inline] fn as_raw_ActivationLayer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::ActivationLayerTrait for core::Ptr { #[inline] fn as_raw_mut_ActivationLayer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_ELULayerG_to_PtrOfActivationLayer } impl crate::dnn::LayerTraitConst for core::Ptr { #[inline] fn as_raw_Layer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::LayerTrait for core::Ptr { #[inline] fn as_raw_mut_Layer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_ELULayerG_to_PtrOfLayer } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfELULayer") .field("alpha", &crate::dnn::ELULayerTraitConst::alpha(self)) .field("blobs", &crate::dnn::LayerTraitConst::blobs(self)) .field("name", &crate::dnn::LayerTraitConst::name(self)) .field("typ", &crate::dnn::LayerTraitConst::typ(self)) .field("preferable_target", &crate::dnn::LayerTraitConst::preferable_target(self)) .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfEinsumLayer = core::Ptr; ptr_extern! { crate::dnn::EinsumLayer, cv_PtrLcv_dnn_EinsumLayerG_new_null_const, cv_PtrLcv_dnn_EinsumLayerG_delete, cv_PtrLcv_dnn_EinsumLayerG_getInnerPtr_const, cv_PtrLcv_dnn_EinsumLayerG_getInnerPtrMut } ptr_extern_ctor! { crate::dnn::EinsumLayer, cv_PtrLcv_dnn_EinsumLayerG_new_const_EinsumLayer } impl core::Ptr { #[inline] pub fn as_raw_PtrOfEinsumLayer(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfEinsumLayer(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::dnn::EinsumLayerTraitConst for core::Ptr { #[inline] fn as_raw_EinsumLayer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::EinsumLayerTrait for core::Ptr { #[inline] fn as_raw_mut_EinsumLayer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_EinsumLayerG_to_PtrOfAlgorithm } impl crate::dnn::LayerTraitConst for core::Ptr { #[inline] fn as_raw_Layer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::LayerTrait for core::Ptr { #[inline] fn as_raw_mut_Layer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_EinsumLayerG_to_PtrOfLayer } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfEinsumLayer") .field("blobs", &crate::dnn::LayerTraitConst::blobs(self)) .field("name", &crate::dnn::LayerTraitConst::name(self)) .field("typ", &crate::dnn::LayerTraitConst::typ(self)) .field("preferable_target", &crate::dnn::LayerTraitConst::preferable_target(self)) .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfEltwiseLayer = core::Ptr; ptr_extern! { crate::dnn::EltwiseLayer, cv_PtrLcv_dnn_EltwiseLayerG_new_null_const, cv_PtrLcv_dnn_EltwiseLayerG_delete, cv_PtrLcv_dnn_EltwiseLayerG_getInnerPtr_const, cv_PtrLcv_dnn_EltwiseLayerG_getInnerPtrMut } ptr_extern_ctor! { crate::dnn::EltwiseLayer, cv_PtrLcv_dnn_EltwiseLayerG_new_const_EltwiseLayer } impl core::Ptr { #[inline] pub fn as_raw_PtrOfEltwiseLayer(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfEltwiseLayer(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::dnn::EltwiseLayerTraitConst for core::Ptr { #[inline] fn as_raw_EltwiseLayer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::EltwiseLayerTrait for core::Ptr { #[inline] fn as_raw_mut_EltwiseLayer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_EltwiseLayerG_to_PtrOfAlgorithm } impl crate::dnn::LayerTraitConst for core::Ptr { #[inline] fn as_raw_Layer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::LayerTrait for core::Ptr { #[inline] fn as_raw_mut_Layer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_EltwiseLayerG_to_PtrOfLayer } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfEltwiseLayer") .field("blobs", &crate::dnn::LayerTraitConst::blobs(self)) .field("name", &crate::dnn::LayerTraitConst::name(self)) .field("typ", &crate::dnn::LayerTraitConst::typ(self)) .field("preferable_target", &crate::dnn::LayerTraitConst::preferable_target(self)) .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfEltwiseLayerInt8 = core::Ptr; ptr_extern! { crate::dnn::EltwiseLayerInt8, cv_PtrLcv_dnn_EltwiseLayerInt8G_new_null_const, cv_PtrLcv_dnn_EltwiseLayerInt8G_delete, cv_PtrLcv_dnn_EltwiseLayerInt8G_getInnerPtr_const, cv_PtrLcv_dnn_EltwiseLayerInt8G_getInnerPtrMut } ptr_extern_ctor! { crate::dnn::EltwiseLayerInt8, cv_PtrLcv_dnn_EltwiseLayerInt8G_new_const_EltwiseLayerInt8 } impl core::Ptr { #[inline] pub fn as_raw_PtrOfEltwiseLayerInt8(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfEltwiseLayerInt8(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::dnn::EltwiseLayerInt8TraitConst for core::Ptr { #[inline] fn as_raw_EltwiseLayerInt8(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::EltwiseLayerInt8Trait for core::Ptr { #[inline] fn as_raw_mut_EltwiseLayerInt8(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_EltwiseLayerInt8G_to_PtrOfAlgorithm } impl crate::dnn::LayerTraitConst for core::Ptr { #[inline] fn as_raw_Layer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::LayerTrait for core::Ptr { #[inline] fn as_raw_mut_Layer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_EltwiseLayerInt8G_to_PtrOfLayer } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfEltwiseLayerInt8") .field("blobs", &crate::dnn::LayerTraitConst::blobs(self)) .field("name", &crate::dnn::LayerTraitConst::name(self)) .field("typ", &crate::dnn::LayerTraitConst::typ(self)) .field("preferable_target", &crate::dnn::LayerTraitConst::preferable_target(self)) .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfErfLayer = core::Ptr; ptr_extern! { crate::dnn::ErfLayer, cv_PtrLcv_dnn_ErfLayerG_new_null_const, cv_PtrLcv_dnn_ErfLayerG_delete, cv_PtrLcv_dnn_ErfLayerG_getInnerPtr_const, cv_PtrLcv_dnn_ErfLayerG_getInnerPtrMut } ptr_extern_ctor! { crate::dnn::ErfLayer, cv_PtrLcv_dnn_ErfLayerG_new_const_ErfLayer } impl core::Ptr { #[inline] pub fn as_raw_PtrOfErfLayer(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfErfLayer(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::dnn::ErfLayerTraitConst for core::Ptr { #[inline] fn as_raw_ErfLayer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::ErfLayerTrait for core::Ptr { #[inline] fn as_raw_mut_ErfLayer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_ErfLayerG_to_PtrOfAlgorithm } impl crate::dnn::ActivationLayerTraitConst for core::Ptr { #[inline] fn as_raw_ActivationLayer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::ActivationLayerTrait for core::Ptr { #[inline] fn as_raw_mut_ActivationLayer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_ErfLayerG_to_PtrOfActivationLayer } impl crate::dnn::LayerTraitConst for core::Ptr { #[inline] fn as_raw_Layer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::LayerTrait for core::Ptr { #[inline] fn as_raw_mut_Layer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_ErfLayerG_to_PtrOfLayer } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfErfLayer") .field("blobs", &crate::dnn::LayerTraitConst::blobs(self)) .field("name", &crate::dnn::LayerTraitConst::name(self)) .field("typ", &crate::dnn::LayerTraitConst::typ(self)) .field("preferable_target", &crate::dnn::LayerTraitConst::preferable_target(self)) .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfExpLayer = core::Ptr; ptr_extern! { crate::dnn::ExpLayer, cv_PtrLcv_dnn_ExpLayerG_new_null_const, cv_PtrLcv_dnn_ExpLayerG_delete, cv_PtrLcv_dnn_ExpLayerG_getInnerPtr_const, cv_PtrLcv_dnn_ExpLayerG_getInnerPtrMut } ptr_extern_ctor! { crate::dnn::ExpLayer, cv_PtrLcv_dnn_ExpLayerG_new_const_ExpLayer } impl core::Ptr { #[inline] pub fn as_raw_PtrOfExpLayer(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfExpLayer(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::dnn::ExpLayerTraitConst for core::Ptr { #[inline] fn as_raw_ExpLayer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::ExpLayerTrait for core::Ptr { #[inline] fn as_raw_mut_ExpLayer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_ExpLayerG_to_PtrOfAlgorithm } impl crate::dnn::ActivationLayerTraitConst for core::Ptr { #[inline] fn as_raw_ActivationLayer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::ActivationLayerTrait for core::Ptr { #[inline] fn as_raw_mut_ActivationLayer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_ExpLayerG_to_PtrOfActivationLayer } impl crate::dnn::LayerTraitConst for core::Ptr { #[inline] fn as_raw_Layer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::LayerTrait for core::Ptr { #[inline] fn as_raw_mut_Layer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_ExpLayerG_to_PtrOfLayer } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfExpLayer") .field("base", &crate::dnn::ExpLayerTraitConst::base(self)) .field("scale", &crate::dnn::ExpLayerTraitConst::scale(self)) .field("shift", &crate::dnn::ExpLayerTraitConst::shift(self)) .field("blobs", &crate::dnn::LayerTraitConst::blobs(self)) .field("name", &crate::dnn::LayerTraitConst::name(self)) .field("typ", &crate::dnn::LayerTraitConst::typ(self)) .field("preferable_target", &crate::dnn::LayerTraitConst::preferable_target(self)) .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfExpandLayer = core::Ptr; ptr_extern! { crate::dnn::ExpandLayer, cv_PtrLcv_dnn_ExpandLayerG_new_null_const, cv_PtrLcv_dnn_ExpandLayerG_delete, cv_PtrLcv_dnn_ExpandLayerG_getInnerPtr_const, cv_PtrLcv_dnn_ExpandLayerG_getInnerPtrMut } ptr_extern_ctor! { crate::dnn::ExpandLayer, cv_PtrLcv_dnn_ExpandLayerG_new_const_ExpandLayer } impl core::Ptr { #[inline] pub fn as_raw_PtrOfExpandLayer(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfExpandLayer(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::dnn::ExpandLayerTraitConst for core::Ptr { #[inline] fn as_raw_ExpandLayer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::ExpandLayerTrait for core::Ptr { #[inline] fn as_raw_mut_ExpandLayer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_ExpandLayerG_to_PtrOfAlgorithm } impl crate::dnn::LayerTraitConst for core::Ptr { #[inline] fn as_raw_Layer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::LayerTrait for core::Ptr { #[inline] fn as_raw_mut_Layer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_ExpandLayerG_to_PtrOfLayer } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfExpandLayer") .field("blobs", &crate::dnn::LayerTraitConst::blobs(self)) .field("name", &crate::dnn::LayerTraitConst::name(self)) .field("typ", &crate::dnn::LayerTraitConst::typ(self)) .field("preferable_target", &crate::dnn::LayerTraitConst::preferable_target(self)) .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfFlattenLayer = core::Ptr; ptr_extern! { crate::dnn::FlattenLayer, cv_PtrLcv_dnn_FlattenLayerG_new_null_const, cv_PtrLcv_dnn_FlattenLayerG_delete, cv_PtrLcv_dnn_FlattenLayerG_getInnerPtr_const, cv_PtrLcv_dnn_FlattenLayerG_getInnerPtrMut } ptr_extern_ctor! { crate::dnn::FlattenLayer, cv_PtrLcv_dnn_FlattenLayerG_new_const_FlattenLayer } impl core::Ptr { #[inline] pub fn as_raw_PtrOfFlattenLayer(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfFlattenLayer(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::dnn::FlattenLayerTraitConst for core::Ptr { #[inline] fn as_raw_FlattenLayer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::FlattenLayerTrait for core::Ptr { #[inline] fn as_raw_mut_FlattenLayer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_FlattenLayerG_to_PtrOfAlgorithm } impl crate::dnn::LayerTraitConst for core::Ptr { #[inline] fn as_raw_Layer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::LayerTrait for core::Ptr { #[inline] fn as_raw_mut_Layer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_FlattenLayerG_to_PtrOfLayer } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfFlattenLayer") .field("blobs", &crate::dnn::LayerTraitConst::blobs(self)) .field("name", &crate::dnn::LayerTraitConst::name(self)) .field("typ", &crate::dnn::LayerTraitConst::typ(self)) .field("preferable_target", &crate::dnn::LayerTraitConst::preferable_target(self)) .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfFloorLayer = core::Ptr; ptr_extern! { crate::dnn::FloorLayer, cv_PtrLcv_dnn_FloorLayerG_new_null_const, cv_PtrLcv_dnn_FloorLayerG_delete, cv_PtrLcv_dnn_FloorLayerG_getInnerPtr_const, cv_PtrLcv_dnn_FloorLayerG_getInnerPtrMut } ptr_extern_ctor! { crate::dnn::FloorLayer, cv_PtrLcv_dnn_FloorLayerG_new_const_FloorLayer } impl core::Ptr { #[inline] pub fn as_raw_PtrOfFloorLayer(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfFloorLayer(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::dnn::FloorLayerTraitConst for core::Ptr { #[inline] fn as_raw_FloorLayer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::FloorLayerTrait for core::Ptr { #[inline] fn as_raw_mut_FloorLayer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_FloorLayerG_to_PtrOfAlgorithm } impl crate::dnn::ActivationLayerTraitConst for core::Ptr { #[inline] fn as_raw_ActivationLayer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::ActivationLayerTrait for core::Ptr { #[inline] fn as_raw_mut_ActivationLayer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_FloorLayerG_to_PtrOfActivationLayer } impl crate::dnn::LayerTraitConst for core::Ptr { #[inline] fn as_raw_Layer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::LayerTrait for core::Ptr { #[inline] fn as_raw_mut_Layer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_FloorLayerG_to_PtrOfLayer } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfFloorLayer") .field("blobs", &crate::dnn::LayerTraitConst::blobs(self)) .field("name", &crate::dnn::LayerTraitConst::name(self)) .field("typ", &crate::dnn::LayerTraitConst::typ(self)) .field("preferable_target", &crate::dnn::LayerTraitConst::preferable_target(self)) .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfFlowWarpLayer = core::Ptr; ptr_extern! { crate::dnn::FlowWarpLayer, cv_PtrLcv_dnn_FlowWarpLayerG_new_null_const, cv_PtrLcv_dnn_FlowWarpLayerG_delete, cv_PtrLcv_dnn_FlowWarpLayerG_getInnerPtr_const, cv_PtrLcv_dnn_FlowWarpLayerG_getInnerPtrMut } ptr_extern_ctor! { crate::dnn::FlowWarpLayer, cv_PtrLcv_dnn_FlowWarpLayerG_new_const_FlowWarpLayer } impl core::Ptr { #[inline] pub fn as_raw_PtrOfFlowWarpLayer(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfFlowWarpLayer(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::dnn::FlowWarpLayerTraitConst for core::Ptr { #[inline] fn as_raw_FlowWarpLayer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::FlowWarpLayerTrait for core::Ptr { #[inline] fn as_raw_mut_FlowWarpLayer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_FlowWarpLayerG_to_PtrOfAlgorithm } impl crate::dnn::LayerTraitConst for core::Ptr { #[inline] fn as_raw_Layer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::LayerTrait for core::Ptr { #[inline] fn as_raw_mut_Layer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_FlowWarpLayerG_to_PtrOfLayer } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfFlowWarpLayer") .field("blobs", &crate::dnn::LayerTraitConst::blobs(self)) .field("name", &crate::dnn::LayerTraitConst::name(self)) .field("typ", &crate::dnn::LayerTraitConst::typ(self)) .field("preferable_target", &crate::dnn::LayerTraitConst::preferable_target(self)) .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfGRULayer = core::Ptr; ptr_extern! { crate::dnn::GRULayer, cv_PtrLcv_dnn_GRULayerG_new_null_const, cv_PtrLcv_dnn_GRULayerG_delete, cv_PtrLcv_dnn_GRULayerG_getInnerPtr_const, cv_PtrLcv_dnn_GRULayerG_getInnerPtrMut } ptr_extern_ctor! { crate::dnn::GRULayer, cv_PtrLcv_dnn_GRULayerG_new_const_GRULayer } impl core::Ptr { #[inline] pub fn as_raw_PtrOfGRULayer(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfGRULayer(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::dnn::GRULayerTraitConst for core::Ptr { #[inline] fn as_raw_GRULayer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::GRULayerTrait for core::Ptr { #[inline] fn as_raw_mut_GRULayer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_GRULayerG_to_PtrOfAlgorithm } impl crate::dnn::LayerTraitConst for core::Ptr { #[inline] fn as_raw_Layer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::LayerTrait for core::Ptr { #[inline] fn as_raw_mut_Layer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_GRULayerG_to_PtrOfLayer } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfGRULayer") .field("blobs", &crate::dnn::LayerTraitConst::blobs(self)) .field("name", &crate::dnn::LayerTraitConst::name(self)) .field("typ", &crate::dnn::LayerTraitConst::typ(self)) .field("preferable_target", &crate::dnn::LayerTraitConst::preferable_target(self)) .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfGatherElementsLayer = core::Ptr; ptr_extern! { crate::dnn::GatherElementsLayer, cv_PtrLcv_dnn_GatherElementsLayerG_new_null_const, cv_PtrLcv_dnn_GatherElementsLayerG_delete, cv_PtrLcv_dnn_GatherElementsLayerG_getInnerPtr_const, cv_PtrLcv_dnn_GatherElementsLayerG_getInnerPtrMut } ptr_extern_ctor! { crate::dnn::GatherElementsLayer, cv_PtrLcv_dnn_GatherElementsLayerG_new_const_GatherElementsLayer } impl core::Ptr { #[inline] pub fn as_raw_PtrOfGatherElementsLayer(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfGatherElementsLayer(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::dnn::GatherElementsLayerTraitConst for core::Ptr { #[inline] fn as_raw_GatherElementsLayer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::GatherElementsLayerTrait for core::Ptr { #[inline] fn as_raw_mut_GatherElementsLayer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_GatherElementsLayerG_to_PtrOfAlgorithm } impl crate::dnn::LayerTraitConst for core::Ptr { #[inline] fn as_raw_Layer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::LayerTrait for core::Ptr { #[inline] fn as_raw_mut_Layer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_GatherElementsLayerG_to_PtrOfLayer } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfGatherElementsLayer") .field("blobs", &crate::dnn::LayerTraitConst::blobs(self)) .field("name", &crate::dnn::LayerTraitConst::name(self)) .field("typ", &crate::dnn::LayerTraitConst::typ(self)) .field("preferable_target", &crate::dnn::LayerTraitConst::preferable_target(self)) .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfGatherLayer = core::Ptr; ptr_extern! { crate::dnn::GatherLayer, cv_PtrLcv_dnn_GatherLayerG_new_null_const, cv_PtrLcv_dnn_GatherLayerG_delete, cv_PtrLcv_dnn_GatherLayerG_getInnerPtr_const, cv_PtrLcv_dnn_GatherLayerG_getInnerPtrMut } ptr_extern_ctor! { crate::dnn::GatherLayer, cv_PtrLcv_dnn_GatherLayerG_new_const_GatherLayer } impl core::Ptr { #[inline] pub fn as_raw_PtrOfGatherLayer(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfGatherLayer(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::dnn::GatherLayerTraitConst for core::Ptr { #[inline] fn as_raw_GatherLayer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::GatherLayerTrait for core::Ptr { #[inline] fn as_raw_mut_GatherLayer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_GatherLayerG_to_PtrOfAlgorithm } impl crate::dnn::LayerTraitConst for core::Ptr { #[inline] fn as_raw_Layer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::LayerTrait for core::Ptr { #[inline] fn as_raw_mut_Layer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_GatherLayerG_to_PtrOfLayer } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfGatherLayer") .field("blobs", &crate::dnn::LayerTraitConst::blobs(self)) .field("name", &crate::dnn::LayerTraitConst::name(self)) .field("typ", &crate::dnn::LayerTraitConst::typ(self)) .field("preferable_target", &crate::dnn::LayerTraitConst::preferable_target(self)) .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfGeluApproximationLayer = core::Ptr; ptr_extern! { crate::dnn::GeluApproximationLayer, cv_PtrLcv_dnn_GeluApproximationLayerG_new_null_const, cv_PtrLcv_dnn_GeluApproximationLayerG_delete, cv_PtrLcv_dnn_GeluApproximationLayerG_getInnerPtr_const, cv_PtrLcv_dnn_GeluApproximationLayerG_getInnerPtrMut } ptr_extern_ctor! { crate::dnn::GeluApproximationLayer, cv_PtrLcv_dnn_GeluApproximationLayerG_new_const_GeluApproximationLayer } impl core::Ptr { #[inline] pub fn as_raw_PtrOfGeluApproximationLayer(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfGeluApproximationLayer(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::dnn::GeluApproximationLayerTraitConst for core::Ptr { #[inline] fn as_raw_GeluApproximationLayer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::GeluApproximationLayerTrait for core::Ptr { #[inline] fn as_raw_mut_GeluApproximationLayer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_GeluApproximationLayerG_to_PtrOfAlgorithm } impl crate::dnn::ActivationLayerTraitConst for core::Ptr { #[inline] fn as_raw_ActivationLayer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::ActivationLayerTrait for core::Ptr { #[inline] fn as_raw_mut_ActivationLayer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_GeluApproximationLayerG_to_PtrOfActivationLayer } impl crate::dnn::LayerTraitConst for core::Ptr { #[inline] fn as_raw_Layer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::LayerTrait for core::Ptr { #[inline] fn as_raw_mut_Layer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_GeluApproximationLayerG_to_PtrOfLayer } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfGeluApproximationLayer") .field("blobs", &crate::dnn::LayerTraitConst::blobs(self)) .field("name", &crate::dnn::LayerTraitConst::name(self)) .field("typ", &crate::dnn::LayerTraitConst::typ(self)) .field("preferable_target", &crate::dnn::LayerTraitConst::preferable_target(self)) .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfGeluLayer = core::Ptr; ptr_extern! { crate::dnn::GeluLayer, cv_PtrLcv_dnn_GeluLayerG_new_null_const, cv_PtrLcv_dnn_GeluLayerG_delete, cv_PtrLcv_dnn_GeluLayerG_getInnerPtr_const, cv_PtrLcv_dnn_GeluLayerG_getInnerPtrMut } ptr_extern_ctor! { crate::dnn::GeluLayer, cv_PtrLcv_dnn_GeluLayerG_new_const_GeluLayer } impl core::Ptr { #[inline] pub fn as_raw_PtrOfGeluLayer(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfGeluLayer(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::dnn::GeluLayerTraitConst for core::Ptr { #[inline] fn as_raw_GeluLayer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::GeluLayerTrait for core::Ptr { #[inline] fn as_raw_mut_GeluLayer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_GeluLayerG_to_PtrOfAlgorithm } impl crate::dnn::ActivationLayerTraitConst for core::Ptr { #[inline] fn as_raw_ActivationLayer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::ActivationLayerTrait for core::Ptr { #[inline] fn as_raw_mut_ActivationLayer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_GeluLayerG_to_PtrOfActivationLayer } impl crate::dnn::LayerTraitConst for core::Ptr { #[inline] fn as_raw_Layer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::LayerTrait for core::Ptr { #[inline] fn as_raw_mut_Layer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_GeluLayerG_to_PtrOfLayer } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfGeluLayer") .field("blobs", &crate::dnn::LayerTraitConst::blobs(self)) .field("name", &crate::dnn::LayerTraitConst::name(self)) .field("typ", &crate::dnn::LayerTraitConst::typ(self)) .field("preferable_target", &crate::dnn::LayerTraitConst::preferable_target(self)) .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfGemmLayer = core::Ptr; ptr_extern! { crate::dnn::GemmLayer, cv_PtrLcv_dnn_GemmLayerG_new_null_const, cv_PtrLcv_dnn_GemmLayerG_delete, cv_PtrLcv_dnn_GemmLayerG_getInnerPtr_const, cv_PtrLcv_dnn_GemmLayerG_getInnerPtrMut } ptr_extern_ctor! { crate::dnn::GemmLayer, cv_PtrLcv_dnn_GemmLayerG_new_const_GemmLayer } impl core::Ptr { #[inline] pub fn as_raw_PtrOfGemmLayer(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfGemmLayer(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::dnn::GemmLayerTraitConst for core::Ptr { #[inline] fn as_raw_GemmLayer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::GemmLayerTrait for core::Ptr { #[inline] fn as_raw_mut_GemmLayer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_GemmLayerG_to_PtrOfAlgorithm } impl crate::dnn::LayerTraitConst for core::Ptr { #[inline] fn as_raw_Layer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::LayerTrait for core::Ptr { #[inline] fn as_raw_mut_Layer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_GemmLayerG_to_PtrOfLayer } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfGemmLayer") .field("trans_a", &crate::dnn::GemmLayerTraitConst::trans_a(self)) .field("trans_b", &crate::dnn::GemmLayerTraitConst::trans_b(self)) .field("alpha", &crate::dnn::GemmLayerTraitConst::alpha(self)) .field("beta", &crate::dnn::GemmLayerTraitConst::beta(self)) .field("blobs", &crate::dnn::LayerTraitConst::blobs(self)) .field("name", &crate::dnn::LayerTraitConst::name(self)) .field("typ", &crate::dnn::LayerTraitConst::typ(self)) .field("preferable_target", &crate::dnn::LayerTraitConst::preferable_target(self)) .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfGroupNormLayer = core::Ptr; ptr_extern! { crate::dnn::GroupNormLayer, cv_PtrLcv_dnn_GroupNormLayerG_new_null_const, cv_PtrLcv_dnn_GroupNormLayerG_delete, cv_PtrLcv_dnn_GroupNormLayerG_getInnerPtr_const, cv_PtrLcv_dnn_GroupNormLayerG_getInnerPtrMut } ptr_extern_ctor! { crate::dnn::GroupNormLayer, cv_PtrLcv_dnn_GroupNormLayerG_new_const_GroupNormLayer } impl core::Ptr { #[inline] pub fn as_raw_PtrOfGroupNormLayer(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfGroupNormLayer(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::dnn::GroupNormLayerTraitConst for core::Ptr { #[inline] fn as_raw_GroupNormLayer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::GroupNormLayerTrait for core::Ptr { #[inline] fn as_raw_mut_GroupNormLayer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_GroupNormLayerG_to_PtrOfAlgorithm } impl crate::dnn::LayerTraitConst for core::Ptr { #[inline] fn as_raw_Layer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::LayerTrait for core::Ptr { #[inline] fn as_raw_mut_Layer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_GroupNormLayerG_to_PtrOfLayer } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfGroupNormLayer") .field("blobs", &crate::dnn::LayerTraitConst::blobs(self)) .field("name", &crate::dnn::LayerTraitConst::name(self)) .field("typ", &crate::dnn::LayerTraitConst::typ(self)) .field("preferable_target", &crate::dnn::LayerTraitConst::preferable_target(self)) .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfHardSigmoidLayer = core::Ptr; ptr_extern! { crate::dnn::HardSigmoidLayer, cv_PtrLcv_dnn_HardSigmoidLayerG_new_null_const, cv_PtrLcv_dnn_HardSigmoidLayerG_delete, cv_PtrLcv_dnn_HardSigmoidLayerG_getInnerPtr_const, cv_PtrLcv_dnn_HardSigmoidLayerG_getInnerPtrMut } ptr_extern_ctor! { crate::dnn::HardSigmoidLayer, cv_PtrLcv_dnn_HardSigmoidLayerG_new_const_HardSigmoidLayer } impl core::Ptr { #[inline] pub fn as_raw_PtrOfHardSigmoidLayer(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfHardSigmoidLayer(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::dnn::HardSigmoidLayerTraitConst for core::Ptr { #[inline] fn as_raw_HardSigmoidLayer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::HardSigmoidLayerTrait for core::Ptr { #[inline] fn as_raw_mut_HardSigmoidLayer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_HardSigmoidLayerG_to_PtrOfAlgorithm } impl crate::dnn::ActivationLayerTraitConst for core::Ptr { #[inline] fn as_raw_ActivationLayer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::ActivationLayerTrait for core::Ptr { #[inline] fn as_raw_mut_ActivationLayer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_HardSigmoidLayerG_to_PtrOfActivationLayer } impl crate::dnn::LayerTraitConst for core::Ptr { #[inline] fn as_raw_Layer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::LayerTrait for core::Ptr { #[inline] fn as_raw_mut_Layer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_HardSigmoidLayerG_to_PtrOfLayer } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfHardSigmoidLayer") .field("alpha", &crate::dnn::HardSigmoidLayerTraitConst::alpha(self)) .field("beta", &crate::dnn::HardSigmoidLayerTraitConst::beta(self)) .field("blobs", &crate::dnn::LayerTraitConst::blobs(self)) .field("name", &crate::dnn::LayerTraitConst::name(self)) .field("typ", &crate::dnn::LayerTraitConst::typ(self)) .field("preferable_target", &crate::dnn::LayerTraitConst::preferable_target(self)) .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfHardSwishLayer = core::Ptr; ptr_extern! { crate::dnn::HardSwishLayer, cv_PtrLcv_dnn_HardSwishLayerG_new_null_const, cv_PtrLcv_dnn_HardSwishLayerG_delete, cv_PtrLcv_dnn_HardSwishLayerG_getInnerPtr_const, cv_PtrLcv_dnn_HardSwishLayerG_getInnerPtrMut } ptr_extern_ctor! { crate::dnn::HardSwishLayer, cv_PtrLcv_dnn_HardSwishLayerG_new_const_HardSwishLayer } impl core::Ptr { #[inline] pub fn as_raw_PtrOfHardSwishLayer(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfHardSwishLayer(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::dnn::HardSwishLayerTraitConst for core::Ptr { #[inline] fn as_raw_HardSwishLayer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::HardSwishLayerTrait for core::Ptr { #[inline] fn as_raw_mut_HardSwishLayer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_HardSwishLayerG_to_PtrOfAlgorithm } impl crate::dnn::ActivationLayerTraitConst for core::Ptr { #[inline] fn as_raw_ActivationLayer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::ActivationLayerTrait for core::Ptr { #[inline] fn as_raw_mut_ActivationLayer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_HardSwishLayerG_to_PtrOfActivationLayer } impl crate::dnn::LayerTraitConst for core::Ptr { #[inline] fn as_raw_Layer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::LayerTrait for core::Ptr { #[inline] fn as_raw_mut_Layer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_HardSwishLayerG_to_PtrOfLayer } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfHardSwishLayer") .field("blobs", &crate::dnn::LayerTraitConst::blobs(self)) .field("name", &crate::dnn::LayerTraitConst::name(self)) .field("typ", &crate::dnn::LayerTraitConst::typ(self)) .field("preferable_target", &crate::dnn::LayerTraitConst::preferable_target(self)) .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfInnerProductLayer = core::Ptr; ptr_extern! { crate::dnn::InnerProductLayer, cv_PtrLcv_dnn_InnerProductLayerG_new_null_const, cv_PtrLcv_dnn_InnerProductLayerG_delete, cv_PtrLcv_dnn_InnerProductLayerG_getInnerPtr_const, cv_PtrLcv_dnn_InnerProductLayerG_getInnerPtrMut } ptr_extern_ctor! { crate::dnn::InnerProductLayer, cv_PtrLcv_dnn_InnerProductLayerG_new_const_InnerProductLayer } impl core::Ptr { #[inline] pub fn as_raw_PtrOfInnerProductLayer(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfInnerProductLayer(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::dnn::InnerProductLayerTraitConst for core::Ptr { #[inline] fn as_raw_InnerProductLayer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::InnerProductLayerTrait for core::Ptr { #[inline] fn as_raw_mut_InnerProductLayer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_InnerProductLayerG_to_PtrOfAlgorithm } impl crate::dnn::LayerTraitConst for core::Ptr { #[inline] fn as_raw_Layer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::LayerTrait for core::Ptr { #[inline] fn as_raw_mut_Layer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_InnerProductLayerG_to_PtrOfLayer } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfInnerProductLayer") .field("axis", &crate::dnn::InnerProductLayerTraitConst::axis(self)) .field("blobs", &crate::dnn::LayerTraitConst::blobs(self)) .field("name", &crate::dnn::LayerTraitConst::name(self)) .field("typ", &crate::dnn::LayerTraitConst::typ(self)) .field("preferable_target", &crate::dnn::LayerTraitConst::preferable_target(self)) .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfInnerProductLayerInt8 = core::Ptr; ptr_extern! { crate::dnn::InnerProductLayerInt8, cv_PtrLcv_dnn_InnerProductLayerInt8G_new_null_const, cv_PtrLcv_dnn_InnerProductLayerInt8G_delete, cv_PtrLcv_dnn_InnerProductLayerInt8G_getInnerPtr_const, cv_PtrLcv_dnn_InnerProductLayerInt8G_getInnerPtrMut } ptr_extern_ctor! { crate::dnn::InnerProductLayerInt8, cv_PtrLcv_dnn_InnerProductLayerInt8G_new_const_InnerProductLayerInt8 } impl core::Ptr { #[inline] pub fn as_raw_PtrOfInnerProductLayerInt8(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfInnerProductLayerInt8(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::dnn::InnerProductLayerInt8TraitConst for core::Ptr { #[inline] fn as_raw_InnerProductLayerInt8(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::InnerProductLayerInt8Trait for core::Ptr { #[inline] fn as_raw_mut_InnerProductLayerInt8(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_InnerProductLayerInt8G_to_PtrOfAlgorithm } impl crate::dnn::InnerProductLayerTraitConst for core::Ptr { #[inline] fn as_raw_InnerProductLayer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::InnerProductLayerTrait for core::Ptr { #[inline] fn as_raw_mut_InnerProductLayer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_InnerProductLayerInt8G_to_PtrOfInnerProductLayer } impl crate::dnn::LayerTraitConst for core::Ptr { #[inline] fn as_raw_Layer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::LayerTrait for core::Ptr { #[inline] fn as_raw_mut_Layer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_InnerProductLayerInt8G_to_PtrOfLayer } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfInnerProductLayerInt8") .field("input_zp", &crate::dnn::InnerProductLayerInt8TraitConst::input_zp(self)) .field("output_zp", &crate::dnn::InnerProductLayerInt8TraitConst::output_zp(self)) .field("input_sc", &crate::dnn::InnerProductLayerInt8TraitConst::input_sc(self)) .field("output_sc", &crate::dnn::InnerProductLayerInt8TraitConst::output_sc(self)) .field("per_channel", &crate::dnn::InnerProductLayerInt8TraitConst::per_channel(self)) .field("axis", &crate::dnn::InnerProductLayerTraitConst::axis(self)) .field("blobs", &crate::dnn::LayerTraitConst::blobs(self)) .field("name", &crate::dnn::LayerTraitConst::name(self)) .field("typ", &crate::dnn::LayerTraitConst::typ(self)) .field("preferable_target", &crate::dnn::LayerTraitConst::preferable_target(self)) .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfInstanceNormLayer = core::Ptr; ptr_extern! { crate::dnn::InstanceNormLayer, cv_PtrLcv_dnn_InstanceNormLayerG_new_null_const, cv_PtrLcv_dnn_InstanceNormLayerG_delete, cv_PtrLcv_dnn_InstanceNormLayerG_getInnerPtr_const, cv_PtrLcv_dnn_InstanceNormLayerG_getInnerPtrMut } ptr_extern_ctor! { crate::dnn::InstanceNormLayer, cv_PtrLcv_dnn_InstanceNormLayerG_new_const_InstanceNormLayer } impl core::Ptr { #[inline] pub fn as_raw_PtrOfInstanceNormLayer(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfInstanceNormLayer(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::dnn::InstanceNormLayerTraitConst for core::Ptr { #[inline] fn as_raw_InstanceNormLayer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::InstanceNormLayerTrait for core::Ptr { #[inline] fn as_raw_mut_InstanceNormLayer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_InstanceNormLayerG_to_PtrOfAlgorithm } impl crate::dnn::LayerTraitConst for core::Ptr { #[inline] fn as_raw_Layer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::LayerTrait for core::Ptr { #[inline] fn as_raw_mut_Layer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_InstanceNormLayerG_to_PtrOfLayer } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfInstanceNormLayer") .field("epsilon", &crate::dnn::InstanceNormLayerTraitConst::epsilon(self)) .field("blobs", &crate::dnn::LayerTraitConst::blobs(self)) .field("name", &crate::dnn::LayerTraitConst::name(self)) .field("typ", &crate::dnn::LayerTraitConst::typ(self)) .field("preferable_target", &crate::dnn::LayerTraitConst::preferable_target(self)) .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfInterpLayer = core::Ptr; ptr_extern! { crate::dnn::InterpLayer, cv_PtrLcv_dnn_InterpLayerG_new_null_const, cv_PtrLcv_dnn_InterpLayerG_delete, cv_PtrLcv_dnn_InterpLayerG_getInnerPtr_const, cv_PtrLcv_dnn_InterpLayerG_getInnerPtrMut } ptr_extern_ctor! { crate::dnn::InterpLayer, cv_PtrLcv_dnn_InterpLayerG_new_const_InterpLayer } impl core::Ptr { #[inline] pub fn as_raw_PtrOfInterpLayer(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfInterpLayer(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::dnn::InterpLayerTraitConst for core::Ptr { #[inline] fn as_raw_InterpLayer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::InterpLayerTrait for core::Ptr { #[inline] fn as_raw_mut_InterpLayer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_InterpLayerG_to_PtrOfAlgorithm } impl crate::dnn::LayerTraitConst for core::Ptr { #[inline] fn as_raw_Layer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::LayerTrait for core::Ptr { #[inline] fn as_raw_mut_Layer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_InterpLayerG_to_PtrOfLayer } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfInterpLayer") .field("blobs", &crate::dnn::LayerTraitConst::blobs(self)) .field("name", &crate::dnn::LayerTraitConst::name(self)) .field("typ", &crate::dnn::LayerTraitConst::typ(self)) .field("preferable_target", &crate::dnn::LayerTraitConst::preferable_target(self)) .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfLRNLayer = core::Ptr; ptr_extern! { crate::dnn::LRNLayer, cv_PtrLcv_dnn_LRNLayerG_new_null_const, cv_PtrLcv_dnn_LRNLayerG_delete, cv_PtrLcv_dnn_LRNLayerG_getInnerPtr_const, cv_PtrLcv_dnn_LRNLayerG_getInnerPtrMut } ptr_extern_ctor! { crate::dnn::LRNLayer, cv_PtrLcv_dnn_LRNLayerG_new_const_LRNLayer } impl core::Ptr { #[inline] pub fn as_raw_PtrOfLRNLayer(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfLRNLayer(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::dnn::LRNLayerTraitConst for core::Ptr { #[inline] fn as_raw_LRNLayer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::LRNLayerTrait for core::Ptr { #[inline] fn as_raw_mut_LRNLayer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_LRNLayerG_to_PtrOfAlgorithm } impl crate::dnn::LayerTraitConst for core::Ptr { #[inline] fn as_raw_Layer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::LayerTrait for core::Ptr { #[inline] fn as_raw_mut_Layer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_LRNLayerG_to_PtrOfLayer } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfLRNLayer") .field("typ", &crate::dnn::LRNLayerTraitConst::typ(self)) .field("size", &crate::dnn::LRNLayerTraitConst::size(self)) .field("alpha", &crate::dnn::LRNLayerTraitConst::alpha(self)) .field("beta", &crate::dnn::LRNLayerTraitConst::beta(self)) .field("bias", &crate::dnn::LRNLayerTraitConst::bias(self)) .field("norm_by_size", &crate::dnn::LRNLayerTraitConst::norm_by_size(self)) .field("blobs", &crate::dnn::LayerTraitConst::blobs(self)) .field("name", &crate::dnn::LayerTraitConst::name(self)) .field("typ", &crate::dnn::LayerTraitConst::typ(self)) .field("preferable_target", &crate::dnn::LayerTraitConst::preferable_target(self)) .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfLSTMLayer = core::Ptr; ptr_extern! { crate::dnn::LSTMLayer, cv_PtrLcv_dnn_LSTMLayerG_new_null_const, cv_PtrLcv_dnn_LSTMLayerG_delete, cv_PtrLcv_dnn_LSTMLayerG_getInnerPtr_const, cv_PtrLcv_dnn_LSTMLayerG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfLSTMLayer(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfLSTMLayer(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::dnn::LSTMLayerTraitConst for core::Ptr { #[inline] fn as_raw_LSTMLayer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::LSTMLayerTrait for core::Ptr { #[inline] fn as_raw_mut_LSTMLayer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_LSTMLayerG_to_PtrOfAlgorithm } impl crate::dnn::LayerTraitConst for core::Ptr { #[inline] fn as_raw_Layer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::LayerTrait for core::Ptr { #[inline] fn as_raw_mut_Layer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_LSTMLayerG_to_PtrOfLayer } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfLSTMLayer") .field("blobs", &crate::dnn::LayerTraitConst::blobs(self)) .field("name", &crate::dnn::LayerTraitConst::name(self)) .field("typ", &crate::dnn::LayerTraitConst::typ(self)) .field("preferable_target", &crate::dnn::LayerTraitConst::preferable_target(self)) .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfLayer = core::Ptr; ptr_extern! { crate::dnn::Layer, cv_PtrLcv_dnn_LayerG_new_null_const, cv_PtrLcv_dnn_LayerG_delete, cv_PtrLcv_dnn_LayerG_getInnerPtr_const, cv_PtrLcv_dnn_LayerG_getInnerPtrMut } ptr_extern_ctor! { crate::dnn::Layer, cv_PtrLcv_dnn_LayerG_new_const_Layer } impl core::Ptr { #[inline] pub fn as_raw_PtrOfLayer(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfLayer(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::dnn::LayerTraitConst for core::Ptr { #[inline] fn as_raw_Layer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::LayerTrait for core::Ptr { #[inline] fn as_raw_mut_Layer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_LayerG_to_PtrOfAlgorithm } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfLayer") .field("blobs", &crate::dnn::LayerTraitConst::blobs(self)) .field("name", &crate::dnn::LayerTraitConst::name(self)) .field("typ", &crate::dnn::LayerTraitConst::typ(self)) .field("preferable_target", &crate::dnn::LayerTraitConst::preferable_target(self)) .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfLayerNormLayer = core::Ptr; ptr_extern! { crate::dnn::LayerNormLayer, cv_PtrLcv_dnn_LayerNormLayerG_new_null_const, cv_PtrLcv_dnn_LayerNormLayerG_delete, cv_PtrLcv_dnn_LayerNormLayerG_getInnerPtr_const, cv_PtrLcv_dnn_LayerNormLayerG_getInnerPtrMut } ptr_extern_ctor! { crate::dnn::LayerNormLayer, cv_PtrLcv_dnn_LayerNormLayerG_new_const_LayerNormLayer } impl core::Ptr { #[inline] pub fn as_raw_PtrOfLayerNormLayer(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfLayerNormLayer(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::dnn::LayerNormLayerTraitConst for core::Ptr { #[inline] fn as_raw_LayerNormLayer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::LayerNormLayerTrait for core::Ptr { #[inline] fn as_raw_mut_LayerNormLayer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_LayerNormLayerG_to_PtrOfAlgorithm } impl crate::dnn::LayerTraitConst for core::Ptr { #[inline] fn as_raw_Layer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::LayerTrait for core::Ptr { #[inline] fn as_raw_mut_Layer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_LayerNormLayerG_to_PtrOfLayer } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfLayerNormLayer") .field("has_bias", &crate::dnn::LayerNormLayerTraitConst::has_bias(self)) .field("axis", &crate::dnn::LayerNormLayerTraitConst::axis(self)) .field("epsilon", &crate::dnn::LayerNormLayerTraitConst::epsilon(self)) .field("blobs", &crate::dnn::LayerTraitConst::blobs(self)) .field("name", &crate::dnn::LayerTraitConst::name(self)) .field("typ", &crate::dnn::LayerTraitConst::typ(self)) .field("preferable_target", &crate::dnn::LayerTraitConst::preferable_target(self)) .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfLogLayer = core::Ptr; ptr_extern! { crate::dnn::LogLayer, cv_PtrLcv_dnn_LogLayerG_new_null_const, cv_PtrLcv_dnn_LogLayerG_delete, cv_PtrLcv_dnn_LogLayerG_getInnerPtr_const, cv_PtrLcv_dnn_LogLayerG_getInnerPtrMut } ptr_extern_ctor! { crate::dnn::LogLayer, cv_PtrLcv_dnn_LogLayerG_new_const_LogLayer } impl core::Ptr { #[inline] pub fn as_raw_PtrOfLogLayer(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfLogLayer(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::dnn::LogLayerTraitConst for core::Ptr { #[inline] fn as_raw_LogLayer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::LogLayerTrait for core::Ptr { #[inline] fn as_raw_mut_LogLayer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_LogLayerG_to_PtrOfAlgorithm } impl crate::dnn::ActivationLayerTraitConst for core::Ptr { #[inline] fn as_raw_ActivationLayer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::ActivationLayerTrait for core::Ptr { #[inline] fn as_raw_mut_ActivationLayer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_LogLayerG_to_PtrOfActivationLayer } impl crate::dnn::LayerTraitConst for core::Ptr { #[inline] fn as_raw_Layer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::LayerTrait for core::Ptr { #[inline] fn as_raw_mut_Layer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_LogLayerG_to_PtrOfLayer } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfLogLayer") .field("blobs", &crate::dnn::LayerTraitConst::blobs(self)) .field("name", &crate::dnn::LayerTraitConst::name(self)) .field("typ", &crate::dnn::LayerTraitConst::typ(self)) .field("preferable_target", &crate::dnn::LayerTraitConst::preferable_target(self)) .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfMVNLayer = core::Ptr; ptr_extern! { crate::dnn::MVNLayer, cv_PtrLcv_dnn_MVNLayerG_new_null_const, cv_PtrLcv_dnn_MVNLayerG_delete, cv_PtrLcv_dnn_MVNLayerG_getInnerPtr_const, cv_PtrLcv_dnn_MVNLayerG_getInnerPtrMut } ptr_extern_ctor! { crate::dnn::MVNLayer, cv_PtrLcv_dnn_MVNLayerG_new_const_MVNLayer } impl core::Ptr { #[inline] pub fn as_raw_PtrOfMVNLayer(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfMVNLayer(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::dnn::MVNLayerTraitConst for core::Ptr { #[inline] fn as_raw_MVNLayer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::MVNLayerTrait for core::Ptr { #[inline] fn as_raw_mut_MVNLayer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_MVNLayerG_to_PtrOfAlgorithm } impl crate::dnn::LayerTraitConst for core::Ptr { #[inline] fn as_raw_Layer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::LayerTrait for core::Ptr { #[inline] fn as_raw_mut_Layer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_MVNLayerG_to_PtrOfLayer } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfMVNLayer") .field("eps", &crate::dnn::MVNLayerTraitConst::eps(self)) .field("norm_variance", &crate::dnn::MVNLayerTraitConst::norm_variance(self)) .field("across_channels", &crate::dnn::MVNLayerTraitConst::across_channels(self)) .field("blobs", &crate::dnn::LayerTraitConst::blobs(self)) .field("name", &crate::dnn::LayerTraitConst::name(self)) .field("typ", &crate::dnn::LayerTraitConst::typ(self)) .field("preferable_target", &crate::dnn::LayerTraitConst::preferable_target(self)) .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfMatMulLayer = core::Ptr; ptr_extern! { crate::dnn::MatMulLayer, cv_PtrLcv_dnn_MatMulLayerG_new_null_const, cv_PtrLcv_dnn_MatMulLayerG_delete, cv_PtrLcv_dnn_MatMulLayerG_getInnerPtr_const, cv_PtrLcv_dnn_MatMulLayerG_getInnerPtrMut } ptr_extern_ctor! { crate::dnn::MatMulLayer, cv_PtrLcv_dnn_MatMulLayerG_new_const_MatMulLayer } impl core::Ptr { #[inline] pub fn as_raw_PtrOfMatMulLayer(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfMatMulLayer(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::dnn::MatMulLayerTraitConst for core::Ptr { #[inline] fn as_raw_MatMulLayer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::MatMulLayerTrait for core::Ptr { #[inline] fn as_raw_mut_MatMulLayer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_MatMulLayerG_to_PtrOfAlgorithm } impl crate::dnn::LayerTraitConst for core::Ptr { #[inline] fn as_raw_Layer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::LayerTrait for core::Ptr { #[inline] fn as_raw_mut_Layer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_MatMulLayerG_to_PtrOfLayer } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfMatMulLayer") .field("blobs", &crate::dnn::LayerTraitConst::blobs(self)) .field("name", &crate::dnn::LayerTraitConst::name(self)) .field("typ", &crate::dnn::LayerTraitConst::typ(self)) .field("preferable_target", &crate::dnn::LayerTraitConst::preferable_target(self)) .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfMaxUnpoolLayer = core::Ptr; ptr_extern! { crate::dnn::MaxUnpoolLayer, cv_PtrLcv_dnn_MaxUnpoolLayerG_new_null_const, cv_PtrLcv_dnn_MaxUnpoolLayerG_delete, cv_PtrLcv_dnn_MaxUnpoolLayerG_getInnerPtr_const, cv_PtrLcv_dnn_MaxUnpoolLayerG_getInnerPtrMut } ptr_extern_ctor! { crate::dnn::MaxUnpoolLayer, cv_PtrLcv_dnn_MaxUnpoolLayerG_new_const_MaxUnpoolLayer } impl core::Ptr { #[inline] pub fn as_raw_PtrOfMaxUnpoolLayer(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfMaxUnpoolLayer(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::dnn::MaxUnpoolLayerTraitConst for core::Ptr { #[inline] fn as_raw_MaxUnpoolLayer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::MaxUnpoolLayerTrait for core::Ptr { #[inline] fn as_raw_mut_MaxUnpoolLayer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_MaxUnpoolLayerG_to_PtrOfAlgorithm } impl crate::dnn::LayerTraitConst for core::Ptr { #[inline] fn as_raw_Layer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::LayerTrait for core::Ptr { #[inline] fn as_raw_mut_Layer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_MaxUnpoolLayerG_to_PtrOfLayer } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfMaxUnpoolLayer") .field("pool_kernel", &crate::dnn::MaxUnpoolLayerTraitConst::pool_kernel(self)) .field("pool_pad", &crate::dnn::MaxUnpoolLayerTraitConst::pool_pad(self)) .field("pool_stride", &crate::dnn::MaxUnpoolLayerTraitConst::pool_stride(self)) .field("blobs", &crate::dnn::LayerTraitConst::blobs(self)) .field("name", &crate::dnn::LayerTraitConst::name(self)) .field("typ", &crate::dnn::LayerTraitConst::typ(self)) .field("preferable_target", &crate::dnn::LayerTraitConst::preferable_target(self)) .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfMishLayer = core::Ptr; ptr_extern! { crate::dnn::MishLayer, cv_PtrLcv_dnn_MishLayerG_new_null_const, cv_PtrLcv_dnn_MishLayerG_delete, cv_PtrLcv_dnn_MishLayerG_getInnerPtr_const, cv_PtrLcv_dnn_MishLayerG_getInnerPtrMut } ptr_extern_ctor! { crate::dnn::MishLayer, cv_PtrLcv_dnn_MishLayerG_new_const_MishLayer } impl core::Ptr { #[inline] pub fn as_raw_PtrOfMishLayer(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfMishLayer(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::dnn::MishLayerTraitConst for core::Ptr { #[inline] fn as_raw_MishLayer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::MishLayerTrait for core::Ptr { #[inline] fn as_raw_mut_MishLayer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_MishLayerG_to_PtrOfAlgorithm } impl crate::dnn::ActivationLayerTraitConst for core::Ptr { #[inline] fn as_raw_ActivationLayer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::ActivationLayerTrait for core::Ptr { #[inline] fn as_raw_mut_ActivationLayer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_MishLayerG_to_PtrOfActivationLayer } impl crate::dnn::LayerTraitConst for core::Ptr { #[inline] fn as_raw_Layer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::LayerTrait for core::Ptr { #[inline] fn as_raw_mut_Layer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_MishLayerG_to_PtrOfLayer } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfMishLayer") .field("blobs", &crate::dnn::LayerTraitConst::blobs(self)) .field("name", &crate::dnn::LayerTraitConst::name(self)) .field("typ", &crate::dnn::LayerTraitConst::typ(self)) .field("preferable_target", &crate::dnn::LayerTraitConst::preferable_target(self)) .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfNaryEltwiseLayer = core::Ptr; ptr_extern! { crate::dnn::NaryEltwiseLayer, cv_PtrLcv_dnn_NaryEltwiseLayerG_new_null_const, cv_PtrLcv_dnn_NaryEltwiseLayerG_delete, cv_PtrLcv_dnn_NaryEltwiseLayerG_getInnerPtr_const, cv_PtrLcv_dnn_NaryEltwiseLayerG_getInnerPtrMut } ptr_extern_ctor! { crate::dnn::NaryEltwiseLayer, cv_PtrLcv_dnn_NaryEltwiseLayerG_new_const_NaryEltwiseLayer } impl core::Ptr { #[inline] pub fn as_raw_PtrOfNaryEltwiseLayer(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfNaryEltwiseLayer(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::dnn::NaryEltwiseLayerTraitConst for core::Ptr { #[inline] fn as_raw_NaryEltwiseLayer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::NaryEltwiseLayerTrait for core::Ptr { #[inline] fn as_raw_mut_NaryEltwiseLayer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_NaryEltwiseLayerG_to_PtrOfAlgorithm } impl crate::dnn::LayerTraitConst for core::Ptr { #[inline] fn as_raw_Layer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::LayerTrait for core::Ptr { #[inline] fn as_raw_mut_Layer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_NaryEltwiseLayerG_to_PtrOfLayer } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfNaryEltwiseLayer") .field("blobs", &crate::dnn::LayerTraitConst::blobs(self)) .field("name", &crate::dnn::LayerTraitConst::name(self)) .field("typ", &crate::dnn::LayerTraitConst::typ(self)) .field("preferable_target", &crate::dnn::LayerTraitConst::preferable_target(self)) .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfNormalizeBBoxLayer = core::Ptr; ptr_extern! { crate::dnn::NormalizeBBoxLayer, cv_PtrLcv_dnn_NormalizeBBoxLayerG_new_null_const, cv_PtrLcv_dnn_NormalizeBBoxLayerG_delete, cv_PtrLcv_dnn_NormalizeBBoxLayerG_getInnerPtr_const, cv_PtrLcv_dnn_NormalizeBBoxLayerG_getInnerPtrMut } ptr_extern_ctor! { crate::dnn::NormalizeBBoxLayer, cv_PtrLcv_dnn_NormalizeBBoxLayerG_new_const_NormalizeBBoxLayer } impl core::Ptr { #[inline] pub fn as_raw_PtrOfNormalizeBBoxLayer(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfNormalizeBBoxLayer(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::dnn::NormalizeBBoxLayerTraitConst for core::Ptr { #[inline] fn as_raw_NormalizeBBoxLayer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::NormalizeBBoxLayerTrait for core::Ptr { #[inline] fn as_raw_mut_NormalizeBBoxLayer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_NormalizeBBoxLayerG_to_PtrOfAlgorithm } impl crate::dnn::LayerTraitConst for core::Ptr { #[inline] fn as_raw_Layer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::LayerTrait for core::Ptr { #[inline] fn as_raw_mut_Layer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_NormalizeBBoxLayerG_to_PtrOfLayer } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfNormalizeBBoxLayer") .field("pnorm", &crate::dnn::NormalizeBBoxLayerTraitConst::pnorm(self)) .field("epsilon", &crate::dnn::NormalizeBBoxLayerTraitConst::epsilon(self)) .field("across_spatial", &crate::dnn::NormalizeBBoxLayerTraitConst::across_spatial(self)) .field("blobs", &crate::dnn::LayerTraitConst::blobs(self)) .field("name", &crate::dnn::LayerTraitConst::name(self)) .field("typ", &crate::dnn::LayerTraitConst::typ(self)) .field("preferable_target", &crate::dnn::LayerTraitConst::preferable_target(self)) .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfNotLayer = core::Ptr; ptr_extern! { crate::dnn::NotLayer, cv_PtrLcv_dnn_NotLayerG_new_null_const, cv_PtrLcv_dnn_NotLayerG_delete, cv_PtrLcv_dnn_NotLayerG_getInnerPtr_const, cv_PtrLcv_dnn_NotLayerG_getInnerPtrMut } ptr_extern_ctor! { crate::dnn::NotLayer, cv_PtrLcv_dnn_NotLayerG_new_const_NotLayer } impl core::Ptr { #[inline] pub fn as_raw_PtrOfNotLayer(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfNotLayer(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::dnn::NotLayerTraitConst for core::Ptr { #[inline] fn as_raw_NotLayer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::NotLayerTrait for core::Ptr { #[inline] fn as_raw_mut_NotLayer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_NotLayerG_to_PtrOfAlgorithm } impl crate::dnn::ActivationLayerTraitConst for core::Ptr { #[inline] fn as_raw_ActivationLayer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::ActivationLayerTrait for core::Ptr { #[inline] fn as_raw_mut_ActivationLayer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_NotLayerG_to_PtrOfActivationLayer } impl crate::dnn::LayerTraitConst for core::Ptr { #[inline] fn as_raw_Layer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::LayerTrait for core::Ptr { #[inline] fn as_raw_mut_Layer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_NotLayerG_to_PtrOfLayer } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfNotLayer") .field("blobs", &crate::dnn::LayerTraitConst::blobs(self)) .field("name", &crate::dnn::LayerTraitConst::name(self)) .field("typ", &crate::dnn::LayerTraitConst::typ(self)) .field("preferable_target", &crate::dnn::LayerTraitConst::preferable_target(self)) .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfPaddingLayer = core::Ptr; ptr_extern! { crate::dnn::PaddingLayer, cv_PtrLcv_dnn_PaddingLayerG_new_null_const, cv_PtrLcv_dnn_PaddingLayerG_delete, cv_PtrLcv_dnn_PaddingLayerG_getInnerPtr_const, cv_PtrLcv_dnn_PaddingLayerG_getInnerPtrMut } ptr_extern_ctor! { crate::dnn::PaddingLayer, cv_PtrLcv_dnn_PaddingLayerG_new_const_PaddingLayer } impl core::Ptr { #[inline] pub fn as_raw_PtrOfPaddingLayer(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfPaddingLayer(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::dnn::PaddingLayerTraitConst for core::Ptr { #[inline] fn as_raw_PaddingLayer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::PaddingLayerTrait for core::Ptr { #[inline] fn as_raw_mut_PaddingLayer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_PaddingLayerG_to_PtrOfAlgorithm } impl crate::dnn::LayerTraitConst for core::Ptr { #[inline] fn as_raw_Layer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::LayerTrait for core::Ptr { #[inline] fn as_raw_mut_Layer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_PaddingLayerG_to_PtrOfLayer } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfPaddingLayer") .field("blobs", &crate::dnn::LayerTraitConst::blobs(self)) .field("name", &crate::dnn::LayerTraitConst::name(self)) .field("typ", &crate::dnn::LayerTraitConst::typ(self)) .field("preferable_target", &crate::dnn::LayerTraitConst::preferable_target(self)) .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfPermuteLayer = core::Ptr; ptr_extern! { crate::dnn::PermuteLayer, cv_PtrLcv_dnn_PermuteLayerG_new_null_const, cv_PtrLcv_dnn_PermuteLayerG_delete, cv_PtrLcv_dnn_PermuteLayerG_getInnerPtr_const, cv_PtrLcv_dnn_PermuteLayerG_getInnerPtrMut } ptr_extern_ctor! { crate::dnn::PermuteLayer, cv_PtrLcv_dnn_PermuteLayerG_new_const_PermuteLayer } impl core::Ptr { #[inline] pub fn as_raw_PtrOfPermuteLayer(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfPermuteLayer(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::dnn::PermuteLayerTraitConst for core::Ptr { #[inline] fn as_raw_PermuteLayer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::PermuteLayerTrait for core::Ptr { #[inline] fn as_raw_mut_PermuteLayer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_PermuteLayerG_to_PtrOfAlgorithm } impl crate::dnn::LayerTraitConst for core::Ptr { #[inline] fn as_raw_Layer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::LayerTrait for core::Ptr { #[inline] fn as_raw_mut_Layer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_PermuteLayerG_to_PtrOfLayer } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfPermuteLayer") .field("blobs", &crate::dnn::LayerTraitConst::blobs(self)) .field("name", &crate::dnn::LayerTraitConst::name(self)) .field("typ", &crate::dnn::LayerTraitConst::typ(self)) .field("preferable_target", &crate::dnn::LayerTraitConst::preferable_target(self)) .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfPoolingLayer = core::Ptr; ptr_extern! { crate::dnn::PoolingLayer, cv_PtrLcv_dnn_PoolingLayerG_new_null_const, cv_PtrLcv_dnn_PoolingLayerG_delete, cv_PtrLcv_dnn_PoolingLayerG_getInnerPtr_const, cv_PtrLcv_dnn_PoolingLayerG_getInnerPtrMut } ptr_extern_ctor! { crate::dnn::PoolingLayer, cv_PtrLcv_dnn_PoolingLayerG_new_const_PoolingLayer } impl core::Ptr { #[inline] pub fn as_raw_PtrOfPoolingLayer(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfPoolingLayer(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::dnn::PoolingLayerTraitConst for core::Ptr { #[inline] fn as_raw_PoolingLayer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::PoolingLayerTrait for core::Ptr { #[inline] fn as_raw_mut_PoolingLayer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_PoolingLayerG_to_PtrOfAlgorithm } impl crate::dnn::LayerTraitConst for core::Ptr { #[inline] fn as_raw_Layer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::LayerTrait for core::Ptr { #[inline] fn as_raw_mut_Layer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_PoolingLayerG_to_PtrOfLayer } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfPoolingLayer") .field("typ", &crate::dnn::PoolingLayerTraitConst::typ(self)) .field("kernel_size", &crate::dnn::PoolingLayerTraitConst::kernel_size(self)) .field("strides", &crate::dnn::PoolingLayerTraitConst::strides(self)) .field("pads_begin", &crate::dnn::PoolingLayerTraitConst::pads_begin(self)) .field("pads_end", &crate::dnn::PoolingLayerTraitConst::pads_end(self)) .field("global_pooling", &crate::dnn::PoolingLayerTraitConst::global_pooling(self)) .field("is_global_pooling", &crate::dnn::PoolingLayerTraitConst::is_global_pooling(self)) .field("compute_max_idx", &crate::dnn::PoolingLayerTraitConst::compute_max_idx(self)) .field("pad_mode", &crate::dnn::PoolingLayerTraitConst::pad_mode(self)) .field("ceil_mode", &crate::dnn::PoolingLayerTraitConst::ceil_mode(self)) .field("ave_pool_padded_area", &crate::dnn::PoolingLayerTraitConst::ave_pool_padded_area(self)) .field("pooled_size", &crate::dnn::PoolingLayerTraitConst::pooled_size(self)) .field("spatial_scale", &crate::dnn::PoolingLayerTraitConst::spatial_scale(self)) .field("ps_roi_out_channels", &crate::dnn::PoolingLayerTraitConst::ps_roi_out_channels(self)) .field("blobs", &crate::dnn::LayerTraitConst::blobs(self)) .field("name", &crate::dnn::LayerTraitConst::name(self)) .field("typ", &crate::dnn::LayerTraitConst::typ(self)) .field("preferable_target", &crate::dnn::LayerTraitConst::preferable_target(self)) .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfPoolingLayerInt8 = core::Ptr; ptr_extern! { crate::dnn::PoolingLayerInt8, cv_PtrLcv_dnn_PoolingLayerInt8G_new_null_const, cv_PtrLcv_dnn_PoolingLayerInt8G_delete, cv_PtrLcv_dnn_PoolingLayerInt8G_getInnerPtr_const, cv_PtrLcv_dnn_PoolingLayerInt8G_getInnerPtrMut } ptr_extern_ctor! { crate::dnn::PoolingLayerInt8, cv_PtrLcv_dnn_PoolingLayerInt8G_new_const_PoolingLayerInt8 } impl core::Ptr { #[inline] pub fn as_raw_PtrOfPoolingLayerInt8(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfPoolingLayerInt8(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::dnn::PoolingLayerInt8TraitConst for core::Ptr { #[inline] fn as_raw_PoolingLayerInt8(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::PoolingLayerInt8Trait for core::Ptr { #[inline] fn as_raw_mut_PoolingLayerInt8(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_PoolingLayerInt8G_to_PtrOfAlgorithm } impl crate::dnn::LayerTraitConst for core::Ptr { #[inline] fn as_raw_Layer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::LayerTrait for core::Ptr { #[inline] fn as_raw_mut_Layer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_PoolingLayerInt8G_to_PtrOfLayer } impl crate::dnn::PoolingLayerTraitConst for core::Ptr { #[inline] fn as_raw_PoolingLayer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::PoolingLayerTrait for core::Ptr { #[inline] fn as_raw_mut_PoolingLayer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_PoolingLayerInt8G_to_PtrOfPoolingLayer } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfPoolingLayerInt8") .field("input_zp", &crate::dnn::PoolingLayerInt8TraitConst::input_zp(self)) .field("output_zp", &crate::dnn::PoolingLayerInt8TraitConst::output_zp(self)) .field("input_sc", &crate::dnn::PoolingLayerInt8TraitConst::input_sc(self)) .field("output_sc", &crate::dnn::PoolingLayerInt8TraitConst::output_sc(self)) .field("blobs", &crate::dnn::LayerTraitConst::blobs(self)) .field("name", &crate::dnn::LayerTraitConst::name(self)) .field("typ", &crate::dnn::LayerTraitConst::typ(self)) .field("preferable_target", &crate::dnn::LayerTraitConst::preferable_target(self)) .field("typ", &crate::dnn::PoolingLayerTraitConst::typ(self)) .field("kernel_size", &crate::dnn::PoolingLayerTraitConst::kernel_size(self)) .field("strides", &crate::dnn::PoolingLayerTraitConst::strides(self)) .field("pads_begin", &crate::dnn::PoolingLayerTraitConst::pads_begin(self)) .field("pads_end", &crate::dnn::PoolingLayerTraitConst::pads_end(self)) .field("global_pooling", &crate::dnn::PoolingLayerTraitConst::global_pooling(self)) .field("is_global_pooling", &crate::dnn::PoolingLayerTraitConst::is_global_pooling(self)) .field("compute_max_idx", &crate::dnn::PoolingLayerTraitConst::compute_max_idx(self)) .field("pad_mode", &crate::dnn::PoolingLayerTraitConst::pad_mode(self)) .field("ceil_mode", &crate::dnn::PoolingLayerTraitConst::ceil_mode(self)) .field("ave_pool_padded_area", &crate::dnn::PoolingLayerTraitConst::ave_pool_padded_area(self)) .field("pooled_size", &crate::dnn::PoolingLayerTraitConst::pooled_size(self)) .field("spatial_scale", &crate::dnn::PoolingLayerTraitConst::spatial_scale(self)) .field("ps_roi_out_channels", &crate::dnn::PoolingLayerTraitConst::ps_roi_out_channels(self)) .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfPowerLayer = core::Ptr; ptr_extern! { crate::dnn::PowerLayer, cv_PtrLcv_dnn_PowerLayerG_new_null_const, cv_PtrLcv_dnn_PowerLayerG_delete, cv_PtrLcv_dnn_PowerLayerG_getInnerPtr_const, cv_PtrLcv_dnn_PowerLayerG_getInnerPtrMut } ptr_extern_ctor! { crate::dnn::PowerLayer, cv_PtrLcv_dnn_PowerLayerG_new_const_PowerLayer } impl core::Ptr { #[inline] pub fn as_raw_PtrOfPowerLayer(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfPowerLayer(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::dnn::PowerLayerTraitConst for core::Ptr { #[inline] fn as_raw_PowerLayer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::PowerLayerTrait for core::Ptr { #[inline] fn as_raw_mut_PowerLayer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_PowerLayerG_to_PtrOfAlgorithm } impl crate::dnn::ActivationLayerTraitConst for core::Ptr { #[inline] fn as_raw_ActivationLayer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::ActivationLayerTrait for core::Ptr { #[inline] fn as_raw_mut_ActivationLayer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_PowerLayerG_to_PtrOfActivationLayer } impl crate::dnn::LayerTraitConst for core::Ptr { #[inline] fn as_raw_Layer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::LayerTrait for core::Ptr { #[inline] fn as_raw_mut_Layer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_PowerLayerG_to_PtrOfLayer } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfPowerLayer") .field("power", &crate::dnn::PowerLayerTraitConst::power(self)) .field("scale", &crate::dnn::PowerLayerTraitConst::scale(self)) .field("shift", &crate::dnn::PowerLayerTraitConst::shift(self)) .field("blobs", &crate::dnn::LayerTraitConst::blobs(self)) .field("name", &crate::dnn::LayerTraitConst::name(self)) .field("typ", &crate::dnn::LayerTraitConst::typ(self)) .field("preferable_target", &crate::dnn::LayerTraitConst::preferable_target(self)) .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfPriorBoxLayer = core::Ptr; ptr_extern! { crate::dnn::PriorBoxLayer, cv_PtrLcv_dnn_PriorBoxLayerG_new_null_const, cv_PtrLcv_dnn_PriorBoxLayerG_delete, cv_PtrLcv_dnn_PriorBoxLayerG_getInnerPtr_const, cv_PtrLcv_dnn_PriorBoxLayerG_getInnerPtrMut } ptr_extern_ctor! { crate::dnn::PriorBoxLayer, cv_PtrLcv_dnn_PriorBoxLayerG_new_const_PriorBoxLayer } impl core::Ptr { #[inline] pub fn as_raw_PtrOfPriorBoxLayer(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfPriorBoxLayer(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::dnn::PriorBoxLayerTraitConst for core::Ptr { #[inline] fn as_raw_PriorBoxLayer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::PriorBoxLayerTrait for core::Ptr { #[inline] fn as_raw_mut_PriorBoxLayer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_PriorBoxLayerG_to_PtrOfAlgorithm } impl crate::dnn::LayerTraitConst for core::Ptr { #[inline] fn as_raw_Layer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::LayerTrait for core::Ptr { #[inline] fn as_raw_mut_Layer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_PriorBoxLayerG_to_PtrOfLayer } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfPriorBoxLayer") .field("blobs", &crate::dnn::LayerTraitConst::blobs(self)) .field("name", &crate::dnn::LayerTraitConst::name(self)) .field("typ", &crate::dnn::LayerTraitConst::typ(self)) .field("preferable_target", &crate::dnn::LayerTraitConst::preferable_target(self)) .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfProposalLayer = core::Ptr; ptr_extern! { crate::dnn::ProposalLayer, cv_PtrLcv_dnn_ProposalLayerG_new_null_const, cv_PtrLcv_dnn_ProposalLayerG_delete, cv_PtrLcv_dnn_ProposalLayerG_getInnerPtr_const, cv_PtrLcv_dnn_ProposalLayerG_getInnerPtrMut } ptr_extern_ctor! { crate::dnn::ProposalLayer, cv_PtrLcv_dnn_ProposalLayerG_new_const_ProposalLayer } impl core::Ptr { #[inline] pub fn as_raw_PtrOfProposalLayer(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfProposalLayer(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::dnn::ProposalLayerTraitConst for core::Ptr { #[inline] fn as_raw_ProposalLayer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::ProposalLayerTrait for core::Ptr { #[inline] fn as_raw_mut_ProposalLayer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_ProposalLayerG_to_PtrOfAlgorithm } impl crate::dnn::LayerTraitConst for core::Ptr { #[inline] fn as_raw_Layer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::LayerTrait for core::Ptr { #[inline] fn as_raw_mut_Layer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_ProposalLayerG_to_PtrOfLayer } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfProposalLayer") .field("blobs", &crate::dnn::LayerTraitConst::blobs(self)) .field("name", &crate::dnn::LayerTraitConst::name(self)) .field("typ", &crate::dnn::LayerTraitConst::typ(self)) .field("preferable_target", &crate::dnn::LayerTraitConst::preferable_target(self)) .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfQuantizeLayer = core::Ptr; ptr_extern! { crate::dnn::QuantizeLayer, cv_PtrLcv_dnn_QuantizeLayerG_new_null_const, cv_PtrLcv_dnn_QuantizeLayerG_delete, cv_PtrLcv_dnn_QuantizeLayerG_getInnerPtr_const, cv_PtrLcv_dnn_QuantizeLayerG_getInnerPtrMut } ptr_extern_ctor! { crate::dnn::QuantizeLayer, cv_PtrLcv_dnn_QuantizeLayerG_new_const_QuantizeLayer } impl core::Ptr { #[inline] pub fn as_raw_PtrOfQuantizeLayer(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfQuantizeLayer(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::dnn::QuantizeLayerTraitConst for core::Ptr { #[inline] fn as_raw_QuantizeLayer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::QuantizeLayerTrait for core::Ptr { #[inline] fn as_raw_mut_QuantizeLayer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_QuantizeLayerG_to_PtrOfAlgorithm } impl crate::dnn::LayerTraitConst for core::Ptr { #[inline] fn as_raw_Layer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::LayerTrait for core::Ptr { #[inline] fn as_raw_mut_Layer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_QuantizeLayerG_to_PtrOfLayer } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfQuantizeLayer") .field("scales", &crate::dnn::QuantizeLayerTraitConst::scales(self)) .field("zeropoints", &crate::dnn::QuantizeLayerTraitConst::zeropoints(self)) .field("blobs", &crate::dnn::LayerTraitConst::blobs(self)) .field("name", &crate::dnn::LayerTraitConst::name(self)) .field("typ", &crate::dnn::LayerTraitConst::typ(self)) .field("preferable_target", &crate::dnn::LayerTraitConst::preferable_target(self)) .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfRNNLayer = core::Ptr; ptr_extern! { crate::dnn::RNNLayer, cv_PtrLcv_dnn_RNNLayerG_new_null_const, cv_PtrLcv_dnn_RNNLayerG_delete, cv_PtrLcv_dnn_RNNLayerG_getInnerPtr_const, cv_PtrLcv_dnn_RNNLayerG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfRNNLayer(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfRNNLayer(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::dnn::RNNLayerTraitConst for core::Ptr { #[inline] fn as_raw_RNNLayer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::RNNLayerTrait for core::Ptr { #[inline] fn as_raw_mut_RNNLayer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_RNNLayerG_to_PtrOfAlgorithm } impl crate::dnn::LayerTraitConst for core::Ptr { #[inline] fn as_raw_Layer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::LayerTrait for core::Ptr { #[inline] fn as_raw_mut_Layer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_RNNLayerG_to_PtrOfLayer } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfRNNLayer") .field("blobs", &crate::dnn::LayerTraitConst::blobs(self)) .field("name", &crate::dnn::LayerTraitConst::name(self)) .field("typ", &crate::dnn::LayerTraitConst::typ(self)) .field("preferable_target", &crate::dnn::LayerTraitConst::preferable_target(self)) .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfReLU6Layer = core::Ptr; ptr_extern! { crate::dnn::ReLU6Layer, cv_PtrLcv_dnn_ReLU6LayerG_new_null_const, cv_PtrLcv_dnn_ReLU6LayerG_delete, cv_PtrLcv_dnn_ReLU6LayerG_getInnerPtr_const, cv_PtrLcv_dnn_ReLU6LayerG_getInnerPtrMut } ptr_extern_ctor! { crate::dnn::ReLU6Layer, cv_PtrLcv_dnn_ReLU6LayerG_new_const_ReLU6Layer } impl core::Ptr { #[inline] pub fn as_raw_PtrOfReLU6Layer(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfReLU6Layer(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::dnn::ReLU6LayerTraitConst for core::Ptr { #[inline] fn as_raw_ReLU6Layer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::ReLU6LayerTrait for core::Ptr { #[inline] fn as_raw_mut_ReLU6Layer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_ReLU6LayerG_to_PtrOfAlgorithm } impl crate::dnn::ActivationLayerTraitConst for core::Ptr { #[inline] fn as_raw_ActivationLayer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::ActivationLayerTrait for core::Ptr { #[inline] fn as_raw_mut_ActivationLayer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_ReLU6LayerG_to_PtrOfActivationLayer } impl crate::dnn::LayerTraitConst for core::Ptr { #[inline] fn as_raw_Layer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::LayerTrait for core::Ptr { #[inline] fn as_raw_mut_Layer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_ReLU6LayerG_to_PtrOfLayer } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfReLU6Layer") .field("min_value", &crate::dnn::ReLU6LayerTraitConst::min_value(self)) .field("max_value", &crate::dnn::ReLU6LayerTraitConst::max_value(self)) .field("blobs", &crate::dnn::LayerTraitConst::blobs(self)) .field("name", &crate::dnn::LayerTraitConst::name(self)) .field("typ", &crate::dnn::LayerTraitConst::typ(self)) .field("preferable_target", &crate::dnn::LayerTraitConst::preferable_target(self)) .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfReLULayer = core::Ptr; ptr_extern! { crate::dnn::ReLULayer, cv_PtrLcv_dnn_ReLULayerG_new_null_const, cv_PtrLcv_dnn_ReLULayerG_delete, cv_PtrLcv_dnn_ReLULayerG_getInnerPtr_const, cv_PtrLcv_dnn_ReLULayerG_getInnerPtrMut } ptr_extern_ctor! { crate::dnn::ReLULayer, cv_PtrLcv_dnn_ReLULayerG_new_const_ReLULayer } impl core::Ptr { #[inline] pub fn as_raw_PtrOfReLULayer(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfReLULayer(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::dnn::ReLULayerTraitConst for core::Ptr { #[inline] fn as_raw_ReLULayer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::ReLULayerTrait for core::Ptr { #[inline] fn as_raw_mut_ReLULayer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_ReLULayerG_to_PtrOfAlgorithm } impl crate::dnn::ActivationLayerTraitConst for core::Ptr { #[inline] fn as_raw_ActivationLayer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::ActivationLayerTrait for core::Ptr { #[inline] fn as_raw_mut_ActivationLayer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_ReLULayerG_to_PtrOfActivationLayer } impl crate::dnn::LayerTraitConst for core::Ptr { #[inline] fn as_raw_Layer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::LayerTrait for core::Ptr { #[inline] fn as_raw_mut_Layer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_ReLULayerG_to_PtrOfLayer } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfReLULayer") .field("negative_slope", &crate::dnn::ReLULayerTraitConst::negative_slope(self)) .field("blobs", &crate::dnn::LayerTraitConst::blobs(self)) .field("name", &crate::dnn::LayerTraitConst::name(self)) .field("typ", &crate::dnn::LayerTraitConst::typ(self)) .field("preferable_target", &crate::dnn::LayerTraitConst::preferable_target(self)) .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfReciprocalLayer = core::Ptr; ptr_extern! { crate::dnn::ReciprocalLayer, cv_PtrLcv_dnn_ReciprocalLayerG_new_null_const, cv_PtrLcv_dnn_ReciprocalLayerG_delete, cv_PtrLcv_dnn_ReciprocalLayerG_getInnerPtr_const, cv_PtrLcv_dnn_ReciprocalLayerG_getInnerPtrMut } ptr_extern_ctor! { crate::dnn::ReciprocalLayer, cv_PtrLcv_dnn_ReciprocalLayerG_new_const_ReciprocalLayer } impl core::Ptr { #[inline] pub fn as_raw_PtrOfReciprocalLayer(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfReciprocalLayer(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::dnn::ReciprocalLayerTraitConst for core::Ptr { #[inline] fn as_raw_ReciprocalLayer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::ReciprocalLayerTrait for core::Ptr { #[inline] fn as_raw_mut_ReciprocalLayer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_ReciprocalLayerG_to_PtrOfAlgorithm } impl crate::dnn::ActivationLayerTraitConst for core::Ptr { #[inline] fn as_raw_ActivationLayer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::ActivationLayerTrait for core::Ptr { #[inline] fn as_raw_mut_ActivationLayer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_ReciprocalLayerG_to_PtrOfActivationLayer } impl crate::dnn::LayerTraitConst for core::Ptr { #[inline] fn as_raw_Layer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::LayerTrait for core::Ptr { #[inline] fn as_raw_mut_Layer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_ReciprocalLayerG_to_PtrOfLayer } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfReciprocalLayer") .field("blobs", &crate::dnn::LayerTraitConst::blobs(self)) .field("name", &crate::dnn::LayerTraitConst::name(self)) .field("typ", &crate::dnn::LayerTraitConst::typ(self)) .field("preferable_target", &crate::dnn::LayerTraitConst::preferable_target(self)) .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfReduceLayer = core::Ptr; ptr_extern! { crate::dnn::ReduceLayer, cv_PtrLcv_dnn_ReduceLayerG_new_null_const, cv_PtrLcv_dnn_ReduceLayerG_delete, cv_PtrLcv_dnn_ReduceLayerG_getInnerPtr_const, cv_PtrLcv_dnn_ReduceLayerG_getInnerPtrMut } ptr_extern_ctor! { crate::dnn::ReduceLayer, cv_PtrLcv_dnn_ReduceLayerG_new_const_ReduceLayer } impl core::Ptr { #[inline] pub fn as_raw_PtrOfReduceLayer(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfReduceLayer(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::dnn::ReduceLayerTraitConst for core::Ptr { #[inline] fn as_raw_ReduceLayer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::ReduceLayerTrait for core::Ptr { #[inline] fn as_raw_mut_ReduceLayer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_ReduceLayerG_to_PtrOfAlgorithm } impl crate::dnn::LayerTraitConst for core::Ptr { #[inline] fn as_raw_Layer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::LayerTrait for core::Ptr { #[inline] fn as_raw_mut_Layer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_ReduceLayerG_to_PtrOfLayer } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfReduceLayer") .field("blobs", &crate::dnn::LayerTraitConst::blobs(self)) .field("name", &crate::dnn::LayerTraitConst::name(self)) .field("typ", &crate::dnn::LayerTraitConst::typ(self)) .field("preferable_target", &crate::dnn::LayerTraitConst::preferable_target(self)) .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfRegionLayer = core::Ptr; ptr_extern! { crate::dnn::RegionLayer, cv_PtrLcv_dnn_RegionLayerG_new_null_const, cv_PtrLcv_dnn_RegionLayerG_delete, cv_PtrLcv_dnn_RegionLayerG_getInnerPtr_const, cv_PtrLcv_dnn_RegionLayerG_getInnerPtrMut } ptr_extern_ctor! { crate::dnn::RegionLayer, cv_PtrLcv_dnn_RegionLayerG_new_const_RegionLayer } impl core::Ptr { #[inline] pub fn as_raw_PtrOfRegionLayer(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfRegionLayer(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::dnn::RegionLayerTraitConst for core::Ptr { #[inline] fn as_raw_RegionLayer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::RegionLayerTrait for core::Ptr { #[inline] fn as_raw_mut_RegionLayer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_RegionLayerG_to_PtrOfAlgorithm } impl crate::dnn::LayerTraitConst for core::Ptr { #[inline] fn as_raw_Layer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::LayerTrait for core::Ptr { #[inline] fn as_raw_mut_Layer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_RegionLayerG_to_PtrOfLayer } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfRegionLayer") .field("nms_threshold", &crate::dnn::RegionLayerTraitConst::nms_threshold(self)) .field("blobs", &crate::dnn::LayerTraitConst::blobs(self)) .field("name", &crate::dnn::LayerTraitConst::name(self)) .field("typ", &crate::dnn::LayerTraitConst::typ(self)) .field("preferable_target", &crate::dnn::LayerTraitConst::preferable_target(self)) .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfReorgLayer = core::Ptr; ptr_extern! { crate::dnn::ReorgLayer, cv_PtrLcv_dnn_ReorgLayerG_new_null_const, cv_PtrLcv_dnn_ReorgLayerG_delete, cv_PtrLcv_dnn_ReorgLayerG_getInnerPtr_const, cv_PtrLcv_dnn_ReorgLayerG_getInnerPtrMut } ptr_extern_ctor! { crate::dnn::ReorgLayer, cv_PtrLcv_dnn_ReorgLayerG_new_const_ReorgLayer } impl core::Ptr { #[inline] pub fn as_raw_PtrOfReorgLayer(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfReorgLayer(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::dnn::ReorgLayerTraitConst for core::Ptr { #[inline] fn as_raw_ReorgLayer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::ReorgLayerTrait for core::Ptr { #[inline] fn as_raw_mut_ReorgLayer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_ReorgLayerG_to_PtrOfAlgorithm } impl crate::dnn::LayerTraitConst for core::Ptr { #[inline] fn as_raw_Layer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::LayerTrait for core::Ptr { #[inline] fn as_raw_mut_Layer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_ReorgLayerG_to_PtrOfLayer } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfReorgLayer") .field("blobs", &crate::dnn::LayerTraitConst::blobs(self)) .field("name", &crate::dnn::LayerTraitConst::name(self)) .field("typ", &crate::dnn::LayerTraitConst::typ(self)) .field("preferable_target", &crate::dnn::LayerTraitConst::preferable_target(self)) .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfRequantizeLayer = core::Ptr; ptr_extern! { crate::dnn::RequantizeLayer, cv_PtrLcv_dnn_RequantizeLayerG_new_null_const, cv_PtrLcv_dnn_RequantizeLayerG_delete, cv_PtrLcv_dnn_RequantizeLayerG_getInnerPtr_const, cv_PtrLcv_dnn_RequantizeLayerG_getInnerPtrMut } ptr_extern_ctor! { crate::dnn::RequantizeLayer, cv_PtrLcv_dnn_RequantizeLayerG_new_const_RequantizeLayer } impl core::Ptr { #[inline] pub fn as_raw_PtrOfRequantizeLayer(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfRequantizeLayer(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::dnn::RequantizeLayerTraitConst for core::Ptr { #[inline] fn as_raw_RequantizeLayer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::RequantizeLayerTrait for core::Ptr { #[inline] fn as_raw_mut_RequantizeLayer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_RequantizeLayerG_to_PtrOfAlgorithm } impl crate::dnn::LayerTraitConst for core::Ptr { #[inline] fn as_raw_Layer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::LayerTrait for core::Ptr { #[inline] fn as_raw_mut_Layer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_RequantizeLayerG_to_PtrOfLayer } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfRequantizeLayer") .field("scale", &crate::dnn::RequantizeLayerTraitConst::scale(self)) .field("shift", &crate::dnn::RequantizeLayerTraitConst::shift(self)) .field("blobs", &crate::dnn::LayerTraitConst::blobs(self)) .field("name", &crate::dnn::LayerTraitConst::name(self)) .field("typ", &crate::dnn::LayerTraitConst::typ(self)) .field("preferable_target", &crate::dnn::LayerTraitConst::preferable_target(self)) .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfReshapeLayer = core::Ptr; ptr_extern! { crate::dnn::ReshapeLayer, cv_PtrLcv_dnn_ReshapeLayerG_new_null_const, cv_PtrLcv_dnn_ReshapeLayerG_delete, cv_PtrLcv_dnn_ReshapeLayerG_getInnerPtr_const, cv_PtrLcv_dnn_ReshapeLayerG_getInnerPtrMut } ptr_extern_ctor! { crate::dnn::ReshapeLayer, cv_PtrLcv_dnn_ReshapeLayerG_new_const_ReshapeLayer } impl core::Ptr { #[inline] pub fn as_raw_PtrOfReshapeLayer(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfReshapeLayer(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::dnn::ReshapeLayerTraitConst for core::Ptr { #[inline] fn as_raw_ReshapeLayer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::ReshapeLayerTrait for core::Ptr { #[inline] fn as_raw_mut_ReshapeLayer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_ReshapeLayerG_to_PtrOfAlgorithm } impl crate::dnn::LayerTraitConst for core::Ptr { #[inline] fn as_raw_Layer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::LayerTrait for core::Ptr { #[inline] fn as_raw_mut_Layer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_ReshapeLayerG_to_PtrOfLayer } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfReshapeLayer") .field("new_shape_desc", &crate::dnn::ReshapeLayerTraitConst::new_shape_desc(self)) .field("new_shape_range", &crate::dnn::ReshapeLayerTraitConst::new_shape_range(self)) .field("blobs", &crate::dnn::LayerTraitConst::blobs(self)) .field("name", &crate::dnn::LayerTraitConst::name(self)) .field("typ", &crate::dnn::LayerTraitConst::typ(self)) .field("preferable_target", &crate::dnn::LayerTraitConst::preferable_target(self)) .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfResizeLayer = core::Ptr; ptr_extern! { crate::dnn::ResizeLayer, cv_PtrLcv_dnn_ResizeLayerG_new_null_const, cv_PtrLcv_dnn_ResizeLayerG_delete, cv_PtrLcv_dnn_ResizeLayerG_getInnerPtr_const, cv_PtrLcv_dnn_ResizeLayerG_getInnerPtrMut } ptr_extern_ctor! { crate::dnn::ResizeLayer, cv_PtrLcv_dnn_ResizeLayerG_new_const_ResizeLayer } impl core::Ptr { #[inline] pub fn as_raw_PtrOfResizeLayer(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfResizeLayer(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::dnn::ResizeLayerTraitConst for core::Ptr { #[inline] fn as_raw_ResizeLayer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::ResizeLayerTrait for core::Ptr { #[inline] fn as_raw_mut_ResizeLayer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_ResizeLayerG_to_PtrOfAlgorithm } impl crate::dnn::LayerTraitConst for core::Ptr { #[inline] fn as_raw_Layer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::LayerTrait for core::Ptr { #[inline] fn as_raw_mut_Layer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_ResizeLayerG_to_PtrOfLayer } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfResizeLayer") .field("blobs", &crate::dnn::LayerTraitConst::blobs(self)) .field("name", &crate::dnn::LayerTraitConst::name(self)) .field("typ", &crate::dnn::LayerTraitConst::typ(self)) .field("preferable_target", &crate::dnn::LayerTraitConst::preferable_target(self)) .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfRoundLayer = core::Ptr; ptr_extern! { crate::dnn::RoundLayer, cv_PtrLcv_dnn_RoundLayerG_new_null_const, cv_PtrLcv_dnn_RoundLayerG_delete, cv_PtrLcv_dnn_RoundLayerG_getInnerPtr_const, cv_PtrLcv_dnn_RoundLayerG_getInnerPtrMut } ptr_extern_ctor! { crate::dnn::RoundLayer, cv_PtrLcv_dnn_RoundLayerG_new_const_RoundLayer } impl core::Ptr { #[inline] pub fn as_raw_PtrOfRoundLayer(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfRoundLayer(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::dnn::RoundLayerTraitConst for core::Ptr { #[inline] fn as_raw_RoundLayer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::RoundLayerTrait for core::Ptr { #[inline] fn as_raw_mut_RoundLayer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_RoundLayerG_to_PtrOfAlgorithm } impl crate::dnn::ActivationLayerTraitConst for core::Ptr { #[inline] fn as_raw_ActivationLayer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::ActivationLayerTrait for core::Ptr { #[inline] fn as_raw_mut_ActivationLayer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_RoundLayerG_to_PtrOfActivationLayer } impl crate::dnn::LayerTraitConst for core::Ptr { #[inline] fn as_raw_Layer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::LayerTrait for core::Ptr { #[inline] fn as_raw_mut_Layer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_RoundLayerG_to_PtrOfLayer } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfRoundLayer") .field("blobs", &crate::dnn::LayerTraitConst::blobs(self)) .field("name", &crate::dnn::LayerTraitConst::name(self)) .field("typ", &crate::dnn::LayerTraitConst::typ(self)) .field("preferable_target", &crate::dnn::LayerTraitConst::preferable_target(self)) .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfScaleLayer = core::Ptr; ptr_extern! { crate::dnn::ScaleLayer, cv_PtrLcv_dnn_ScaleLayerG_new_null_const, cv_PtrLcv_dnn_ScaleLayerG_delete, cv_PtrLcv_dnn_ScaleLayerG_getInnerPtr_const, cv_PtrLcv_dnn_ScaleLayerG_getInnerPtrMut } ptr_extern_ctor! { crate::dnn::ScaleLayer, cv_PtrLcv_dnn_ScaleLayerG_new_const_ScaleLayer } impl core::Ptr { #[inline] pub fn as_raw_PtrOfScaleLayer(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfScaleLayer(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::dnn::ScaleLayerTraitConst for core::Ptr { #[inline] fn as_raw_ScaleLayer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::ScaleLayerTrait for core::Ptr { #[inline] fn as_raw_mut_ScaleLayer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_ScaleLayerG_to_PtrOfAlgorithm } impl crate::dnn::LayerTraitConst for core::Ptr { #[inline] fn as_raw_Layer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::LayerTrait for core::Ptr { #[inline] fn as_raw_mut_Layer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_ScaleLayerG_to_PtrOfLayer } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfScaleLayer") .field("has_bias", &crate::dnn::ScaleLayerTraitConst::has_bias(self)) .field("axis", &crate::dnn::ScaleLayerTraitConst::axis(self)) .field("mode", &crate::dnn::ScaleLayerTraitConst::mode(self)) .field("blobs", &crate::dnn::LayerTraitConst::blobs(self)) .field("name", &crate::dnn::LayerTraitConst::name(self)) .field("typ", &crate::dnn::LayerTraitConst::typ(self)) .field("preferable_target", &crate::dnn::LayerTraitConst::preferable_target(self)) .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfScaleLayerInt8 = core::Ptr; ptr_extern! { crate::dnn::ScaleLayerInt8, cv_PtrLcv_dnn_ScaleLayerInt8G_new_null_const, cv_PtrLcv_dnn_ScaleLayerInt8G_delete, cv_PtrLcv_dnn_ScaleLayerInt8G_getInnerPtr_const, cv_PtrLcv_dnn_ScaleLayerInt8G_getInnerPtrMut } ptr_extern_ctor! { crate::dnn::ScaleLayerInt8, cv_PtrLcv_dnn_ScaleLayerInt8G_new_const_ScaleLayerInt8 } impl core::Ptr { #[inline] pub fn as_raw_PtrOfScaleLayerInt8(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfScaleLayerInt8(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::dnn::ScaleLayerInt8TraitConst for core::Ptr { #[inline] fn as_raw_ScaleLayerInt8(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::ScaleLayerInt8Trait for core::Ptr { #[inline] fn as_raw_mut_ScaleLayerInt8(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_ScaleLayerInt8G_to_PtrOfAlgorithm } impl crate::dnn::LayerTraitConst for core::Ptr { #[inline] fn as_raw_Layer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::LayerTrait for core::Ptr { #[inline] fn as_raw_mut_Layer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_ScaleLayerInt8G_to_PtrOfLayer } impl crate::dnn::ScaleLayerTraitConst for core::Ptr { #[inline] fn as_raw_ScaleLayer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::ScaleLayerTrait for core::Ptr { #[inline] fn as_raw_mut_ScaleLayer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_ScaleLayerInt8G_to_PtrOfScaleLayer } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfScaleLayerInt8") .field("output_sc", &crate::dnn::ScaleLayerInt8TraitConst::output_sc(self)) .field("output_zp", &crate::dnn::ScaleLayerInt8TraitConst::output_zp(self)) .field("blobs", &crate::dnn::LayerTraitConst::blobs(self)) .field("name", &crate::dnn::LayerTraitConst::name(self)) .field("typ", &crate::dnn::LayerTraitConst::typ(self)) .field("preferable_target", &crate::dnn::LayerTraitConst::preferable_target(self)) .field("has_bias", &crate::dnn::ScaleLayerTraitConst::has_bias(self)) .field("axis", &crate::dnn::ScaleLayerTraitConst::axis(self)) .field("mode", &crate::dnn::ScaleLayerTraitConst::mode(self)) .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfScatterLayer = core::Ptr; ptr_extern! { crate::dnn::ScatterLayer, cv_PtrLcv_dnn_ScatterLayerG_new_null_const, cv_PtrLcv_dnn_ScatterLayerG_delete, cv_PtrLcv_dnn_ScatterLayerG_getInnerPtr_const, cv_PtrLcv_dnn_ScatterLayerG_getInnerPtrMut } ptr_extern_ctor! { crate::dnn::ScatterLayer, cv_PtrLcv_dnn_ScatterLayerG_new_const_ScatterLayer } impl core::Ptr { #[inline] pub fn as_raw_PtrOfScatterLayer(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfScatterLayer(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::dnn::ScatterLayerTraitConst for core::Ptr { #[inline] fn as_raw_ScatterLayer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::ScatterLayerTrait for core::Ptr { #[inline] fn as_raw_mut_ScatterLayer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_ScatterLayerG_to_PtrOfAlgorithm } impl crate::dnn::LayerTraitConst for core::Ptr { #[inline] fn as_raw_Layer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::LayerTrait for core::Ptr { #[inline] fn as_raw_mut_Layer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_ScatterLayerG_to_PtrOfLayer } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfScatterLayer") .field("blobs", &crate::dnn::LayerTraitConst::blobs(self)) .field("name", &crate::dnn::LayerTraitConst::name(self)) .field("typ", &crate::dnn::LayerTraitConst::typ(self)) .field("preferable_target", &crate::dnn::LayerTraitConst::preferable_target(self)) .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfScatterNDLayer = core::Ptr; ptr_extern! { crate::dnn::ScatterNDLayer, cv_PtrLcv_dnn_ScatterNDLayerG_new_null_const, cv_PtrLcv_dnn_ScatterNDLayerG_delete, cv_PtrLcv_dnn_ScatterNDLayerG_getInnerPtr_const, cv_PtrLcv_dnn_ScatterNDLayerG_getInnerPtrMut } ptr_extern_ctor! { crate::dnn::ScatterNDLayer, cv_PtrLcv_dnn_ScatterNDLayerG_new_const_ScatterNDLayer } impl core::Ptr { #[inline] pub fn as_raw_PtrOfScatterNDLayer(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfScatterNDLayer(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::dnn::ScatterNDLayerTraitConst for core::Ptr { #[inline] fn as_raw_ScatterNDLayer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::ScatterNDLayerTrait for core::Ptr { #[inline] fn as_raw_mut_ScatterNDLayer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_ScatterNDLayerG_to_PtrOfAlgorithm } impl crate::dnn::LayerTraitConst for core::Ptr { #[inline] fn as_raw_Layer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::LayerTrait for core::Ptr { #[inline] fn as_raw_mut_Layer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_ScatterNDLayerG_to_PtrOfLayer } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfScatterNDLayer") .field("blobs", &crate::dnn::LayerTraitConst::blobs(self)) .field("name", &crate::dnn::LayerTraitConst::name(self)) .field("typ", &crate::dnn::LayerTraitConst::typ(self)) .field("preferable_target", &crate::dnn::LayerTraitConst::preferable_target(self)) .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfSeluLayer = core::Ptr; ptr_extern! { crate::dnn::SeluLayer, cv_PtrLcv_dnn_SeluLayerG_new_null_const, cv_PtrLcv_dnn_SeluLayerG_delete, cv_PtrLcv_dnn_SeluLayerG_getInnerPtr_const, cv_PtrLcv_dnn_SeluLayerG_getInnerPtrMut } ptr_extern_ctor! { crate::dnn::SeluLayer, cv_PtrLcv_dnn_SeluLayerG_new_const_SeluLayer } impl core::Ptr { #[inline] pub fn as_raw_PtrOfSeluLayer(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfSeluLayer(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::dnn::SeluLayerTraitConst for core::Ptr { #[inline] fn as_raw_SeluLayer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::SeluLayerTrait for core::Ptr { #[inline] fn as_raw_mut_SeluLayer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_SeluLayerG_to_PtrOfAlgorithm } impl crate::dnn::ActivationLayerTraitConst for core::Ptr { #[inline] fn as_raw_ActivationLayer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::ActivationLayerTrait for core::Ptr { #[inline] fn as_raw_mut_ActivationLayer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_SeluLayerG_to_PtrOfActivationLayer } impl crate::dnn::LayerTraitConst for core::Ptr { #[inline] fn as_raw_Layer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::LayerTrait for core::Ptr { #[inline] fn as_raw_mut_Layer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_SeluLayerG_to_PtrOfLayer } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfSeluLayer") .field("alpha", &crate::dnn::SeluLayerTraitConst::alpha(self)) .field("gamma", &crate::dnn::SeluLayerTraitConst::gamma(self)) .field("blobs", &crate::dnn::LayerTraitConst::blobs(self)) .field("name", &crate::dnn::LayerTraitConst::name(self)) .field("typ", &crate::dnn::LayerTraitConst::typ(self)) .field("preferable_target", &crate::dnn::LayerTraitConst::preferable_target(self)) .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfShiftLayer = core::Ptr; ptr_extern! { crate::dnn::ShiftLayer, cv_PtrLcv_dnn_ShiftLayerG_new_null_const, cv_PtrLcv_dnn_ShiftLayerG_delete, cv_PtrLcv_dnn_ShiftLayerG_getInnerPtr_const, cv_PtrLcv_dnn_ShiftLayerG_getInnerPtrMut } ptr_extern_ctor! { crate::dnn::ShiftLayer, cv_PtrLcv_dnn_ShiftLayerG_new_const_ShiftLayer } impl core::Ptr { #[inline] pub fn as_raw_PtrOfShiftLayer(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfShiftLayer(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::dnn::ShiftLayerTraitConst for core::Ptr { #[inline] fn as_raw_ShiftLayer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::ShiftLayerTrait for core::Ptr { #[inline] fn as_raw_mut_ShiftLayer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_ShiftLayerG_to_PtrOfAlgorithm } impl crate::dnn::LayerTraitConst for core::Ptr { #[inline] fn as_raw_Layer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::LayerTrait for core::Ptr { #[inline] fn as_raw_mut_Layer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_ShiftLayerG_to_PtrOfLayer } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfShiftLayer") .field("blobs", &crate::dnn::LayerTraitConst::blobs(self)) .field("name", &crate::dnn::LayerTraitConst::name(self)) .field("typ", &crate::dnn::LayerTraitConst::typ(self)) .field("preferable_target", &crate::dnn::LayerTraitConst::preferable_target(self)) .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfShiftLayerInt8 = core::Ptr; ptr_extern! { crate::dnn::ShiftLayerInt8, cv_PtrLcv_dnn_ShiftLayerInt8G_new_null_const, cv_PtrLcv_dnn_ShiftLayerInt8G_delete, cv_PtrLcv_dnn_ShiftLayerInt8G_getInnerPtr_const, cv_PtrLcv_dnn_ShiftLayerInt8G_getInnerPtrMut } ptr_extern_ctor! { crate::dnn::ShiftLayerInt8, cv_PtrLcv_dnn_ShiftLayerInt8G_new_const_ShiftLayerInt8 } impl core::Ptr { #[inline] pub fn as_raw_PtrOfShiftLayerInt8(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfShiftLayerInt8(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::dnn::ShiftLayerInt8TraitConst for core::Ptr { #[inline] fn as_raw_ShiftLayerInt8(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::ShiftLayerInt8Trait for core::Ptr { #[inline] fn as_raw_mut_ShiftLayerInt8(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_ShiftLayerInt8G_to_PtrOfAlgorithm } impl crate::dnn::LayerTraitConst for core::Ptr { #[inline] fn as_raw_Layer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::LayerTrait for core::Ptr { #[inline] fn as_raw_mut_Layer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_ShiftLayerInt8G_to_PtrOfLayer } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfShiftLayerInt8") .field("blobs", &crate::dnn::LayerTraitConst::blobs(self)) .field("name", &crate::dnn::LayerTraitConst::name(self)) .field("typ", &crate::dnn::LayerTraitConst::typ(self)) .field("preferable_target", &crate::dnn::LayerTraitConst::preferable_target(self)) .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfShrinkLayer = core::Ptr; ptr_extern! { crate::dnn::ShrinkLayer, cv_PtrLcv_dnn_ShrinkLayerG_new_null_const, cv_PtrLcv_dnn_ShrinkLayerG_delete, cv_PtrLcv_dnn_ShrinkLayerG_getInnerPtr_const, cv_PtrLcv_dnn_ShrinkLayerG_getInnerPtrMut } ptr_extern_ctor! { crate::dnn::ShrinkLayer, cv_PtrLcv_dnn_ShrinkLayerG_new_const_ShrinkLayer } impl core::Ptr { #[inline] pub fn as_raw_PtrOfShrinkLayer(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfShrinkLayer(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::dnn::ShrinkLayerTraitConst for core::Ptr { #[inline] fn as_raw_ShrinkLayer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::ShrinkLayerTrait for core::Ptr { #[inline] fn as_raw_mut_ShrinkLayer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_ShrinkLayerG_to_PtrOfAlgorithm } impl crate::dnn::ActivationLayerTraitConst for core::Ptr { #[inline] fn as_raw_ActivationLayer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::ActivationLayerTrait for core::Ptr { #[inline] fn as_raw_mut_ActivationLayer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_ShrinkLayerG_to_PtrOfActivationLayer } impl crate::dnn::LayerTraitConst for core::Ptr { #[inline] fn as_raw_Layer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::LayerTrait for core::Ptr { #[inline] fn as_raw_mut_Layer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_ShrinkLayerG_to_PtrOfLayer } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfShrinkLayer") .field("bias", &crate::dnn::ShrinkLayerTraitConst::bias(self)) .field("lambd", &crate::dnn::ShrinkLayerTraitConst::lambd(self)) .field("blobs", &crate::dnn::LayerTraitConst::blobs(self)) .field("name", &crate::dnn::LayerTraitConst::name(self)) .field("typ", &crate::dnn::LayerTraitConst::typ(self)) .field("preferable_target", &crate::dnn::LayerTraitConst::preferable_target(self)) .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfShuffleChannelLayer = core::Ptr; ptr_extern! { crate::dnn::ShuffleChannelLayer, cv_PtrLcv_dnn_ShuffleChannelLayerG_new_null_const, cv_PtrLcv_dnn_ShuffleChannelLayerG_delete, cv_PtrLcv_dnn_ShuffleChannelLayerG_getInnerPtr_const, cv_PtrLcv_dnn_ShuffleChannelLayerG_getInnerPtrMut } ptr_extern_ctor! { crate::dnn::ShuffleChannelLayer, cv_PtrLcv_dnn_ShuffleChannelLayerG_new_const_ShuffleChannelLayer } impl core::Ptr { #[inline] pub fn as_raw_PtrOfShuffleChannelLayer(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfShuffleChannelLayer(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::dnn::ShuffleChannelLayerTraitConst for core::Ptr { #[inline] fn as_raw_ShuffleChannelLayer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::ShuffleChannelLayerTrait for core::Ptr { #[inline] fn as_raw_mut_ShuffleChannelLayer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_ShuffleChannelLayerG_to_PtrOfAlgorithm } impl crate::dnn::LayerTraitConst for core::Ptr { #[inline] fn as_raw_Layer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::LayerTrait for core::Ptr { #[inline] fn as_raw_mut_Layer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_ShuffleChannelLayerG_to_PtrOfLayer } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfShuffleChannelLayer") .field("group", &crate::dnn::ShuffleChannelLayerTraitConst::group(self)) .field("blobs", &crate::dnn::LayerTraitConst::blobs(self)) .field("name", &crate::dnn::LayerTraitConst::name(self)) .field("typ", &crate::dnn::LayerTraitConst::typ(self)) .field("preferable_target", &crate::dnn::LayerTraitConst::preferable_target(self)) .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfSigmoidLayer = core::Ptr; ptr_extern! { crate::dnn::SigmoidLayer, cv_PtrLcv_dnn_SigmoidLayerG_new_null_const, cv_PtrLcv_dnn_SigmoidLayerG_delete, cv_PtrLcv_dnn_SigmoidLayerG_getInnerPtr_const, cv_PtrLcv_dnn_SigmoidLayerG_getInnerPtrMut } ptr_extern_ctor! { crate::dnn::SigmoidLayer, cv_PtrLcv_dnn_SigmoidLayerG_new_const_SigmoidLayer } impl core::Ptr { #[inline] pub fn as_raw_PtrOfSigmoidLayer(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfSigmoidLayer(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::dnn::SigmoidLayerTraitConst for core::Ptr { #[inline] fn as_raw_SigmoidLayer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::SigmoidLayerTrait for core::Ptr { #[inline] fn as_raw_mut_SigmoidLayer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_SigmoidLayerG_to_PtrOfAlgorithm } impl crate::dnn::ActivationLayerTraitConst for core::Ptr { #[inline] fn as_raw_ActivationLayer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::ActivationLayerTrait for core::Ptr { #[inline] fn as_raw_mut_ActivationLayer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_SigmoidLayerG_to_PtrOfActivationLayer } impl crate::dnn::LayerTraitConst for core::Ptr { #[inline] fn as_raw_Layer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::LayerTrait for core::Ptr { #[inline] fn as_raw_mut_Layer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_SigmoidLayerG_to_PtrOfLayer } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfSigmoidLayer") .field("blobs", &crate::dnn::LayerTraitConst::blobs(self)) .field("name", &crate::dnn::LayerTraitConst::name(self)) .field("typ", &crate::dnn::LayerTraitConst::typ(self)) .field("preferable_target", &crate::dnn::LayerTraitConst::preferable_target(self)) .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfSignLayer = core::Ptr; ptr_extern! { crate::dnn::SignLayer, cv_PtrLcv_dnn_SignLayerG_new_null_const, cv_PtrLcv_dnn_SignLayerG_delete, cv_PtrLcv_dnn_SignLayerG_getInnerPtr_const, cv_PtrLcv_dnn_SignLayerG_getInnerPtrMut } ptr_extern_ctor! { crate::dnn::SignLayer, cv_PtrLcv_dnn_SignLayerG_new_const_SignLayer } impl core::Ptr { #[inline] pub fn as_raw_PtrOfSignLayer(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfSignLayer(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::dnn::SignLayerTraitConst for core::Ptr { #[inline] fn as_raw_SignLayer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::SignLayerTrait for core::Ptr { #[inline] fn as_raw_mut_SignLayer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_SignLayerG_to_PtrOfAlgorithm } impl crate::dnn::ActivationLayerTraitConst for core::Ptr { #[inline] fn as_raw_ActivationLayer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::ActivationLayerTrait for core::Ptr { #[inline] fn as_raw_mut_ActivationLayer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_SignLayerG_to_PtrOfActivationLayer } impl crate::dnn::LayerTraitConst for core::Ptr { #[inline] fn as_raw_Layer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::LayerTrait for core::Ptr { #[inline] fn as_raw_mut_Layer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_SignLayerG_to_PtrOfLayer } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfSignLayer") .field("blobs", &crate::dnn::LayerTraitConst::blobs(self)) .field("name", &crate::dnn::LayerTraitConst::name(self)) .field("typ", &crate::dnn::LayerTraitConst::typ(self)) .field("preferable_target", &crate::dnn::LayerTraitConst::preferable_target(self)) .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfSinLayer = core::Ptr; ptr_extern! { crate::dnn::SinLayer, cv_PtrLcv_dnn_SinLayerG_new_null_const, cv_PtrLcv_dnn_SinLayerG_delete, cv_PtrLcv_dnn_SinLayerG_getInnerPtr_const, cv_PtrLcv_dnn_SinLayerG_getInnerPtrMut } ptr_extern_ctor! { crate::dnn::SinLayer, cv_PtrLcv_dnn_SinLayerG_new_const_SinLayer } impl core::Ptr { #[inline] pub fn as_raw_PtrOfSinLayer(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfSinLayer(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::dnn::SinLayerTraitConst for core::Ptr { #[inline] fn as_raw_SinLayer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::SinLayerTrait for core::Ptr { #[inline] fn as_raw_mut_SinLayer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_SinLayerG_to_PtrOfAlgorithm } impl crate::dnn::ActivationLayerTraitConst for core::Ptr { #[inline] fn as_raw_ActivationLayer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::ActivationLayerTrait for core::Ptr { #[inline] fn as_raw_mut_ActivationLayer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_SinLayerG_to_PtrOfActivationLayer } impl crate::dnn::LayerTraitConst for core::Ptr { #[inline] fn as_raw_Layer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::LayerTrait for core::Ptr { #[inline] fn as_raw_mut_Layer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_SinLayerG_to_PtrOfLayer } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfSinLayer") .field("blobs", &crate::dnn::LayerTraitConst::blobs(self)) .field("name", &crate::dnn::LayerTraitConst::name(self)) .field("typ", &crate::dnn::LayerTraitConst::typ(self)) .field("preferable_target", &crate::dnn::LayerTraitConst::preferable_target(self)) .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfSinhLayer = core::Ptr; ptr_extern! { crate::dnn::SinhLayer, cv_PtrLcv_dnn_SinhLayerG_new_null_const, cv_PtrLcv_dnn_SinhLayerG_delete, cv_PtrLcv_dnn_SinhLayerG_getInnerPtr_const, cv_PtrLcv_dnn_SinhLayerG_getInnerPtrMut } ptr_extern_ctor! { crate::dnn::SinhLayer, cv_PtrLcv_dnn_SinhLayerG_new_const_SinhLayer } impl core::Ptr { #[inline] pub fn as_raw_PtrOfSinhLayer(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfSinhLayer(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::dnn::SinhLayerTraitConst for core::Ptr { #[inline] fn as_raw_SinhLayer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::SinhLayerTrait for core::Ptr { #[inline] fn as_raw_mut_SinhLayer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_SinhLayerG_to_PtrOfAlgorithm } impl crate::dnn::ActivationLayerTraitConst for core::Ptr { #[inline] fn as_raw_ActivationLayer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::ActivationLayerTrait for core::Ptr { #[inline] fn as_raw_mut_ActivationLayer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_SinhLayerG_to_PtrOfActivationLayer } impl crate::dnn::LayerTraitConst for core::Ptr { #[inline] fn as_raw_Layer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::LayerTrait for core::Ptr { #[inline] fn as_raw_mut_Layer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_SinhLayerG_to_PtrOfLayer } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfSinhLayer") .field("blobs", &crate::dnn::LayerTraitConst::blobs(self)) .field("name", &crate::dnn::LayerTraitConst::name(self)) .field("typ", &crate::dnn::LayerTraitConst::typ(self)) .field("preferable_target", &crate::dnn::LayerTraitConst::preferable_target(self)) .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfSliceLayer = core::Ptr; ptr_extern! { crate::dnn::SliceLayer, cv_PtrLcv_dnn_SliceLayerG_new_null_const, cv_PtrLcv_dnn_SliceLayerG_delete, cv_PtrLcv_dnn_SliceLayerG_getInnerPtr_const, cv_PtrLcv_dnn_SliceLayerG_getInnerPtrMut } ptr_extern_ctor! { crate::dnn::SliceLayer, cv_PtrLcv_dnn_SliceLayerG_new_const_SliceLayer } impl core::Ptr { #[inline] pub fn as_raw_PtrOfSliceLayer(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfSliceLayer(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::dnn::SliceLayerTraitConst for core::Ptr { #[inline] fn as_raw_SliceLayer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::SliceLayerTrait for core::Ptr { #[inline] fn as_raw_mut_SliceLayer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_SliceLayerG_to_PtrOfAlgorithm } impl crate::dnn::LayerTraitConst for core::Ptr { #[inline] fn as_raw_Layer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::LayerTrait for core::Ptr { #[inline] fn as_raw_mut_Layer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_SliceLayerG_to_PtrOfLayer } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfSliceLayer") .field("slice_ranges", &crate::dnn::SliceLayerTraitConst::slice_ranges(self)) .field("slice_steps", &crate::dnn::SliceLayerTraitConst::slice_steps(self)) .field("axis", &crate::dnn::SliceLayerTraitConst::axis(self)) .field("num_split", &crate::dnn::SliceLayerTraitConst::num_split(self)) .field("blobs", &crate::dnn::LayerTraitConst::blobs(self)) .field("name", &crate::dnn::LayerTraitConst::name(self)) .field("typ", &crate::dnn::LayerTraitConst::typ(self)) .field("preferable_target", &crate::dnn::LayerTraitConst::preferable_target(self)) .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfSoftmaxLayer = core::Ptr; ptr_extern! { crate::dnn::SoftmaxLayer, cv_PtrLcv_dnn_SoftmaxLayerG_new_null_const, cv_PtrLcv_dnn_SoftmaxLayerG_delete, cv_PtrLcv_dnn_SoftmaxLayerG_getInnerPtr_const, cv_PtrLcv_dnn_SoftmaxLayerG_getInnerPtrMut } ptr_extern_ctor! { crate::dnn::SoftmaxLayer, cv_PtrLcv_dnn_SoftmaxLayerG_new_const_SoftmaxLayer } impl core::Ptr { #[inline] pub fn as_raw_PtrOfSoftmaxLayer(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfSoftmaxLayer(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::dnn::SoftmaxLayerTraitConst for core::Ptr { #[inline] fn as_raw_SoftmaxLayer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::SoftmaxLayerTrait for core::Ptr { #[inline] fn as_raw_mut_SoftmaxLayer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_SoftmaxLayerG_to_PtrOfAlgorithm } impl crate::dnn::LayerTraitConst for core::Ptr { #[inline] fn as_raw_Layer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::LayerTrait for core::Ptr { #[inline] fn as_raw_mut_Layer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_SoftmaxLayerG_to_PtrOfLayer } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfSoftmaxLayer") .field("log_soft_max", &crate::dnn::SoftmaxLayerTraitConst::log_soft_max(self)) .field("blobs", &crate::dnn::LayerTraitConst::blobs(self)) .field("name", &crate::dnn::LayerTraitConst::name(self)) .field("typ", &crate::dnn::LayerTraitConst::typ(self)) .field("preferable_target", &crate::dnn::LayerTraitConst::preferable_target(self)) .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfSoftmaxLayerInt8 = core::Ptr; ptr_extern! { crate::dnn::SoftmaxLayerInt8, cv_PtrLcv_dnn_SoftmaxLayerInt8G_new_null_const, cv_PtrLcv_dnn_SoftmaxLayerInt8G_delete, cv_PtrLcv_dnn_SoftmaxLayerInt8G_getInnerPtr_const, cv_PtrLcv_dnn_SoftmaxLayerInt8G_getInnerPtrMut } ptr_extern_ctor! { crate::dnn::SoftmaxLayerInt8, cv_PtrLcv_dnn_SoftmaxLayerInt8G_new_const_SoftmaxLayerInt8 } impl core::Ptr { #[inline] pub fn as_raw_PtrOfSoftmaxLayerInt8(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfSoftmaxLayerInt8(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::dnn::SoftmaxLayerInt8TraitConst for core::Ptr { #[inline] fn as_raw_SoftmaxLayerInt8(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::SoftmaxLayerInt8Trait for core::Ptr { #[inline] fn as_raw_mut_SoftmaxLayerInt8(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_SoftmaxLayerInt8G_to_PtrOfAlgorithm } impl crate::dnn::LayerTraitConst for core::Ptr { #[inline] fn as_raw_Layer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::LayerTrait for core::Ptr { #[inline] fn as_raw_mut_Layer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_SoftmaxLayerInt8G_to_PtrOfLayer } impl crate::dnn::SoftmaxLayerTraitConst for core::Ptr { #[inline] fn as_raw_SoftmaxLayer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::SoftmaxLayerTrait for core::Ptr { #[inline] fn as_raw_mut_SoftmaxLayer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_SoftmaxLayerInt8G_to_PtrOfSoftmaxLayer } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfSoftmaxLayerInt8") .field("output_sc", &crate::dnn::SoftmaxLayerInt8TraitConst::output_sc(self)) .field("output_zp", &crate::dnn::SoftmaxLayerInt8TraitConst::output_zp(self)) .field("blobs", &crate::dnn::LayerTraitConst::blobs(self)) .field("name", &crate::dnn::LayerTraitConst::name(self)) .field("typ", &crate::dnn::LayerTraitConst::typ(self)) .field("preferable_target", &crate::dnn::LayerTraitConst::preferable_target(self)) .field("log_soft_max", &crate::dnn::SoftmaxLayerTraitConst::log_soft_max(self)) .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfSoftplusLayer = core::Ptr; ptr_extern! { crate::dnn::SoftplusLayer, cv_PtrLcv_dnn_SoftplusLayerG_new_null_const, cv_PtrLcv_dnn_SoftplusLayerG_delete, cv_PtrLcv_dnn_SoftplusLayerG_getInnerPtr_const, cv_PtrLcv_dnn_SoftplusLayerG_getInnerPtrMut } ptr_extern_ctor! { crate::dnn::SoftplusLayer, cv_PtrLcv_dnn_SoftplusLayerG_new_const_SoftplusLayer } impl core::Ptr { #[inline] pub fn as_raw_PtrOfSoftplusLayer(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfSoftplusLayer(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::dnn::SoftplusLayerTraitConst for core::Ptr { #[inline] fn as_raw_SoftplusLayer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::SoftplusLayerTrait for core::Ptr { #[inline] fn as_raw_mut_SoftplusLayer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_SoftplusLayerG_to_PtrOfAlgorithm } impl crate::dnn::ActivationLayerTraitConst for core::Ptr { #[inline] fn as_raw_ActivationLayer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::ActivationLayerTrait for core::Ptr { #[inline] fn as_raw_mut_ActivationLayer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_SoftplusLayerG_to_PtrOfActivationLayer } impl crate::dnn::LayerTraitConst for core::Ptr { #[inline] fn as_raw_Layer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::LayerTrait for core::Ptr { #[inline] fn as_raw_mut_Layer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_SoftplusLayerG_to_PtrOfLayer } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfSoftplusLayer") .field("blobs", &crate::dnn::LayerTraitConst::blobs(self)) .field("name", &crate::dnn::LayerTraitConst::name(self)) .field("typ", &crate::dnn::LayerTraitConst::typ(self)) .field("preferable_target", &crate::dnn::LayerTraitConst::preferable_target(self)) .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfSoftsignLayer = core::Ptr; ptr_extern! { crate::dnn::SoftsignLayer, cv_PtrLcv_dnn_SoftsignLayerG_new_null_const, cv_PtrLcv_dnn_SoftsignLayerG_delete, cv_PtrLcv_dnn_SoftsignLayerG_getInnerPtr_const, cv_PtrLcv_dnn_SoftsignLayerG_getInnerPtrMut } ptr_extern_ctor! { crate::dnn::SoftsignLayer, cv_PtrLcv_dnn_SoftsignLayerG_new_const_SoftsignLayer } impl core::Ptr { #[inline] pub fn as_raw_PtrOfSoftsignLayer(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfSoftsignLayer(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::dnn::SoftsignLayerTraitConst for core::Ptr { #[inline] fn as_raw_SoftsignLayer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::SoftsignLayerTrait for core::Ptr { #[inline] fn as_raw_mut_SoftsignLayer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_SoftsignLayerG_to_PtrOfAlgorithm } impl crate::dnn::ActivationLayerTraitConst for core::Ptr { #[inline] fn as_raw_ActivationLayer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::ActivationLayerTrait for core::Ptr { #[inline] fn as_raw_mut_ActivationLayer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_SoftsignLayerG_to_PtrOfActivationLayer } impl crate::dnn::LayerTraitConst for core::Ptr { #[inline] fn as_raw_Layer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::LayerTrait for core::Ptr { #[inline] fn as_raw_mut_Layer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_SoftsignLayerG_to_PtrOfLayer } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfSoftsignLayer") .field("blobs", &crate::dnn::LayerTraitConst::blobs(self)) .field("name", &crate::dnn::LayerTraitConst::name(self)) .field("typ", &crate::dnn::LayerTraitConst::typ(self)) .field("preferable_target", &crate::dnn::LayerTraitConst::preferable_target(self)) .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfSplitLayer = core::Ptr; ptr_extern! { crate::dnn::SplitLayer, cv_PtrLcv_dnn_SplitLayerG_new_null_const, cv_PtrLcv_dnn_SplitLayerG_delete, cv_PtrLcv_dnn_SplitLayerG_getInnerPtr_const, cv_PtrLcv_dnn_SplitLayerG_getInnerPtrMut } ptr_extern_ctor! { crate::dnn::SplitLayer, cv_PtrLcv_dnn_SplitLayerG_new_const_SplitLayer } impl core::Ptr { #[inline] pub fn as_raw_PtrOfSplitLayer(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfSplitLayer(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::dnn::SplitLayerTraitConst for core::Ptr { #[inline] fn as_raw_SplitLayer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::SplitLayerTrait for core::Ptr { #[inline] fn as_raw_mut_SplitLayer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_SplitLayerG_to_PtrOfAlgorithm } impl crate::dnn::LayerTraitConst for core::Ptr { #[inline] fn as_raw_Layer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::LayerTrait for core::Ptr { #[inline] fn as_raw_mut_Layer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_SplitLayerG_to_PtrOfLayer } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfSplitLayer") .field("outputs_count", &crate::dnn::SplitLayerTraitConst::outputs_count(self)) .field("blobs", &crate::dnn::LayerTraitConst::blobs(self)) .field("name", &crate::dnn::LayerTraitConst::name(self)) .field("typ", &crate::dnn::LayerTraitConst::typ(self)) .field("preferable_target", &crate::dnn::LayerTraitConst::preferable_target(self)) .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfSqrtLayer = core::Ptr; ptr_extern! { crate::dnn::SqrtLayer, cv_PtrLcv_dnn_SqrtLayerG_new_null_const, cv_PtrLcv_dnn_SqrtLayerG_delete, cv_PtrLcv_dnn_SqrtLayerG_getInnerPtr_const, cv_PtrLcv_dnn_SqrtLayerG_getInnerPtrMut } ptr_extern_ctor! { crate::dnn::SqrtLayer, cv_PtrLcv_dnn_SqrtLayerG_new_const_SqrtLayer } impl core::Ptr { #[inline] pub fn as_raw_PtrOfSqrtLayer(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfSqrtLayer(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::dnn::SqrtLayerTraitConst for core::Ptr { #[inline] fn as_raw_SqrtLayer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::SqrtLayerTrait for core::Ptr { #[inline] fn as_raw_mut_SqrtLayer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_SqrtLayerG_to_PtrOfAlgorithm } impl crate::dnn::ActivationLayerTraitConst for core::Ptr { #[inline] fn as_raw_ActivationLayer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::ActivationLayerTrait for core::Ptr { #[inline] fn as_raw_mut_ActivationLayer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_SqrtLayerG_to_PtrOfActivationLayer } impl crate::dnn::LayerTraitConst for core::Ptr { #[inline] fn as_raw_Layer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::LayerTrait for core::Ptr { #[inline] fn as_raw_mut_Layer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_SqrtLayerG_to_PtrOfLayer } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfSqrtLayer") .field("blobs", &crate::dnn::LayerTraitConst::blobs(self)) .field("name", &crate::dnn::LayerTraitConst::name(self)) .field("typ", &crate::dnn::LayerTraitConst::typ(self)) .field("preferable_target", &crate::dnn::LayerTraitConst::preferable_target(self)) .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfSwishLayer = core::Ptr; ptr_extern! { crate::dnn::SwishLayer, cv_PtrLcv_dnn_SwishLayerG_new_null_const, cv_PtrLcv_dnn_SwishLayerG_delete, cv_PtrLcv_dnn_SwishLayerG_getInnerPtr_const, cv_PtrLcv_dnn_SwishLayerG_getInnerPtrMut } ptr_extern_ctor! { crate::dnn::SwishLayer, cv_PtrLcv_dnn_SwishLayerG_new_const_SwishLayer } impl core::Ptr { #[inline] pub fn as_raw_PtrOfSwishLayer(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfSwishLayer(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::dnn::SwishLayerTraitConst for core::Ptr { #[inline] fn as_raw_SwishLayer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::SwishLayerTrait for core::Ptr { #[inline] fn as_raw_mut_SwishLayer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_SwishLayerG_to_PtrOfAlgorithm } impl crate::dnn::ActivationLayerTraitConst for core::Ptr { #[inline] fn as_raw_ActivationLayer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::ActivationLayerTrait for core::Ptr { #[inline] fn as_raw_mut_ActivationLayer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_SwishLayerG_to_PtrOfActivationLayer } impl crate::dnn::LayerTraitConst for core::Ptr { #[inline] fn as_raw_Layer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::LayerTrait for core::Ptr { #[inline] fn as_raw_mut_Layer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_SwishLayerG_to_PtrOfLayer } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfSwishLayer") .field("blobs", &crate::dnn::LayerTraitConst::blobs(self)) .field("name", &crate::dnn::LayerTraitConst::name(self)) .field("typ", &crate::dnn::LayerTraitConst::typ(self)) .field("preferable_target", &crate::dnn::LayerTraitConst::preferable_target(self)) .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfTanHLayer = core::Ptr; ptr_extern! { crate::dnn::TanHLayer, cv_PtrLcv_dnn_TanHLayerG_new_null_const, cv_PtrLcv_dnn_TanHLayerG_delete, cv_PtrLcv_dnn_TanHLayerG_getInnerPtr_const, cv_PtrLcv_dnn_TanHLayerG_getInnerPtrMut } ptr_extern_ctor! { crate::dnn::TanHLayer, cv_PtrLcv_dnn_TanHLayerG_new_const_TanHLayer } impl core::Ptr { #[inline] pub fn as_raw_PtrOfTanHLayer(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfTanHLayer(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::dnn::TanHLayerTraitConst for core::Ptr { #[inline] fn as_raw_TanHLayer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::TanHLayerTrait for core::Ptr { #[inline] fn as_raw_mut_TanHLayer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_TanHLayerG_to_PtrOfAlgorithm } impl crate::dnn::ActivationLayerTraitConst for core::Ptr { #[inline] fn as_raw_ActivationLayer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::ActivationLayerTrait for core::Ptr { #[inline] fn as_raw_mut_ActivationLayer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_TanHLayerG_to_PtrOfActivationLayer } impl crate::dnn::LayerTraitConst for core::Ptr { #[inline] fn as_raw_Layer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::LayerTrait for core::Ptr { #[inline] fn as_raw_mut_Layer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_TanHLayerG_to_PtrOfLayer } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfTanHLayer") .field("blobs", &crate::dnn::LayerTraitConst::blobs(self)) .field("name", &crate::dnn::LayerTraitConst::name(self)) .field("typ", &crate::dnn::LayerTraitConst::typ(self)) .field("preferable_target", &crate::dnn::LayerTraitConst::preferable_target(self)) .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfTanLayer = core::Ptr; ptr_extern! { crate::dnn::TanLayer, cv_PtrLcv_dnn_TanLayerG_new_null_const, cv_PtrLcv_dnn_TanLayerG_delete, cv_PtrLcv_dnn_TanLayerG_getInnerPtr_const, cv_PtrLcv_dnn_TanLayerG_getInnerPtrMut } ptr_extern_ctor! { crate::dnn::TanLayer, cv_PtrLcv_dnn_TanLayerG_new_const_TanLayer } impl core::Ptr { #[inline] pub fn as_raw_PtrOfTanLayer(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfTanLayer(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::dnn::TanLayerTraitConst for core::Ptr { #[inline] fn as_raw_TanLayer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::TanLayerTrait for core::Ptr { #[inline] fn as_raw_mut_TanLayer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_TanLayerG_to_PtrOfAlgorithm } impl crate::dnn::ActivationLayerTraitConst for core::Ptr { #[inline] fn as_raw_ActivationLayer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::ActivationLayerTrait for core::Ptr { #[inline] fn as_raw_mut_ActivationLayer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_TanLayerG_to_PtrOfActivationLayer } impl crate::dnn::LayerTraitConst for core::Ptr { #[inline] fn as_raw_Layer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::LayerTrait for core::Ptr { #[inline] fn as_raw_mut_Layer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_TanLayerG_to_PtrOfLayer } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfTanLayer") .field("blobs", &crate::dnn::LayerTraitConst::blobs(self)) .field("name", &crate::dnn::LayerTraitConst::name(self)) .field("typ", &crate::dnn::LayerTraitConst::typ(self)) .field("preferable_target", &crate::dnn::LayerTraitConst::preferable_target(self)) .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfThresholdedReluLayer = core::Ptr; ptr_extern! { crate::dnn::ThresholdedReluLayer, cv_PtrLcv_dnn_ThresholdedReluLayerG_new_null_const, cv_PtrLcv_dnn_ThresholdedReluLayerG_delete, cv_PtrLcv_dnn_ThresholdedReluLayerG_getInnerPtr_const, cv_PtrLcv_dnn_ThresholdedReluLayerG_getInnerPtrMut } ptr_extern_ctor! { crate::dnn::ThresholdedReluLayer, cv_PtrLcv_dnn_ThresholdedReluLayerG_new_const_ThresholdedReluLayer } impl core::Ptr { #[inline] pub fn as_raw_PtrOfThresholdedReluLayer(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfThresholdedReluLayer(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::dnn::ThresholdedReluLayerTraitConst for core::Ptr { #[inline] fn as_raw_ThresholdedReluLayer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::ThresholdedReluLayerTrait for core::Ptr { #[inline] fn as_raw_mut_ThresholdedReluLayer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_ThresholdedReluLayerG_to_PtrOfAlgorithm } impl crate::dnn::ActivationLayerTraitConst for core::Ptr { #[inline] fn as_raw_ActivationLayer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::ActivationLayerTrait for core::Ptr { #[inline] fn as_raw_mut_ActivationLayer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_ThresholdedReluLayerG_to_PtrOfActivationLayer } impl crate::dnn::LayerTraitConst for core::Ptr { #[inline] fn as_raw_Layer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::LayerTrait for core::Ptr { #[inline] fn as_raw_mut_Layer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_ThresholdedReluLayerG_to_PtrOfLayer } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfThresholdedReluLayer") .field("alpha", &crate::dnn::ThresholdedReluLayerTraitConst::alpha(self)) .field("blobs", &crate::dnn::LayerTraitConst::blobs(self)) .field("name", &crate::dnn::LayerTraitConst::name(self)) .field("typ", &crate::dnn::LayerTraitConst::typ(self)) .field("preferable_target", &crate::dnn::LayerTraitConst::preferable_target(self)) .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfTileLayer = core::Ptr; ptr_extern! { crate::dnn::TileLayer, cv_PtrLcv_dnn_TileLayerG_new_null_const, cv_PtrLcv_dnn_TileLayerG_delete, cv_PtrLcv_dnn_TileLayerG_getInnerPtr_const, cv_PtrLcv_dnn_TileLayerG_getInnerPtrMut } ptr_extern_ctor! { crate::dnn::TileLayer, cv_PtrLcv_dnn_TileLayerG_new_const_TileLayer } impl core::Ptr { #[inline] pub fn as_raw_PtrOfTileLayer(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfTileLayer(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::dnn::TileLayerTraitConst for core::Ptr { #[inline] fn as_raw_TileLayer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::TileLayerTrait for core::Ptr { #[inline] fn as_raw_mut_TileLayer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_TileLayerG_to_PtrOfAlgorithm } impl crate::dnn::LayerTraitConst for core::Ptr { #[inline] fn as_raw_Layer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::LayerTrait for core::Ptr { #[inline] fn as_raw_mut_Layer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_dnn_TileLayerG_to_PtrOfLayer } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfTileLayer") .field("blobs", &crate::dnn::LayerTraitConst::blobs(self)) .field("name", &crate::dnn::LayerTraitConst::name(self)) .field("typ", &crate::dnn::LayerTraitConst::typ(self)) .field("preferable_target", &crate::dnn::LayerTraitConst::preferable_target(self)) .finish() } } #[deprecated = "Use the the non-alias form `core::Tuple<(crate::dnn::Backend, crate::dnn::Target)>` instead, removal in Nov 2024"] pub type TupleOfBackend_Target = core::Tuple<(crate::dnn::Backend, crate::dnn::Target)>; impl core::Tuple<(crate::dnn::Backend, crate::dnn::Target)> { pub fn as_raw_TupleOfBackend_Target(&self) -> extern_send!(Self) { self.as_raw() } pub fn as_raw_mut_TupleOfBackend_Target(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } tuple_extern! { (crate::dnn::Backend, crate::dnn::Target), std_pairLcv_dnn_Backend__cv_dnn_TargetG_new_const_Backend_Target, std_pairLcv_dnn_Backend__cv_dnn_TargetG_delete, 0 = arg: crate::dnn::Backend, get_0 via std_pairLcv_dnn_Backend__cv_dnn_TargetG_get_0_const, 1 = arg_1: crate::dnn::Target, get_1 via std_pairLcv_dnn_Backend__cv_dnn_TargetG_get_1_const } #[deprecated = "Use the the non-alias form `core::Vector` instead, removal in Nov 2024"] pub type VectorOfMatShape = core::Vector; impl core::Vector { pub fn as_raw_VectorOfMatShape(&self) -> extern_send!(Self) { self.as_raw() } pub fn as_raw_mut_VectorOfMatShape(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } #[deprecated = "Use the the non-alias form `core::Vector>` instead, removal in Nov 2024"] pub type VectorOfPtrOfBackendNode = core::Vector>; impl core::Vector> { pub fn as_raw_VectorOfPtrOfBackendNode(&self) -> extern_send!(Self) { self.as_raw() } pub fn as_raw_mut_VectorOfPtrOfBackendNode(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } vector_extern! { core::Ptr, std_vectorLcv_PtrLcv_dnn_BackendNodeGG_new_const, std_vectorLcv_PtrLcv_dnn_BackendNodeGG_delete, std_vectorLcv_PtrLcv_dnn_BackendNodeGG_len_const, std_vectorLcv_PtrLcv_dnn_BackendNodeGG_isEmpty_const, std_vectorLcv_PtrLcv_dnn_BackendNodeGG_capacity_const, std_vectorLcv_PtrLcv_dnn_BackendNodeGG_shrinkToFit, std_vectorLcv_PtrLcv_dnn_BackendNodeGG_reserve_size_t, std_vectorLcv_PtrLcv_dnn_BackendNodeGG_remove_size_t, std_vectorLcv_PtrLcv_dnn_BackendNodeGG_swap_size_t_size_t, std_vectorLcv_PtrLcv_dnn_BackendNodeGG_clear, std_vectorLcv_PtrLcv_dnn_BackendNodeGG_get_const_size_t, std_vectorLcv_PtrLcv_dnn_BackendNodeGG_set_size_t_const_PtrLBackendNodeG, std_vectorLcv_PtrLcv_dnn_BackendNodeGG_push_const_PtrLBackendNodeG, std_vectorLcv_PtrLcv_dnn_BackendNodeGG_insert_size_t_const_PtrLBackendNodeG, } vector_non_copy_or_bool! { core::Ptr } #[deprecated = "Use the the non-alias form `core::Vector>` instead, removal in Nov 2024"] pub type VectorOfPtrOfBackendWrapper = core::Vector>; impl core::Vector> { pub fn as_raw_VectorOfPtrOfBackendWrapper(&self) -> extern_send!(Self) { self.as_raw() } pub fn as_raw_mut_VectorOfPtrOfBackendWrapper(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } vector_extern! { core::Ptr, std_vectorLcv_PtrLcv_dnn_BackendWrapperGG_new_const, std_vectorLcv_PtrLcv_dnn_BackendWrapperGG_delete, std_vectorLcv_PtrLcv_dnn_BackendWrapperGG_len_const, std_vectorLcv_PtrLcv_dnn_BackendWrapperGG_isEmpty_const, std_vectorLcv_PtrLcv_dnn_BackendWrapperGG_capacity_const, std_vectorLcv_PtrLcv_dnn_BackendWrapperGG_shrinkToFit, std_vectorLcv_PtrLcv_dnn_BackendWrapperGG_reserve_size_t, std_vectorLcv_PtrLcv_dnn_BackendWrapperGG_remove_size_t, std_vectorLcv_PtrLcv_dnn_BackendWrapperGG_swap_size_t_size_t, std_vectorLcv_PtrLcv_dnn_BackendWrapperGG_clear, std_vectorLcv_PtrLcv_dnn_BackendWrapperGG_get_const_size_t, std_vectorLcv_PtrLcv_dnn_BackendWrapperGG_set_size_t_const_PtrLBackendWrapperG, std_vectorLcv_PtrLcv_dnn_BackendWrapperGG_push_const_PtrLBackendWrapperG, std_vectorLcv_PtrLcv_dnn_BackendWrapperGG_insert_size_t_const_PtrLBackendWrapperG, } vector_non_copy_or_bool! { core::Ptr } #[deprecated = "Use the the non-alias form `core::Vector>` instead, removal in Nov 2024"] pub type VectorOfPtrOfLayer = core::Vector>; impl core::Vector> { pub fn as_raw_VectorOfPtrOfLayer(&self) -> extern_send!(Self) { self.as_raw() } pub fn as_raw_mut_VectorOfPtrOfLayer(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } vector_extern! { core::Ptr, std_vectorLcv_PtrLcv_dnn_LayerGG_new_const, std_vectorLcv_PtrLcv_dnn_LayerGG_delete, std_vectorLcv_PtrLcv_dnn_LayerGG_len_const, std_vectorLcv_PtrLcv_dnn_LayerGG_isEmpty_const, std_vectorLcv_PtrLcv_dnn_LayerGG_capacity_const, std_vectorLcv_PtrLcv_dnn_LayerGG_shrinkToFit, std_vectorLcv_PtrLcv_dnn_LayerGG_reserve_size_t, std_vectorLcv_PtrLcv_dnn_LayerGG_remove_size_t, std_vectorLcv_PtrLcv_dnn_LayerGG_swap_size_t_size_t, std_vectorLcv_PtrLcv_dnn_LayerGG_clear, std_vectorLcv_PtrLcv_dnn_LayerGG_get_const_size_t, std_vectorLcv_PtrLcv_dnn_LayerGG_set_size_t_const_PtrLLayerG, std_vectorLcv_PtrLcv_dnn_LayerGG_push_const_PtrLLayerG, std_vectorLcv_PtrLcv_dnn_LayerGG_insert_size_t_const_PtrLLayerG, } vector_non_copy_or_bool! { core::Ptr } #[deprecated = "Use the the non-alias form `core::Vector` instead, removal in Nov 2024"] pub type VectorOfTarget = core::Vector; impl core::Vector { pub fn as_raw_VectorOfTarget(&self) -> extern_send!(Self) { self.as_raw() } pub fn as_raw_mut_VectorOfTarget(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } vector_extern! { crate::dnn::Target, std_vectorLcv_dnn_TargetG_new_const, std_vectorLcv_dnn_TargetG_delete, std_vectorLcv_dnn_TargetG_len_const, std_vectorLcv_dnn_TargetG_isEmpty_const, std_vectorLcv_dnn_TargetG_capacity_const, std_vectorLcv_dnn_TargetG_shrinkToFit, std_vectorLcv_dnn_TargetG_reserve_size_t, std_vectorLcv_dnn_TargetG_remove_size_t, std_vectorLcv_dnn_TargetG_swap_size_t_size_t, std_vectorLcv_dnn_TargetG_clear, std_vectorLcv_dnn_TargetG_get_const_size_t, std_vectorLcv_dnn_TargetG_set_size_t_const_Target, std_vectorLcv_dnn_TargetG_push_const_Target, std_vectorLcv_dnn_TargetG_insert_size_t_const_Target, } vector_copy_non_bool! { crate::dnn::Target, std_vectorLcv_dnn_TargetG_data_const, std_vectorLcv_dnn_TargetG_dataMut, cv_fromSlice_const_const_TargetX_size_t, std_vectorLcv_dnn_TargetG_clone_const, } #[deprecated = "Use the the non-alias form `core::Vector>` instead, removal in Nov 2024"] pub type VectorOfTupleOfBackend_Target = core::Vector>; impl core::Vector> { pub fn as_raw_VectorOfTupleOfBackend_Target(&self) -> extern_send!(Self) { self.as_raw() } pub fn as_raw_mut_VectorOfTupleOfBackend_Target(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } vector_extern! { core::Tuple<(crate::dnn::Backend, crate::dnn::Target)>, std_vectorLstd_pairLcv_dnn_Backend__cv_dnn_TargetGG_new_const, std_vectorLstd_pairLcv_dnn_Backend__cv_dnn_TargetGG_delete, std_vectorLstd_pairLcv_dnn_Backend__cv_dnn_TargetGG_len_const, std_vectorLstd_pairLcv_dnn_Backend__cv_dnn_TargetGG_isEmpty_const, std_vectorLstd_pairLcv_dnn_Backend__cv_dnn_TargetGG_capacity_const, std_vectorLstd_pairLcv_dnn_Backend__cv_dnn_TargetGG_shrinkToFit, std_vectorLstd_pairLcv_dnn_Backend__cv_dnn_TargetGG_reserve_size_t, std_vectorLstd_pairLcv_dnn_Backend__cv_dnn_TargetGG_remove_size_t, std_vectorLstd_pairLcv_dnn_Backend__cv_dnn_TargetGG_swap_size_t_size_t, std_vectorLstd_pairLcv_dnn_Backend__cv_dnn_TargetGG_clear, std_vectorLstd_pairLcv_dnn_Backend__cv_dnn_TargetGG_get_const_size_t, std_vectorLstd_pairLcv_dnn_Backend__cv_dnn_TargetGG_set_size_t_const_pairLcv_dnn_Backend__cv_dnn_TargetG, std_vectorLstd_pairLcv_dnn_Backend__cv_dnn_TargetGG_push_const_pairLcv_dnn_Backend__cv_dnn_TargetG, std_vectorLstd_pairLcv_dnn_Backend__cv_dnn_TargetGG_insert_size_t_const_pairLcv_dnn_Backend__cv_dnn_TargetG, } vector_non_copy_or_bool! { core::Tuple<(crate::dnn::Backend, crate::dnn::Target)> } #[deprecated = "Use the the non-alias form `core::Vector>` instead, removal in Nov 2024"] pub type VectorOfVectorOfMatShape = core::Vector>; impl core::Vector> { pub fn as_raw_VectorOfVectorOfMatShape(&self) -> extern_send!(Self) { self.as_raw() } pub fn as_raw_mut_VectorOfVectorOfMatShape(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } vector_extern! { core::Vector, std_vectorLstd_vectorLcv_dnn_MatShapeGG_new_const, std_vectorLstd_vectorLcv_dnn_MatShapeGG_delete, std_vectorLstd_vectorLcv_dnn_MatShapeGG_len_const, std_vectorLstd_vectorLcv_dnn_MatShapeGG_isEmpty_const, std_vectorLstd_vectorLcv_dnn_MatShapeGG_capacity_const, std_vectorLstd_vectorLcv_dnn_MatShapeGG_shrinkToFit, std_vectorLstd_vectorLcv_dnn_MatShapeGG_reserve_size_t, std_vectorLstd_vectorLcv_dnn_MatShapeGG_remove_size_t, std_vectorLstd_vectorLcv_dnn_MatShapeGG_swap_size_t_size_t, std_vectorLstd_vectorLcv_dnn_MatShapeGG_clear, std_vectorLstd_vectorLcv_dnn_MatShapeGG_get_const_size_t, std_vectorLstd_vectorLcv_dnn_MatShapeGG_set_size_t_const_vectorLMatShapeG, std_vectorLstd_vectorLcv_dnn_MatShapeGG_push_const_vectorLMatShapeG, std_vectorLstd_vectorLcv_dnn_MatShapeGG_insert_size_t_const_vectorLMatShapeG, } vector_non_copy_or_bool! { core::Vector } } #[cfg(ocvrs_has_module_dnn)] pub use dnn_types::*; #[cfg(ocvrs_has_module_dnn_superres)] mod dnn_superres_types { use crate::{mod_prelude::*, core, types, sys}; #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfDnnSuperResImpl = core::Ptr; ptr_extern! { crate::dnn_superres::DnnSuperResImpl, cv_PtrLcv_dnn_superres_DnnSuperResImplG_new_null_const, cv_PtrLcv_dnn_superres_DnnSuperResImplG_delete, cv_PtrLcv_dnn_superres_DnnSuperResImplG_getInnerPtr_const, cv_PtrLcv_dnn_superres_DnnSuperResImplG_getInnerPtrMut } ptr_extern_ctor! { crate::dnn_superres::DnnSuperResImpl, cv_PtrLcv_dnn_superres_DnnSuperResImplG_new_const_DnnSuperResImpl } impl core::Ptr { #[inline] pub fn as_raw_PtrOfDnnSuperResImpl(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfDnnSuperResImpl(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::dnn_superres::DnnSuperResImplTraitConst for core::Ptr { #[inline] fn as_raw_DnnSuperResImpl(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn_superres::DnnSuperResImplTrait for core::Ptr { #[inline] fn as_raw_mut_DnnSuperResImpl(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfDnnSuperResImpl") .finish() } } } #[cfg(ocvrs_has_module_dnn_superres)] pub use dnn_superres_types::*; #[cfg(ocvrs_has_module_dpm)] mod dpm_types { use crate::{mod_prelude::*, core, types, sys}; #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfDPMDetector = core::Ptr; ptr_extern! { crate::dpm::DPMDetector, cv_PtrLcv_dpm_DPMDetectorG_new_null_const, cv_PtrLcv_dpm_DPMDetectorG_delete, cv_PtrLcv_dpm_DPMDetectorG_getInnerPtr_const, cv_PtrLcv_dpm_DPMDetectorG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfDPMDetector(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfDPMDetector(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::dpm::DPMDetectorTraitConst for core::Ptr { #[inline] fn as_raw_DPMDetector(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dpm::DPMDetectorTrait for core::Ptr { #[inline] fn as_raw_mut_DPMDetector(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfDPMDetector") .finish() } } #[deprecated = "Use the the non-alias form `core::Vector` instead, removal in Nov 2024"] pub type VectorOfDPMDetector_ObjectDetection = core::Vector; impl core::Vector { pub fn as_raw_VectorOfDPMDetector_ObjectDetection(&self) -> extern_send!(Self) { self.as_raw() } pub fn as_raw_mut_VectorOfDPMDetector_ObjectDetection(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } vector_extern! { crate::dpm::DPMDetector_ObjectDetection, std_vectorLcv_dpm_DPMDetector_ObjectDetectionG_new_const, std_vectorLcv_dpm_DPMDetector_ObjectDetectionG_delete, std_vectorLcv_dpm_DPMDetector_ObjectDetectionG_len_const, std_vectorLcv_dpm_DPMDetector_ObjectDetectionG_isEmpty_const, std_vectorLcv_dpm_DPMDetector_ObjectDetectionG_capacity_const, std_vectorLcv_dpm_DPMDetector_ObjectDetectionG_shrinkToFit, std_vectorLcv_dpm_DPMDetector_ObjectDetectionG_reserve_size_t, std_vectorLcv_dpm_DPMDetector_ObjectDetectionG_remove_size_t, std_vectorLcv_dpm_DPMDetector_ObjectDetectionG_swap_size_t_size_t, std_vectorLcv_dpm_DPMDetector_ObjectDetectionG_clear, std_vectorLcv_dpm_DPMDetector_ObjectDetectionG_get_const_size_t, std_vectorLcv_dpm_DPMDetector_ObjectDetectionG_set_size_t_const_ObjectDetection, std_vectorLcv_dpm_DPMDetector_ObjectDetectionG_push_const_ObjectDetection, std_vectorLcv_dpm_DPMDetector_ObjectDetectionG_insert_size_t_const_ObjectDetection, } vector_non_copy_or_bool! { crate::dpm::DPMDetector_ObjectDetection } vector_boxed_ref! { crate::dpm::DPMDetector_ObjectDetection } vector_extern! { BoxedRef<'t, crate::dpm::DPMDetector_ObjectDetection>, std_vectorLcv_dpm_DPMDetector_ObjectDetectionG_new_const, std_vectorLcv_dpm_DPMDetector_ObjectDetectionG_delete, std_vectorLcv_dpm_DPMDetector_ObjectDetectionG_len_const, std_vectorLcv_dpm_DPMDetector_ObjectDetectionG_isEmpty_const, std_vectorLcv_dpm_DPMDetector_ObjectDetectionG_capacity_const, std_vectorLcv_dpm_DPMDetector_ObjectDetectionG_shrinkToFit, std_vectorLcv_dpm_DPMDetector_ObjectDetectionG_reserve_size_t, std_vectorLcv_dpm_DPMDetector_ObjectDetectionG_remove_size_t, std_vectorLcv_dpm_DPMDetector_ObjectDetectionG_swap_size_t_size_t, std_vectorLcv_dpm_DPMDetector_ObjectDetectionG_clear, std_vectorLcv_dpm_DPMDetector_ObjectDetectionG_get_const_size_t, std_vectorLcv_dpm_DPMDetector_ObjectDetectionG_set_size_t_const_ObjectDetection, std_vectorLcv_dpm_DPMDetector_ObjectDetectionG_push_const_ObjectDetection, std_vectorLcv_dpm_DPMDetector_ObjectDetectionG_insert_size_t_const_ObjectDetection, } } #[cfg(ocvrs_has_module_dpm)] pub use dpm_types::*; #[cfg(ocvrs_has_module_face)] mod face_types { use crate::{mod_prelude::*, core, types, sys}; #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfBIF = core::Ptr; ptr_extern! { crate::face::BIF, cv_PtrLcv_face_BIFG_new_null_const, cv_PtrLcv_face_BIFG_delete, cv_PtrLcv_face_BIFG_getInnerPtr_const, cv_PtrLcv_face_BIFG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfBIF(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfBIF(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::face::BIFTraitConst for core::Ptr { #[inline] fn as_raw_BIF(&self) -> *const c_void { self.inner_as_raw() } } impl crate::face::BIFTrait for core::Ptr { #[inline] fn as_raw_mut_BIF(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_face_BIFG_to_PtrOfAlgorithm } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfBIF") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfBasicFaceRecognizer = core::Ptr; ptr_extern! { crate::face::BasicFaceRecognizer, cv_PtrLcv_face_BasicFaceRecognizerG_new_null_const, cv_PtrLcv_face_BasicFaceRecognizerG_delete, cv_PtrLcv_face_BasicFaceRecognizerG_getInnerPtr_const, cv_PtrLcv_face_BasicFaceRecognizerG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfBasicFaceRecognizer(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfBasicFaceRecognizer(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::face::BasicFaceRecognizerTraitConst for core::Ptr { #[inline] fn as_raw_BasicFaceRecognizer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::face::BasicFaceRecognizerTrait for core::Ptr { #[inline] fn as_raw_mut_BasicFaceRecognizer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_face_BasicFaceRecognizerG_to_PtrOfAlgorithm } impl crate::face::FaceRecognizerTraitConst for core::Ptr { #[inline] fn as_raw_FaceRecognizer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::face::FaceRecognizerTrait for core::Ptr { #[inline] fn as_raw_mut_FaceRecognizer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_face_BasicFaceRecognizerG_to_PtrOfFaceRecognizer } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfBasicFaceRecognizer") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfEigenFaceRecognizer = core::Ptr; ptr_extern! { crate::face::EigenFaceRecognizer, cv_PtrLcv_face_EigenFaceRecognizerG_new_null_const, cv_PtrLcv_face_EigenFaceRecognizerG_delete, cv_PtrLcv_face_EigenFaceRecognizerG_getInnerPtr_const, cv_PtrLcv_face_EigenFaceRecognizerG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfEigenFaceRecognizer(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfEigenFaceRecognizer(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::face::EigenFaceRecognizerTraitConst for core::Ptr { #[inline] fn as_raw_EigenFaceRecognizer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::face::EigenFaceRecognizerTrait for core::Ptr { #[inline] fn as_raw_mut_EigenFaceRecognizer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_face_EigenFaceRecognizerG_to_PtrOfAlgorithm } impl crate::face::BasicFaceRecognizerTraitConst for core::Ptr { #[inline] fn as_raw_BasicFaceRecognizer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::face::BasicFaceRecognizerTrait for core::Ptr { #[inline] fn as_raw_mut_BasicFaceRecognizer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_face_EigenFaceRecognizerG_to_PtrOfBasicFaceRecognizer } impl crate::face::FaceRecognizerTraitConst for core::Ptr { #[inline] fn as_raw_FaceRecognizer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::face::FaceRecognizerTrait for core::Ptr { #[inline] fn as_raw_mut_FaceRecognizer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_face_EigenFaceRecognizerG_to_PtrOfFaceRecognizer } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfEigenFaceRecognizer") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfFaceRecognizer = core::Ptr; ptr_extern! { crate::face::FaceRecognizer, cv_PtrLcv_face_FaceRecognizerG_new_null_const, cv_PtrLcv_face_FaceRecognizerG_delete, cv_PtrLcv_face_FaceRecognizerG_getInnerPtr_const, cv_PtrLcv_face_FaceRecognizerG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfFaceRecognizer(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfFaceRecognizer(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::face::FaceRecognizerTraitConst for core::Ptr { #[inline] fn as_raw_FaceRecognizer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::face::FaceRecognizerTrait for core::Ptr { #[inline] fn as_raw_mut_FaceRecognizer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_face_FaceRecognizerG_to_PtrOfAlgorithm } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfFaceRecognizer") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfFacemark = core::Ptr; ptr_extern! { crate::face::Facemark, cv_PtrLcv_face_FacemarkG_new_null_const, cv_PtrLcv_face_FacemarkG_delete, cv_PtrLcv_face_FacemarkG_getInnerPtr_const, cv_PtrLcv_face_FacemarkG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfFacemark(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfFacemark(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::face::FacemarkTraitConst for core::Ptr { #[inline] fn as_raw_Facemark(&self) -> *const c_void { self.inner_as_raw() } } impl crate::face::FacemarkTrait for core::Ptr { #[inline] fn as_raw_mut_Facemark(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_face_FacemarkG_to_PtrOfAlgorithm } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfFacemark") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfFacemarkAAM = core::Ptr; ptr_extern! { crate::face::FacemarkAAM, cv_PtrLcv_face_FacemarkAAMG_new_null_const, cv_PtrLcv_face_FacemarkAAMG_delete, cv_PtrLcv_face_FacemarkAAMG_getInnerPtr_const, cv_PtrLcv_face_FacemarkAAMG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfFacemarkAAM(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfFacemarkAAM(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::face::FacemarkAAMTraitConst for core::Ptr { #[inline] fn as_raw_FacemarkAAM(&self) -> *const c_void { self.inner_as_raw() } } impl crate::face::FacemarkAAMTrait for core::Ptr { #[inline] fn as_raw_mut_FacemarkAAM(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_face_FacemarkAAMG_to_PtrOfAlgorithm } impl crate::face::FacemarkTraitConst for core::Ptr { #[inline] fn as_raw_Facemark(&self) -> *const c_void { self.inner_as_raw() } } impl crate::face::FacemarkTrait for core::Ptr { #[inline] fn as_raw_mut_Facemark(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_face_FacemarkAAMG_to_PtrOfFacemark } impl crate::face::FacemarkTrainTraitConst for core::Ptr { #[inline] fn as_raw_FacemarkTrain(&self) -> *const c_void { self.inner_as_raw() } } impl crate::face::FacemarkTrainTrait for core::Ptr { #[inline] fn as_raw_mut_FacemarkTrain(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_face_FacemarkAAMG_to_PtrOfFacemarkTrain } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfFacemarkAAM") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfFacemarkKazemi = core::Ptr; ptr_extern! { crate::face::FacemarkKazemi, cv_PtrLcv_face_FacemarkKazemiG_new_null_const, cv_PtrLcv_face_FacemarkKazemiG_delete, cv_PtrLcv_face_FacemarkKazemiG_getInnerPtr_const, cv_PtrLcv_face_FacemarkKazemiG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfFacemarkKazemi(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfFacemarkKazemi(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::face::FacemarkKazemiTraitConst for core::Ptr { #[inline] fn as_raw_FacemarkKazemi(&self) -> *const c_void { self.inner_as_raw() } } impl crate::face::FacemarkKazemiTrait for core::Ptr { #[inline] fn as_raw_mut_FacemarkKazemi(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_face_FacemarkKazemiG_to_PtrOfAlgorithm } impl crate::face::FacemarkTraitConst for core::Ptr { #[inline] fn as_raw_Facemark(&self) -> *const c_void { self.inner_as_raw() } } impl crate::face::FacemarkTrait for core::Ptr { #[inline] fn as_raw_mut_Facemark(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_face_FacemarkKazemiG_to_PtrOfFacemark } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfFacemarkKazemi") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfFacemarkLBF = core::Ptr; ptr_extern! { crate::face::FacemarkLBF, cv_PtrLcv_face_FacemarkLBFG_new_null_const, cv_PtrLcv_face_FacemarkLBFG_delete, cv_PtrLcv_face_FacemarkLBFG_getInnerPtr_const, cv_PtrLcv_face_FacemarkLBFG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfFacemarkLBF(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfFacemarkLBF(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::face::FacemarkLBFTraitConst for core::Ptr { #[inline] fn as_raw_FacemarkLBF(&self) -> *const c_void { self.inner_as_raw() } } impl crate::face::FacemarkLBFTrait for core::Ptr { #[inline] fn as_raw_mut_FacemarkLBF(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_face_FacemarkLBFG_to_PtrOfAlgorithm } impl crate::face::FacemarkTraitConst for core::Ptr { #[inline] fn as_raw_Facemark(&self) -> *const c_void { self.inner_as_raw() } } impl crate::face::FacemarkTrait for core::Ptr { #[inline] fn as_raw_mut_Facemark(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_face_FacemarkLBFG_to_PtrOfFacemark } impl crate::face::FacemarkTrainTraitConst for core::Ptr { #[inline] fn as_raw_FacemarkTrain(&self) -> *const c_void { self.inner_as_raw() } } impl crate::face::FacemarkTrainTrait for core::Ptr { #[inline] fn as_raw_mut_FacemarkTrain(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_face_FacemarkLBFG_to_PtrOfFacemarkTrain } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfFacemarkLBF") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfFacemarkTrain = core::Ptr; ptr_extern! { crate::face::FacemarkTrain, cv_PtrLcv_face_FacemarkTrainG_new_null_const, cv_PtrLcv_face_FacemarkTrainG_delete, cv_PtrLcv_face_FacemarkTrainG_getInnerPtr_const, cv_PtrLcv_face_FacemarkTrainG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfFacemarkTrain(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfFacemarkTrain(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::face::FacemarkTrainTraitConst for core::Ptr { #[inline] fn as_raw_FacemarkTrain(&self) -> *const c_void { self.inner_as_raw() } } impl crate::face::FacemarkTrainTrait for core::Ptr { #[inline] fn as_raw_mut_FacemarkTrain(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_face_FacemarkTrainG_to_PtrOfAlgorithm } impl crate::face::FacemarkTraitConst for core::Ptr { #[inline] fn as_raw_Facemark(&self) -> *const c_void { self.inner_as_raw() } } impl crate::face::FacemarkTrait for core::Ptr { #[inline] fn as_raw_mut_Facemark(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_face_FacemarkTrainG_to_PtrOfFacemark } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfFacemarkTrain") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfFisherFaceRecognizer = core::Ptr; ptr_extern! { crate::face::FisherFaceRecognizer, cv_PtrLcv_face_FisherFaceRecognizerG_new_null_const, cv_PtrLcv_face_FisherFaceRecognizerG_delete, cv_PtrLcv_face_FisherFaceRecognizerG_getInnerPtr_const, cv_PtrLcv_face_FisherFaceRecognizerG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfFisherFaceRecognizer(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfFisherFaceRecognizer(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::face::FisherFaceRecognizerTraitConst for core::Ptr { #[inline] fn as_raw_FisherFaceRecognizer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::face::FisherFaceRecognizerTrait for core::Ptr { #[inline] fn as_raw_mut_FisherFaceRecognizer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_face_FisherFaceRecognizerG_to_PtrOfAlgorithm } impl crate::face::BasicFaceRecognizerTraitConst for core::Ptr { #[inline] fn as_raw_BasicFaceRecognizer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::face::BasicFaceRecognizerTrait for core::Ptr { #[inline] fn as_raw_mut_BasicFaceRecognizer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_face_FisherFaceRecognizerG_to_PtrOfBasicFaceRecognizer } impl crate::face::FaceRecognizerTraitConst for core::Ptr { #[inline] fn as_raw_FaceRecognizer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::face::FaceRecognizerTrait for core::Ptr { #[inline] fn as_raw_mut_FaceRecognizer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_face_FisherFaceRecognizerG_to_PtrOfFaceRecognizer } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfFisherFaceRecognizer") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfLBPHFaceRecognizer = core::Ptr; ptr_extern! { crate::face::LBPHFaceRecognizer, cv_PtrLcv_face_LBPHFaceRecognizerG_new_null_const, cv_PtrLcv_face_LBPHFaceRecognizerG_delete, cv_PtrLcv_face_LBPHFaceRecognizerG_getInnerPtr_const, cv_PtrLcv_face_LBPHFaceRecognizerG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfLBPHFaceRecognizer(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfLBPHFaceRecognizer(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::face::LBPHFaceRecognizerTraitConst for core::Ptr { #[inline] fn as_raw_LBPHFaceRecognizer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::face::LBPHFaceRecognizerTrait for core::Ptr { #[inline] fn as_raw_mut_LBPHFaceRecognizer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_face_LBPHFaceRecognizerG_to_PtrOfAlgorithm } impl crate::face::FaceRecognizerTraitConst for core::Ptr { #[inline] fn as_raw_FaceRecognizer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::face::FaceRecognizerTrait for core::Ptr { #[inline] fn as_raw_mut_FaceRecognizer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_face_LBPHFaceRecognizerG_to_PtrOfFaceRecognizer } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfLBPHFaceRecognizer") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfMACE = core::Ptr; ptr_extern! { crate::face::MACE, cv_PtrLcv_face_MACEG_new_null_const, cv_PtrLcv_face_MACEG_delete, cv_PtrLcv_face_MACEG_getInnerPtr_const, cv_PtrLcv_face_MACEG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfMACE(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfMACE(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::face::MACETraitConst for core::Ptr { #[inline] fn as_raw_MACE(&self) -> *const c_void { self.inner_as_raw() } } impl crate::face::MACETrait for core::Ptr { #[inline] fn as_raw_mut_MACE(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_face_MACEG_to_PtrOfAlgorithm } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfMACE") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfPredictCollector = core::Ptr; ptr_extern! { crate::face::PredictCollector, cv_PtrLcv_face_PredictCollectorG_new_null_const, cv_PtrLcv_face_PredictCollectorG_delete, cv_PtrLcv_face_PredictCollectorG_getInnerPtr_const, cv_PtrLcv_face_PredictCollectorG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfPredictCollector(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfPredictCollector(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::face::PredictCollectorTraitConst for core::Ptr { #[inline] fn as_raw_PredictCollector(&self) -> *const c_void { self.inner_as_raw() } } impl crate::face::PredictCollectorTrait for core::Ptr { #[inline] fn as_raw_mut_PredictCollector(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfPredictCollector") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfStandardCollector = core::Ptr; ptr_extern! { crate::face::StandardCollector, cv_PtrLcv_face_StandardCollectorG_new_null_const, cv_PtrLcv_face_StandardCollectorG_delete, cv_PtrLcv_face_StandardCollectorG_getInnerPtr_const, cv_PtrLcv_face_StandardCollectorG_getInnerPtrMut } ptr_extern_ctor! { crate::face::StandardCollector, cv_PtrLcv_face_StandardCollectorG_new_const_StandardCollector } impl core::Ptr { #[inline] pub fn as_raw_PtrOfStandardCollector(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfStandardCollector(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::face::StandardCollectorTraitConst for core::Ptr { #[inline] fn as_raw_StandardCollector(&self) -> *const c_void { self.inner_as_raw() } } impl crate::face::StandardCollectorTrait for core::Ptr { #[inline] fn as_raw_mut_StandardCollector(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl crate::face::PredictCollectorTraitConst for core::Ptr { #[inline] fn as_raw_PredictCollector(&self) -> *const c_void { self.inner_as_raw() } } impl crate::face::PredictCollectorTrait for core::Ptr { #[inline] fn as_raw_mut_PredictCollector(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_face_StandardCollectorG_to_PtrOfPredictCollector } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfStandardCollector") .finish() } } #[deprecated = "Use the the non-alias form `core::Vector` instead, removal in Nov 2024"] pub type VectorOfFacemarkAAM_Config = core::Vector; impl core::Vector { pub fn as_raw_VectorOfFacemarkAAM_Config(&self) -> extern_send!(Self) { self.as_raw() } pub fn as_raw_mut_VectorOfFacemarkAAM_Config(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } vector_extern! { crate::face::FacemarkAAM_Config, std_vectorLcv_face_FacemarkAAM_ConfigG_new_const, std_vectorLcv_face_FacemarkAAM_ConfigG_delete, std_vectorLcv_face_FacemarkAAM_ConfigG_len_const, std_vectorLcv_face_FacemarkAAM_ConfigG_isEmpty_const, std_vectorLcv_face_FacemarkAAM_ConfigG_capacity_const, std_vectorLcv_face_FacemarkAAM_ConfigG_shrinkToFit, std_vectorLcv_face_FacemarkAAM_ConfigG_reserve_size_t, std_vectorLcv_face_FacemarkAAM_ConfigG_remove_size_t, std_vectorLcv_face_FacemarkAAM_ConfigG_swap_size_t_size_t, std_vectorLcv_face_FacemarkAAM_ConfigG_clear, std_vectorLcv_face_FacemarkAAM_ConfigG_get_const_size_t, std_vectorLcv_face_FacemarkAAM_ConfigG_set_size_t_const_Config, std_vectorLcv_face_FacemarkAAM_ConfigG_push_const_Config, std_vectorLcv_face_FacemarkAAM_ConfigG_insert_size_t_const_Config, } vector_non_copy_or_bool! { crate::face::FacemarkAAM_Config } vector_boxed_ref! { crate::face::FacemarkAAM_Config } vector_extern! { BoxedRef<'t, crate::face::FacemarkAAM_Config>, std_vectorLcv_face_FacemarkAAM_ConfigG_new_const, std_vectorLcv_face_FacemarkAAM_ConfigG_delete, std_vectorLcv_face_FacemarkAAM_ConfigG_len_const, std_vectorLcv_face_FacemarkAAM_ConfigG_isEmpty_const, std_vectorLcv_face_FacemarkAAM_ConfigG_capacity_const, std_vectorLcv_face_FacemarkAAM_ConfigG_shrinkToFit, std_vectorLcv_face_FacemarkAAM_ConfigG_reserve_size_t, std_vectorLcv_face_FacemarkAAM_ConfigG_remove_size_t, std_vectorLcv_face_FacemarkAAM_ConfigG_swap_size_t_size_t, std_vectorLcv_face_FacemarkAAM_ConfigG_clear, std_vectorLcv_face_FacemarkAAM_ConfigG_get_const_size_t, std_vectorLcv_face_FacemarkAAM_ConfigG_set_size_t_const_Config, std_vectorLcv_face_FacemarkAAM_ConfigG_push_const_Config, std_vectorLcv_face_FacemarkAAM_ConfigG_insert_size_t_const_Config, } #[deprecated = "Use the the non-alias form `core::Vector` instead, removal in Nov 2024"] pub type VectorOfFacemarkAAM_Model_Texture = core::Vector; impl core::Vector { pub fn as_raw_VectorOfFacemarkAAM_Model_Texture(&self) -> extern_send!(Self) { self.as_raw() } pub fn as_raw_mut_VectorOfFacemarkAAM_Model_Texture(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } vector_extern! { crate::face::FacemarkAAM_Model_Texture, std_vectorLcv_face_FacemarkAAM_Model_TextureG_new_const, std_vectorLcv_face_FacemarkAAM_Model_TextureG_delete, std_vectorLcv_face_FacemarkAAM_Model_TextureG_len_const, std_vectorLcv_face_FacemarkAAM_Model_TextureG_isEmpty_const, std_vectorLcv_face_FacemarkAAM_Model_TextureG_capacity_const, std_vectorLcv_face_FacemarkAAM_Model_TextureG_shrinkToFit, std_vectorLcv_face_FacemarkAAM_Model_TextureG_reserve_size_t, std_vectorLcv_face_FacemarkAAM_Model_TextureG_remove_size_t, std_vectorLcv_face_FacemarkAAM_Model_TextureG_swap_size_t_size_t, std_vectorLcv_face_FacemarkAAM_Model_TextureG_clear, std_vectorLcv_face_FacemarkAAM_Model_TextureG_get_const_size_t, std_vectorLcv_face_FacemarkAAM_Model_TextureG_set_size_t_const_Texture, std_vectorLcv_face_FacemarkAAM_Model_TextureG_push_const_Texture, std_vectorLcv_face_FacemarkAAM_Model_TextureG_insert_size_t_const_Texture, } vector_non_copy_or_bool! { crate::face::FacemarkAAM_Model_Texture } vector_boxed_ref! { crate::face::FacemarkAAM_Model_Texture } vector_extern! { BoxedRef<'t, crate::face::FacemarkAAM_Model_Texture>, std_vectorLcv_face_FacemarkAAM_Model_TextureG_new_const, std_vectorLcv_face_FacemarkAAM_Model_TextureG_delete, std_vectorLcv_face_FacemarkAAM_Model_TextureG_len_const, std_vectorLcv_face_FacemarkAAM_Model_TextureG_isEmpty_const, std_vectorLcv_face_FacemarkAAM_Model_TextureG_capacity_const, std_vectorLcv_face_FacemarkAAM_Model_TextureG_shrinkToFit, std_vectorLcv_face_FacemarkAAM_Model_TextureG_reserve_size_t, std_vectorLcv_face_FacemarkAAM_Model_TextureG_remove_size_t, std_vectorLcv_face_FacemarkAAM_Model_TextureG_swap_size_t_size_t, std_vectorLcv_face_FacemarkAAM_Model_TextureG_clear, std_vectorLcv_face_FacemarkAAM_Model_TextureG_get_const_size_t, std_vectorLcv_face_FacemarkAAM_Model_TextureG_set_size_t_const_Texture, std_vectorLcv_face_FacemarkAAM_Model_TextureG_push_const_Texture, std_vectorLcv_face_FacemarkAAM_Model_TextureG_insert_size_t_const_Texture, } } #[cfg(ocvrs_has_module_face)] pub use face_types::*; #[cfg(ocvrs_has_module_features2d)] mod features2d_types { use crate::{mod_prelude::*, core, types, sys}; #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfAKAZE = core::Ptr; ptr_extern! { crate::features2d::AKAZE, cv_PtrLcv_AKAZEG_new_null_const, cv_PtrLcv_AKAZEG_delete, cv_PtrLcv_AKAZEG_getInnerPtr_const, cv_PtrLcv_AKAZEG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfAKAZE(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfAKAZE(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::features2d::AKAZETraitConst for core::Ptr { #[inline] fn as_raw_AKAZE(&self) -> *const c_void { self.inner_as_raw() } } impl crate::features2d::AKAZETrait for core::Ptr { #[inline] fn as_raw_mut_AKAZE(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_AKAZEG_to_PtrOfAlgorithm } impl crate::features2d::Feature2DTraitConst for core::Ptr { #[inline] fn as_raw_Feature2D(&self) -> *const c_void { self.inner_as_raw() } } impl crate::features2d::Feature2DTrait for core::Ptr { #[inline] fn as_raw_mut_Feature2D(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_AKAZEG_to_PtrOfFeature2D } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfAKAZE") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfAffineFeature = core::Ptr; ptr_extern! { crate::features2d::AffineFeature, cv_PtrLcv_AffineFeatureG_new_null_const, cv_PtrLcv_AffineFeatureG_delete, cv_PtrLcv_AffineFeatureG_getInnerPtr_const, cv_PtrLcv_AffineFeatureG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfAffineFeature(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfAffineFeature(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::features2d::AffineFeatureTraitConst for core::Ptr { #[inline] fn as_raw_AffineFeature(&self) -> *const c_void { self.inner_as_raw() } } impl crate::features2d::AffineFeatureTrait for core::Ptr { #[inline] fn as_raw_mut_AffineFeature(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_AffineFeatureG_to_PtrOfAlgorithm } impl crate::features2d::Feature2DTraitConst for core::Ptr { #[inline] fn as_raw_Feature2D(&self) -> *const c_void { self.inner_as_raw() } } impl crate::features2d::Feature2DTrait for core::Ptr { #[inline] fn as_raw_mut_Feature2D(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_AffineFeatureG_to_PtrOfFeature2D } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfAffineFeature") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfAgastFeatureDetector = core::Ptr; ptr_extern! { crate::features2d::AgastFeatureDetector, cv_PtrLcv_AgastFeatureDetectorG_new_null_const, cv_PtrLcv_AgastFeatureDetectorG_delete, cv_PtrLcv_AgastFeatureDetectorG_getInnerPtr_const, cv_PtrLcv_AgastFeatureDetectorG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfAgastFeatureDetector(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfAgastFeatureDetector(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::features2d::AgastFeatureDetectorTraitConst for core::Ptr { #[inline] fn as_raw_AgastFeatureDetector(&self) -> *const c_void { self.inner_as_raw() } } impl crate::features2d::AgastFeatureDetectorTrait for core::Ptr { #[inline] fn as_raw_mut_AgastFeatureDetector(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_AgastFeatureDetectorG_to_PtrOfAlgorithm } impl crate::features2d::Feature2DTraitConst for core::Ptr { #[inline] fn as_raw_Feature2D(&self) -> *const c_void { self.inner_as_raw() } } impl crate::features2d::Feature2DTrait for core::Ptr { #[inline] fn as_raw_mut_Feature2D(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_AgastFeatureDetectorG_to_PtrOfFeature2D } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfAgastFeatureDetector") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfBFMatcher = core::Ptr; ptr_extern! { crate::features2d::BFMatcher, cv_PtrLcv_BFMatcherG_new_null_const, cv_PtrLcv_BFMatcherG_delete, cv_PtrLcv_BFMatcherG_getInnerPtr_const, cv_PtrLcv_BFMatcherG_getInnerPtrMut } ptr_extern_ctor! { crate::features2d::BFMatcher, cv_PtrLcv_BFMatcherG_new_const_BFMatcher } impl core::Ptr { #[inline] pub fn as_raw_PtrOfBFMatcher(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfBFMatcher(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::features2d::BFMatcherTraitConst for core::Ptr { #[inline] fn as_raw_BFMatcher(&self) -> *const c_void { self.inner_as_raw() } } impl crate::features2d::BFMatcherTrait for core::Ptr { #[inline] fn as_raw_mut_BFMatcher(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_BFMatcherG_to_PtrOfAlgorithm } impl crate::features2d::DescriptorMatcherTraitConst for core::Ptr { #[inline] fn as_raw_DescriptorMatcher(&self) -> *const c_void { self.inner_as_raw() } } impl crate::features2d::DescriptorMatcherTrait for core::Ptr { #[inline] fn as_raw_mut_DescriptorMatcher(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_BFMatcherG_to_PtrOfDescriptorMatcher } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfBFMatcher") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfBRISK = core::Ptr; ptr_extern! { crate::features2d::BRISK, cv_PtrLcv_BRISKG_new_null_const, cv_PtrLcv_BRISKG_delete, cv_PtrLcv_BRISKG_getInnerPtr_const, cv_PtrLcv_BRISKG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfBRISK(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfBRISK(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::features2d::BRISKTraitConst for core::Ptr { #[inline] fn as_raw_BRISK(&self) -> *const c_void { self.inner_as_raw() } } impl crate::features2d::BRISKTrait for core::Ptr { #[inline] fn as_raw_mut_BRISK(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_BRISKG_to_PtrOfAlgorithm } impl crate::features2d::Feature2DTraitConst for core::Ptr { #[inline] fn as_raw_Feature2D(&self) -> *const c_void { self.inner_as_raw() } } impl crate::features2d::Feature2DTrait for core::Ptr { #[inline] fn as_raw_mut_Feature2D(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_BRISKG_to_PtrOfFeature2D } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfBRISK") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfDescriptorMatcher = core::Ptr; ptr_extern! { crate::features2d::DescriptorMatcher, cv_PtrLcv_DescriptorMatcherG_new_null_const, cv_PtrLcv_DescriptorMatcherG_delete, cv_PtrLcv_DescriptorMatcherG_getInnerPtr_const, cv_PtrLcv_DescriptorMatcherG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfDescriptorMatcher(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfDescriptorMatcher(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::features2d::DescriptorMatcherTraitConst for core::Ptr { #[inline] fn as_raw_DescriptorMatcher(&self) -> *const c_void { self.inner_as_raw() } } impl crate::features2d::DescriptorMatcherTrait for core::Ptr { #[inline] fn as_raw_mut_DescriptorMatcher(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_DescriptorMatcherG_to_PtrOfAlgorithm } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfDescriptorMatcher") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfFastFeatureDetector = core::Ptr; ptr_extern! { crate::features2d::FastFeatureDetector, cv_PtrLcv_FastFeatureDetectorG_new_null_const, cv_PtrLcv_FastFeatureDetectorG_delete, cv_PtrLcv_FastFeatureDetectorG_getInnerPtr_const, cv_PtrLcv_FastFeatureDetectorG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfFastFeatureDetector(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfFastFeatureDetector(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::features2d::FastFeatureDetectorTraitConst for core::Ptr { #[inline] fn as_raw_FastFeatureDetector(&self) -> *const c_void { self.inner_as_raw() } } impl crate::features2d::FastFeatureDetectorTrait for core::Ptr { #[inline] fn as_raw_mut_FastFeatureDetector(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_FastFeatureDetectorG_to_PtrOfAlgorithm } impl crate::features2d::Feature2DTraitConst for core::Ptr { #[inline] fn as_raw_Feature2D(&self) -> *const c_void { self.inner_as_raw() } } impl crate::features2d::Feature2DTrait for core::Ptr { #[inline] fn as_raw_mut_Feature2D(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_FastFeatureDetectorG_to_PtrOfFeature2D } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfFastFeatureDetector") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfFeature2D = core::Ptr; ptr_extern! { crate::features2d::Feature2D, cv_PtrLcv_Feature2DG_new_null_const, cv_PtrLcv_Feature2DG_delete, cv_PtrLcv_Feature2DG_getInnerPtr_const, cv_PtrLcv_Feature2DG_getInnerPtrMut } ptr_extern_ctor! { crate::features2d::Feature2D, cv_PtrLcv_Feature2DG_new_const_Feature2D } impl core::Ptr { #[inline] pub fn as_raw_PtrOfFeature2D(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfFeature2D(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::features2d::Feature2DTraitConst for core::Ptr { #[inline] fn as_raw_Feature2D(&self) -> *const c_void { self.inner_as_raw() } } impl crate::features2d::Feature2DTrait for core::Ptr { #[inline] fn as_raw_mut_Feature2D(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_Feature2DG_to_PtrOfAlgorithm } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfFeature2D") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfFlannBasedMatcher = core::Ptr; ptr_extern! { crate::features2d::FlannBasedMatcher, cv_PtrLcv_FlannBasedMatcherG_new_null_const, cv_PtrLcv_FlannBasedMatcherG_delete, cv_PtrLcv_FlannBasedMatcherG_getInnerPtr_const, cv_PtrLcv_FlannBasedMatcherG_getInnerPtrMut } ptr_extern_ctor! { crate::features2d::FlannBasedMatcher, cv_PtrLcv_FlannBasedMatcherG_new_const_FlannBasedMatcher } impl core::Ptr { #[inline] pub fn as_raw_PtrOfFlannBasedMatcher(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfFlannBasedMatcher(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::features2d::FlannBasedMatcherTraitConst for core::Ptr { #[inline] fn as_raw_FlannBasedMatcher(&self) -> *const c_void { self.inner_as_raw() } } impl crate::features2d::FlannBasedMatcherTrait for core::Ptr { #[inline] fn as_raw_mut_FlannBasedMatcher(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_FlannBasedMatcherG_to_PtrOfAlgorithm } impl crate::features2d::DescriptorMatcherTraitConst for core::Ptr { #[inline] fn as_raw_DescriptorMatcher(&self) -> *const c_void { self.inner_as_raw() } } impl crate::features2d::DescriptorMatcherTrait for core::Ptr { #[inline] fn as_raw_mut_DescriptorMatcher(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_FlannBasedMatcherG_to_PtrOfDescriptorMatcher } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfFlannBasedMatcher") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfGFTTDetector = core::Ptr; ptr_extern! { crate::features2d::GFTTDetector, cv_PtrLcv_GFTTDetectorG_new_null_const, cv_PtrLcv_GFTTDetectorG_delete, cv_PtrLcv_GFTTDetectorG_getInnerPtr_const, cv_PtrLcv_GFTTDetectorG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfGFTTDetector(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfGFTTDetector(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::features2d::GFTTDetectorTraitConst for core::Ptr { #[inline] fn as_raw_GFTTDetector(&self) -> *const c_void { self.inner_as_raw() } } impl crate::features2d::GFTTDetectorTrait for core::Ptr { #[inline] fn as_raw_mut_GFTTDetector(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_GFTTDetectorG_to_PtrOfAlgorithm } impl crate::features2d::Feature2DTraitConst for core::Ptr { #[inline] fn as_raw_Feature2D(&self) -> *const c_void { self.inner_as_raw() } } impl crate::features2d::Feature2DTrait for core::Ptr { #[inline] fn as_raw_mut_Feature2D(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_GFTTDetectorG_to_PtrOfFeature2D } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfGFTTDetector") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfKAZE = core::Ptr; ptr_extern! { crate::features2d::KAZE, cv_PtrLcv_KAZEG_new_null_const, cv_PtrLcv_KAZEG_delete, cv_PtrLcv_KAZEG_getInnerPtr_const, cv_PtrLcv_KAZEG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfKAZE(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfKAZE(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::features2d::KAZETraitConst for core::Ptr { #[inline] fn as_raw_KAZE(&self) -> *const c_void { self.inner_as_raw() } } impl crate::features2d::KAZETrait for core::Ptr { #[inline] fn as_raw_mut_KAZE(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_KAZEG_to_PtrOfAlgorithm } impl crate::features2d::Feature2DTraitConst for core::Ptr { #[inline] fn as_raw_Feature2D(&self) -> *const c_void { self.inner_as_raw() } } impl crate::features2d::Feature2DTrait for core::Ptr { #[inline] fn as_raw_mut_Feature2D(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_KAZEG_to_PtrOfFeature2D } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfKAZE") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfMSER = core::Ptr; ptr_extern! { crate::features2d::MSER, cv_PtrLcv_MSERG_new_null_const, cv_PtrLcv_MSERG_delete, cv_PtrLcv_MSERG_getInnerPtr_const, cv_PtrLcv_MSERG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfMSER(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfMSER(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::features2d::MSERTraitConst for core::Ptr { #[inline] fn as_raw_MSER(&self) -> *const c_void { self.inner_as_raw() } } impl crate::features2d::MSERTrait for core::Ptr { #[inline] fn as_raw_mut_MSER(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_MSERG_to_PtrOfAlgorithm } impl crate::features2d::Feature2DTraitConst for core::Ptr { #[inline] fn as_raw_Feature2D(&self) -> *const c_void { self.inner_as_raw() } } impl crate::features2d::Feature2DTrait for core::Ptr { #[inline] fn as_raw_mut_Feature2D(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_MSERG_to_PtrOfFeature2D } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfMSER") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfORB = core::Ptr; ptr_extern! { crate::features2d::ORB, cv_PtrLcv_ORBG_new_null_const, cv_PtrLcv_ORBG_delete, cv_PtrLcv_ORBG_getInnerPtr_const, cv_PtrLcv_ORBG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfORB(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfORB(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::features2d::ORBTraitConst for core::Ptr { #[inline] fn as_raw_ORB(&self) -> *const c_void { self.inner_as_raw() } } impl crate::features2d::ORBTrait for core::Ptr { #[inline] fn as_raw_mut_ORB(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_ORBG_to_PtrOfAlgorithm } impl crate::features2d::Feature2DTraitConst for core::Ptr { #[inline] fn as_raw_Feature2D(&self) -> *const c_void { self.inner_as_raw() } } impl crate::features2d::Feature2DTrait for core::Ptr { #[inline] fn as_raw_mut_Feature2D(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_ORBG_to_PtrOfFeature2D } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfORB") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfSIFT = core::Ptr; ptr_extern! { crate::features2d::SIFT, cv_PtrLcv_SIFTG_new_null_const, cv_PtrLcv_SIFTG_delete, cv_PtrLcv_SIFTG_getInnerPtr_const, cv_PtrLcv_SIFTG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfSIFT(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfSIFT(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::features2d::SIFTTraitConst for core::Ptr { #[inline] fn as_raw_SIFT(&self) -> *const c_void { self.inner_as_raw() } } impl crate::features2d::SIFTTrait for core::Ptr { #[inline] fn as_raw_mut_SIFT(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_SIFTG_to_PtrOfAlgorithm } impl crate::features2d::Feature2DTraitConst for core::Ptr { #[inline] fn as_raw_Feature2D(&self) -> *const c_void { self.inner_as_raw() } } impl crate::features2d::Feature2DTrait for core::Ptr { #[inline] fn as_raw_mut_Feature2D(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_SIFTG_to_PtrOfFeature2D } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfSIFT") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfSimpleBlobDetector = core::Ptr; ptr_extern! { crate::features2d::SimpleBlobDetector, cv_PtrLcv_SimpleBlobDetectorG_new_null_const, cv_PtrLcv_SimpleBlobDetectorG_delete, cv_PtrLcv_SimpleBlobDetectorG_getInnerPtr_const, cv_PtrLcv_SimpleBlobDetectorG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfSimpleBlobDetector(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfSimpleBlobDetector(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::features2d::SimpleBlobDetectorTraitConst for core::Ptr { #[inline] fn as_raw_SimpleBlobDetector(&self) -> *const c_void { self.inner_as_raw() } } impl crate::features2d::SimpleBlobDetectorTrait for core::Ptr { #[inline] fn as_raw_mut_SimpleBlobDetector(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_SimpleBlobDetectorG_to_PtrOfAlgorithm } impl crate::features2d::Feature2DTraitConst for core::Ptr { #[inline] fn as_raw_Feature2D(&self) -> *const c_void { self.inner_as_raw() } } impl crate::features2d::Feature2DTrait for core::Ptr { #[inline] fn as_raw_mut_Feature2D(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_SimpleBlobDetectorG_to_PtrOfFeature2D } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfSimpleBlobDetector") .finish() } } } #[cfg(ocvrs_has_module_features2d)] pub use features2d_types::*; #[cfg(ocvrs_has_module_flann)] mod flann_types { use crate::{mod_prelude::*, core, types, sys}; #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfAutotunedIndexParams = core::Ptr; ptr_extern! { crate::flann::AutotunedIndexParams, cv_PtrLcv_flann_AutotunedIndexParamsG_new_null_const, cv_PtrLcv_flann_AutotunedIndexParamsG_delete, cv_PtrLcv_flann_AutotunedIndexParamsG_getInnerPtr_const, cv_PtrLcv_flann_AutotunedIndexParamsG_getInnerPtrMut } ptr_extern_ctor! { crate::flann::AutotunedIndexParams, cv_PtrLcv_flann_AutotunedIndexParamsG_new_const_AutotunedIndexParams } impl core::Ptr { #[inline] pub fn as_raw_PtrOfAutotunedIndexParams(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfAutotunedIndexParams(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::flann::AutotunedIndexParamsTraitConst for core::Ptr { #[inline] fn as_raw_AutotunedIndexParams(&self) -> *const c_void { self.inner_as_raw() } } impl crate::flann::AutotunedIndexParamsTrait for core::Ptr { #[inline] fn as_raw_mut_AutotunedIndexParams(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl crate::flann::IndexParamsTraitConst for core::Ptr { #[inline] fn as_raw_IndexParams(&self) -> *const c_void { self.inner_as_raw() } } impl crate::flann::IndexParamsTrait for core::Ptr { #[inline] fn as_raw_mut_IndexParams(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_flann_AutotunedIndexParamsG_to_PtrOfIndexParams } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfAutotunedIndexParams") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfCompositeIndexParams = core::Ptr; ptr_extern! { crate::flann::CompositeIndexParams, cv_PtrLcv_flann_CompositeIndexParamsG_new_null_const, cv_PtrLcv_flann_CompositeIndexParamsG_delete, cv_PtrLcv_flann_CompositeIndexParamsG_getInnerPtr_const, cv_PtrLcv_flann_CompositeIndexParamsG_getInnerPtrMut } ptr_extern_ctor! { crate::flann::CompositeIndexParams, cv_PtrLcv_flann_CompositeIndexParamsG_new_const_CompositeIndexParams } impl core::Ptr { #[inline] pub fn as_raw_PtrOfCompositeIndexParams(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfCompositeIndexParams(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::flann::CompositeIndexParamsTraitConst for core::Ptr { #[inline] fn as_raw_CompositeIndexParams(&self) -> *const c_void { self.inner_as_raw() } } impl crate::flann::CompositeIndexParamsTrait for core::Ptr { #[inline] fn as_raw_mut_CompositeIndexParams(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl crate::flann::IndexParamsTraitConst for core::Ptr { #[inline] fn as_raw_IndexParams(&self) -> *const c_void { self.inner_as_raw() } } impl crate::flann::IndexParamsTrait for core::Ptr { #[inline] fn as_raw_mut_IndexParams(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_flann_CompositeIndexParamsG_to_PtrOfIndexParams } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfCompositeIndexParams") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfHierarchicalClusteringIndexParams = core::Ptr; ptr_extern! { crate::flann::HierarchicalClusteringIndexParams, cv_PtrLcv_flann_HierarchicalClusteringIndexParamsG_new_null_const, cv_PtrLcv_flann_HierarchicalClusteringIndexParamsG_delete, cv_PtrLcv_flann_HierarchicalClusteringIndexParamsG_getInnerPtr_const, cv_PtrLcv_flann_HierarchicalClusteringIndexParamsG_getInnerPtrMut } ptr_extern_ctor! { crate::flann::HierarchicalClusteringIndexParams, cv_PtrLcv_flann_HierarchicalClusteringIndexParamsG_new_const_HierarchicalClusteringIndexParams } impl core::Ptr { #[inline] pub fn as_raw_PtrOfHierarchicalClusteringIndexParams(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfHierarchicalClusteringIndexParams(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::flann::HierarchicalClusteringIndexParamsTraitConst for core::Ptr { #[inline] fn as_raw_HierarchicalClusteringIndexParams(&self) -> *const c_void { self.inner_as_raw() } } impl crate::flann::HierarchicalClusteringIndexParamsTrait for core::Ptr { #[inline] fn as_raw_mut_HierarchicalClusteringIndexParams(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl crate::flann::IndexParamsTraitConst for core::Ptr { #[inline] fn as_raw_IndexParams(&self) -> *const c_void { self.inner_as_raw() } } impl crate::flann::IndexParamsTrait for core::Ptr { #[inline] fn as_raw_mut_IndexParams(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_flann_HierarchicalClusteringIndexParamsG_to_PtrOfIndexParams } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfHierarchicalClusteringIndexParams") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfIndexParams = core::Ptr; ptr_extern! { crate::flann::IndexParams, cv_PtrLcv_flann_IndexParamsG_new_null_const, cv_PtrLcv_flann_IndexParamsG_delete, cv_PtrLcv_flann_IndexParamsG_getInnerPtr_const, cv_PtrLcv_flann_IndexParamsG_getInnerPtrMut } ptr_extern_ctor! { crate::flann::IndexParams, cv_PtrLcv_flann_IndexParamsG_new_const_IndexParams } impl core::Ptr { #[inline] pub fn as_raw_PtrOfIndexParams(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfIndexParams(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::flann::IndexParamsTraitConst for core::Ptr { #[inline] fn as_raw_IndexParams(&self) -> *const c_void { self.inner_as_raw() } } impl crate::flann::IndexParamsTrait for core::Ptr { #[inline] fn as_raw_mut_IndexParams(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfIndexParams") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfKDTreeIndexParams = core::Ptr; ptr_extern! { crate::flann::KDTreeIndexParams, cv_PtrLcv_flann_KDTreeIndexParamsG_new_null_const, cv_PtrLcv_flann_KDTreeIndexParamsG_delete, cv_PtrLcv_flann_KDTreeIndexParamsG_getInnerPtr_const, cv_PtrLcv_flann_KDTreeIndexParamsG_getInnerPtrMut } ptr_extern_ctor! { crate::flann::KDTreeIndexParams, cv_PtrLcv_flann_KDTreeIndexParamsG_new_const_KDTreeIndexParams } impl core::Ptr { #[inline] pub fn as_raw_PtrOfKDTreeIndexParams(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfKDTreeIndexParams(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::flann::KDTreeIndexParamsTraitConst for core::Ptr { #[inline] fn as_raw_KDTreeIndexParams(&self) -> *const c_void { self.inner_as_raw() } } impl crate::flann::KDTreeIndexParamsTrait for core::Ptr { #[inline] fn as_raw_mut_KDTreeIndexParams(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl crate::flann::IndexParamsTraitConst for core::Ptr { #[inline] fn as_raw_IndexParams(&self) -> *const c_void { self.inner_as_raw() } } impl crate::flann::IndexParamsTrait for core::Ptr { #[inline] fn as_raw_mut_IndexParams(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_flann_KDTreeIndexParamsG_to_PtrOfIndexParams } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfKDTreeIndexParams") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfKMeansIndexParams = core::Ptr; ptr_extern! { crate::flann::KMeansIndexParams, cv_PtrLcv_flann_KMeansIndexParamsG_new_null_const, cv_PtrLcv_flann_KMeansIndexParamsG_delete, cv_PtrLcv_flann_KMeansIndexParamsG_getInnerPtr_const, cv_PtrLcv_flann_KMeansIndexParamsG_getInnerPtrMut } ptr_extern_ctor! { crate::flann::KMeansIndexParams, cv_PtrLcv_flann_KMeansIndexParamsG_new_const_KMeansIndexParams } impl core::Ptr { #[inline] pub fn as_raw_PtrOfKMeansIndexParams(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfKMeansIndexParams(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::flann::KMeansIndexParamsTraitConst for core::Ptr { #[inline] fn as_raw_KMeansIndexParams(&self) -> *const c_void { self.inner_as_raw() } } impl crate::flann::KMeansIndexParamsTrait for core::Ptr { #[inline] fn as_raw_mut_KMeansIndexParams(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl crate::flann::IndexParamsTraitConst for core::Ptr { #[inline] fn as_raw_IndexParams(&self) -> *const c_void { self.inner_as_raw() } } impl crate::flann::IndexParamsTrait for core::Ptr { #[inline] fn as_raw_mut_IndexParams(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_flann_KMeansIndexParamsG_to_PtrOfIndexParams } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfKMeansIndexParams") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfLinearIndexParams = core::Ptr; ptr_extern! { crate::flann::LinearIndexParams, cv_PtrLcv_flann_LinearIndexParamsG_new_null_const, cv_PtrLcv_flann_LinearIndexParamsG_delete, cv_PtrLcv_flann_LinearIndexParamsG_getInnerPtr_const, cv_PtrLcv_flann_LinearIndexParamsG_getInnerPtrMut } ptr_extern_ctor! { crate::flann::LinearIndexParams, cv_PtrLcv_flann_LinearIndexParamsG_new_const_LinearIndexParams } impl core::Ptr { #[inline] pub fn as_raw_PtrOfLinearIndexParams(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfLinearIndexParams(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::flann::LinearIndexParamsTraitConst for core::Ptr { #[inline] fn as_raw_LinearIndexParams(&self) -> *const c_void { self.inner_as_raw() } } impl crate::flann::LinearIndexParamsTrait for core::Ptr { #[inline] fn as_raw_mut_LinearIndexParams(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl crate::flann::IndexParamsTraitConst for core::Ptr { #[inline] fn as_raw_IndexParams(&self) -> *const c_void { self.inner_as_raw() } } impl crate::flann::IndexParamsTrait for core::Ptr { #[inline] fn as_raw_mut_IndexParams(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_flann_LinearIndexParamsG_to_PtrOfIndexParams } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfLinearIndexParams") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfLshIndexParams = core::Ptr; ptr_extern! { crate::flann::LshIndexParams, cv_PtrLcv_flann_LshIndexParamsG_new_null_const, cv_PtrLcv_flann_LshIndexParamsG_delete, cv_PtrLcv_flann_LshIndexParamsG_getInnerPtr_const, cv_PtrLcv_flann_LshIndexParamsG_getInnerPtrMut } ptr_extern_ctor! { crate::flann::LshIndexParams, cv_PtrLcv_flann_LshIndexParamsG_new_const_LshIndexParams } impl core::Ptr { #[inline] pub fn as_raw_PtrOfLshIndexParams(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfLshIndexParams(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::flann::LshIndexParamsTraitConst for core::Ptr { #[inline] fn as_raw_LshIndexParams(&self) -> *const c_void { self.inner_as_raw() } } impl crate::flann::LshIndexParamsTrait for core::Ptr { #[inline] fn as_raw_mut_LshIndexParams(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl crate::flann::IndexParamsTraitConst for core::Ptr { #[inline] fn as_raw_IndexParams(&self) -> *const c_void { self.inner_as_raw() } } impl crate::flann::IndexParamsTrait for core::Ptr { #[inline] fn as_raw_mut_IndexParams(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_flann_LshIndexParamsG_to_PtrOfIndexParams } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfLshIndexParams") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfSavedIndexParams = core::Ptr; ptr_extern! { crate::flann::SavedIndexParams, cv_PtrLcv_flann_SavedIndexParamsG_new_null_const, cv_PtrLcv_flann_SavedIndexParamsG_delete, cv_PtrLcv_flann_SavedIndexParamsG_getInnerPtr_const, cv_PtrLcv_flann_SavedIndexParamsG_getInnerPtrMut } ptr_extern_ctor! { crate::flann::SavedIndexParams, cv_PtrLcv_flann_SavedIndexParamsG_new_const_SavedIndexParams } impl core::Ptr { #[inline] pub fn as_raw_PtrOfSavedIndexParams(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfSavedIndexParams(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::flann::SavedIndexParamsTraitConst for core::Ptr { #[inline] fn as_raw_SavedIndexParams(&self) -> *const c_void { self.inner_as_raw() } } impl crate::flann::SavedIndexParamsTrait for core::Ptr { #[inline] fn as_raw_mut_SavedIndexParams(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl crate::flann::IndexParamsTraitConst for core::Ptr { #[inline] fn as_raw_IndexParams(&self) -> *const c_void { self.inner_as_raw() } } impl crate::flann::IndexParamsTrait for core::Ptr { #[inline] fn as_raw_mut_IndexParams(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_flann_SavedIndexParamsG_to_PtrOfIndexParams } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfSavedIndexParams") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfSearchParams = core::Ptr; ptr_extern! { crate::flann::SearchParams, cv_PtrLcv_flann_SearchParamsG_new_null_const, cv_PtrLcv_flann_SearchParamsG_delete, cv_PtrLcv_flann_SearchParamsG_getInnerPtr_const, cv_PtrLcv_flann_SearchParamsG_getInnerPtrMut } ptr_extern_ctor! { crate::flann::SearchParams, cv_PtrLcv_flann_SearchParamsG_new_const_SearchParams } impl core::Ptr { #[inline] pub fn as_raw_PtrOfSearchParams(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfSearchParams(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::flann::SearchParamsTraitConst for core::Ptr { #[inline] fn as_raw_SearchParams(&self) -> *const c_void { self.inner_as_raw() } } impl crate::flann::SearchParamsTrait for core::Ptr { #[inline] fn as_raw_mut_SearchParams(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl crate::flann::IndexParamsTraitConst for core::Ptr { #[inline] fn as_raw_IndexParams(&self) -> *const c_void { self.inner_as_raw() } } impl crate::flann::IndexParamsTrait for core::Ptr { #[inline] fn as_raw_mut_IndexParams(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_flann_SearchParamsG_to_PtrOfIndexParams } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfSearchParams") .finish() } } #[deprecated = "Use the the non-alias form `core::Vector` instead, removal in Nov 2024"] pub type VectorOfFeatureIndex = core::Vector; impl core::Vector { pub fn as_raw_VectorOfFeatureIndex(&self) -> extern_send!(Self) { self.as_raw() } pub fn as_raw_mut_VectorOfFeatureIndex(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } vector_extern! { crate::flann::FeatureIndex, std_vectorLcvflann_lsh_FeatureIndexG_new_const, std_vectorLcvflann_lsh_FeatureIndexG_delete, std_vectorLcvflann_lsh_FeatureIndexG_len_const, std_vectorLcvflann_lsh_FeatureIndexG_isEmpty_const, std_vectorLcvflann_lsh_FeatureIndexG_capacity_const, std_vectorLcvflann_lsh_FeatureIndexG_shrinkToFit, std_vectorLcvflann_lsh_FeatureIndexG_reserve_size_t, std_vectorLcvflann_lsh_FeatureIndexG_remove_size_t, std_vectorLcvflann_lsh_FeatureIndexG_swap_size_t_size_t, std_vectorLcvflann_lsh_FeatureIndexG_clear, std_vectorLcvflann_lsh_FeatureIndexG_get_const_size_t, std_vectorLcvflann_lsh_FeatureIndexG_set_size_t_const_FeatureIndex, std_vectorLcvflann_lsh_FeatureIndexG_push_const_FeatureIndex, std_vectorLcvflann_lsh_FeatureIndexG_insert_size_t_const_FeatureIndex, } vector_copy_non_bool! { crate::flann::FeatureIndex, std_vectorLcvflann_lsh_FeatureIndexG_data_const, std_vectorLcvflann_lsh_FeatureIndexG_dataMut, cv_fromSlice_const_const_FeatureIndexX_size_t, std_vectorLcvflann_lsh_FeatureIndexG_clone_const, } #[deprecated = "Use the the non-alias form `core::Vector` instead, removal in Nov 2024"] pub type VectorOfFlannIndexType = core::Vector; impl core::Vector { pub fn as_raw_VectorOfFlannIndexType(&self) -> extern_send!(Self) { self.as_raw() } pub fn as_raw_mut_VectorOfFlannIndexType(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } vector_extern! { crate::flann::FlannIndexType, std_vectorLcv_flann_FlannIndexTypeG_new_const, std_vectorLcv_flann_FlannIndexTypeG_delete, std_vectorLcv_flann_FlannIndexTypeG_len_const, std_vectorLcv_flann_FlannIndexTypeG_isEmpty_const, std_vectorLcv_flann_FlannIndexTypeG_capacity_const, std_vectorLcv_flann_FlannIndexTypeG_shrinkToFit, std_vectorLcv_flann_FlannIndexTypeG_reserve_size_t, std_vectorLcv_flann_FlannIndexTypeG_remove_size_t, std_vectorLcv_flann_FlannIndexTypeG_swap_size_t_size_t, std_vectorLcv_flann_FlannIndexTypeG_clear, std_vectorLcv_flann_FlannIndexTypeG_get_const_size_t, std_vectorLcv_flann_FlannIndexTypeG_set_size_t_const_FlannIndexType, std_vectorLcv_flann_FlannIndexTypeG_push_const_FlannIndexType, std_vectorLcv_flann_FlannIndexTypeG_insert_size_t_const_FlannIndexType, } vector_copy_non_bool! { crate::flann::FlannIndexType, std_vectorLcv_flann_FlannIndexTypeG_data_const, std_vectorLcv_flann_FlannIndexTypeG_dataMut, cv_fromSlice_const_const_FlannIndexTypeX_size_t, std_vectorLcv_flann_FlannIndexTypeG_clone_const, } } #[cfg(ocvrs_has_module_flann)] pub use flann_types::*; #[cfg(ocvrs_has_module_freetype)] mod freetype_types { use crate::{mod_prelude::*, core, types, sys}; #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfFreeType2 = core::Ptr; ptr_extern! { crate::freetype::FreeType2, cv_PtrLcv_freetype_FreeType2G_new_null_const, cv_PtrLcv_freetype_FreeType2G_delete, cv_PtrLcv_freetype_FreeType2G_getInnerPtr_const, cv_PtrLcv_freetype_FreeType2G_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfFreeType2(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfFreeType2(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::freetype::FreeType2TraitConst for core::Ptr { #[inline] fn as_raw_FreeType2(&self) -> *const c_void { self.inner_as_raw() } } impl crate::freetype::FreeType2Trait for core::Ptr { #[inline] fn as_raw_mut_FreeType2(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_freetype_FreeType2G_to_PtrOfAlgorithm } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfFreeType2") .finish() } } } #[cfg(ocvrs_has_module_freetype)] pub use freetype_types::*; #[cfg(ocvrs_has_module_gapi)] mod gapi_types { use crate::{mod_prelude::*, core, types, sys}; #[deprecated = "Use the the non-alias form `core::Tuple<(crate::gapi::GBackend, crate::gapi::GKernelImpl)>` instead, removal in Nov 2024"] pub type TupleOfGBackend_GKernelImpl = core::Tuple<(crate::gapi::GBackend, crate::gapi::GKernelImpl)>; impl core::Tuple<(crate::gapi::GBackend, crate::gapi::GKernelImpl)> { pub fn as_raw_TupleOfGBackend_GKernelImpl(&self) -> extern_send!(Self) { self.as_raw() } pub fn as_raw_mut_TupleOfGBackend_GKernelImpl(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } tuple_extern! { (crate::gapi::GBackend, crate::gapi::GKernelImpl), std_pairLcv_gapi_GBackend__cv_GKernelImplG_new_const_GBackend_GKernelImpl, std_pairLcv_gapi_GBackend__cv_GKernelImplG_delete, 0 = arg: crate::gapi::GBackend, get_0 via std_pairLcv_gapi_GBackend__cv_GKernelImplG_get_0_const, 1 = arg_1: crate::gapi::GKernelImpl, get_1 via std_pairLcv_gapi_GBackend__cv_GKernelImplG_get_1_const } #[deprecated = "Use the the non-alias form `core::Tuple<(crate::gapi::GMat, crate::gapi::GMat)>` instead, removal in Nov 2024"] pub type TupleOfGMat_GMat = core::Tuple<(crate::gapi::GMat, crate::gapi::GMat)>; impl core::Tuple<(crate::gapi::GMat, crate::gapi::GMat)> { pub fn as_raw_TupleOfGMat_GMat(&self) -> extern_send!(Self) { self.as_raw() } pub fn as_raw_mut_TupleOfGMat_GMat(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } tuple_extern! { (crate::gapi::GMat, crate::gapi::GMat), std_tupleLcv_GMat__cv_GMatG_new_const_GMat_GMat, std_tupleLcv_GMat__cv_GMatG_delete, 0 = arg: crate::gapi::GMat, get_0 via std_tupleLcv_GMat__cv_GMatG_get_0_const, 1 = arg_1: crate::gapi::GMat, get_1 via std_tupleLcv_GMat__cv_GMatG_get_1_const } #[deprecated = "Use the the non-alias form `core::Tuple<(crate::gapi::GMat, crate::gapi::GMat, crate::gapi::GMat)>` instead, removal in Nov 2024"] pub type TupleOfGMat_GMat_GMat = core::Tuple<(crate::gapi::GMat, crate::gapi::GMat, crate::gapi::GMat)>; impl core::Tuple<(crate::gapi::GMat, crate::gapi::GMat, crate::gapi::GMat)> { pub fn as_raw_TupleOfGMat_GMat_GMat(&self) -> extern_send!(Self) { self.as_raw() } pub fn as_raw_mut_TupleOfGMat_GMat_GMat(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } tuple_extern! { (crate::gapi::GMat, crate::gapi::GMat, crate::gapi::GMat), std_tupleLcv_GMat__cv_GMat__cv_GMatG_new_const_GMat_GMat_GMat, std_tupleLcv_GMat__cv_GMat__cv_GMatG_delete, 0 = arg: crate::gapi::GMat, get_0 via std_tupleLcv_GMat__cv_GMat__cv_GMatG_get_0_const, 1 = arg_1: crate::gapi::GMat, get_1 via std_tupleLcv_GMat__cv_GMat__cv_GMatG_get_1_const, 2 = arg_2: crate::gapi::GMat, get_2 via std_tupleLcv_GMat__cv_GMat__cv_GMatG_get_2_const } #[deprecated = "Use the the non-alias form `core::Tuple<(crate::gapi::GMat, crate::gapi::GMat, crate::gapi::GMat, crate::gapi::GMat)>` instead, removal in Nov 2024"] pub type TupleOfGMat_GMat_GMat_GMat = core::Tuple<(crate::gapi::GMat, crate::gapi::GMat, crate::gapi::GMat, crate::gapi::GMat)>; impl core::Tuple<(crate::gapi::GMat, crate::gapi::GMat, crate::gapi::GMat, crate::gapi::GMat)> { pub fn as_raw_TupleOfGMat_GMat_GMat_GMat(&self) -> extern_send!(Self) { self.as_raw() } pub fn as_raw_mut_TupleOfGMat_GMat_GMat_GMat(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } tuple_extern! { (crate::gapi::GMat, crate::gapi::GMat, crate::gapi::GMat, crate::gapi::GMat), std_tupleLcv_GMat__cv_GMat__cv_GMat__cv_GMatG_new_const_GMat_GMat_GMat_GMat, std_tupleLcv_GMat__cv_GMat__cv_GMat__cv_GMatG_delete, 0 = arg: crate::gapi::GMat, get_0 via std_tupleLcv_GMat__cv_GMat__cv_GMat__cv_GMatG_get_0_const, 1 = arg_1: crate::gapi::GMat, get_1 via std_tupleLcv_GMat__cv_GMat__cv_GMat__cv_GMatG_get_1_const, 2 = arg_2: crate::gapi::GMat, get_2 via std_tupleLcv_GMat__cv_GMat__cv_GMat__cv_GMatG_get_2_const, 3 = arg_3: crate::gapi::GMat, get_3 via std_tupleLcv_GMat__cv_GMat__cv_GMat__cv_GMatG_get_3_const } #[deprecated = "Use the the non-alias form `core::Tuple<(crate::gapi::GMat, crate::gapi::GScalar)>` instead, removal in Nov 2024"] pub type TupleOfGMat_GScalar = core::Tuple<(crate::gapi::GMat, crate::gapi::GScalar)>; impl core::Tuple<(crate::gapi::GMat, crate::gapi::GScalar)> { pub fn as_raw_TupleOfGMat_GScalar(&self) -> extern_send!(Self) { self.as_raw() } pub fn as_raw_mut_TupleOfGMat_GScalar(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } tuple_extern! { (crate::gapi::GMat, crate::gapi::GScalar), std_tupleLcv_GMat__cv_GScalarG_new_const_GMat_GScalar, std_tupleLcv_GMat__cv_GScalarG_delete, 0 = arg: crate::gapi::GMat, get_0 via std_tupleLcv_GMat__cv_GScalarG_get_0_const, 1 = arg_1: crate::gapi::GScalar, get_1 via std_tupleLcv_GMat__cv_GScalarG_get_1_const } #[deprecated = "Use the the non-alias form `core::Vector` instead, removal in Nov 2024"] pub type VectorOfDetail_OpaqueKind = core::Vector; impl core::Vector { pub fn as_raw_VectorOfDetail_OpaqueKind(&self) -> extern_send!(Self) { self.as_raw() } pub fn as_raw_mut_VectorOfDetail_OpaqueKind(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } vector_extern! { crate::gapi::Detail_OpaqueKind, std_vectorLcv_detail_OpaqueKindG_new_const, std_vectorLcv_detail_OpaqueKindG_delete, std_vectorLcv_detail_OpaqueKindG_len_const, std_vectorLcv_detail_OpaqueKindG_isEmpty_const, std_vectorLcv_detail_OpaqueKindG_capacity_const, std_vectorLcv_detail_OpaqueKindG_shrinkToFit, std_vectorLcv_detail_OpaqueKindG_reserve_size_t, std_vectorLcv_detail_OpaqueKindG_remove_size_t, std_vectorLcv_detail_OpaqueKindG_swap_size_t_size_t, std_vectorLcv_detail_OpaqueKindG_clear, std_vectorLcv_detail_OpaqueKindG_get_const_size_t, std_vectorLcv_detail_OpaqueKindG_set_size_t_const_OpaqueKind, std_vectorLcv_detail_OpaqueKindG_push_const_OpaqueKind, std_vectorLcv_detail_OpaqueKindG_insert_size_t_const_OpaqueKind, } vector_copy_non_bool! { crate::gapi::Detail_OpaqueKind, std_vectorLcv_detail_OpaqueKindG_data_const, std_vectorLcv_detail_OpaqueKindG_dataMut, cv_fromSlice_const_const_OpaqueKindX_size_t, std_vectorLcv_detail_OpaqueKindG_clone_const, } #[deprecated = "Use the the non-alias form `core::Vector` instead, removal in Nov 2024"] pub type VectorOfGArg = core::Vector; impl core::Vector { pub fn as_raw_VectorOfGArg(&self) -> extern_send!(Self) { self.as_raw() } pub fn as_raw_mut_VectorOfGArg(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } vector_extern! { crate::gapi::GArg, std_vectorLcv_GArgG_new_const, std_vectorLcv_GArgG_delete, std_vectorLcv_GArgG_len_const, std_vectorLcv_GArgG_isEmpty_const, std_vectorLcv_GArgG_capacity_const, std_vectorLcv_GArgG_shrinkToFit, std_vectorLcv_GArgG_reserve_size_t, std_vectorLcv_GArgG_remove_size_t, std_vectorLcv_GArgG_swap_size_t_size_t, std_vectorLcv_GArgG_clear, std_vectorLcv_GArgG_get_const_size_t, std_vectorLcv_GArgG_set_size_t_const_GArg, std_vectorLcv_GArgG_push_const_GArg, std_vectorLcv_GArgG_insert_size_t_const_GArg, } vector_non_copy_or_bool! { crate::gapi::GArg } vector_boxed_ref! { crate::gapi::GArg } vector_extern! { BoxedRef<'t, crate::gapi::GArg>, std_vectorLcv_GArgG_new_const, std_vectorLcv_GArgG_delete, std_vectorLcv_GArgG_len_const, std_vectorLcv_GArgG_isEmpty_const, std_vectorLcv_GArgG_capacity_const, std_vectorLcv_GArgG_shrinkToFit, std_vectorLcv_GArgG_reserve_size_t, std_vectorLcv_GArgG_remove_size_t, std_vectorLcv_GArgG_swap_size_t_size_t, std_vectorLcv_GArgG_clear, std_vectorLcv_GArgG_get_const_size_t, std_vectorLcv_GArgG_set_size_t_const_GArg, std_vectorLcv_GArgG_push_const_GArg, std_vectorLcv_GArgG_insert_size_t_const_GArg, } #[deprecated = "Use the the non-alias form `core::Vector` instead, removal in Nov 2024"] pub type VectorOfGBackend = core::Vector; impl core::Vector { pub fn as_raw_VectorOfGBackend(&self) -> extern_send!(Self) { self.as_raw() } pub fn as_raw_mut_VectorOfGBackend(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } vector_extern! { crate::gapi::GBackend, std_vectorLcv_gapi_GBackendG_new_const, std_vectorLcv_gapi_GBackendG_delete, std_vectorLcv_gapi_GBackendG_len_const, std_vectorLcv_gapi_GBackendG_isEmpty_const, std_vectorLcv_gapi_GBackendG_capacity_const, std_vectorLcv_gapi_GBackendG_shrinkToFit, std_vectorLcv_gapi_GBackendG_reserve_size_t, std_vectorLcv_gapi_GBackendG_remove_size_t, std_vectorLcv_gapi_GBackendG_swap_size_t_size_t, std_vectorLcv_gapi_GBackendG_clear, std_vectorLcv_gapi_GBackendG_get_const_size_t, std_vectorLcv_gapi_GBackendG_set_size_t_const_GBackend, std_vectorLcv_gapi_GBackendG_push_const_GBackend, std_vectorLcv_gapi_GBackendG_insert_size_t_const_GBackend, } vector_non_copy_or_bool! { crate::gapi::GBackend } vector_boxed_ref! { crate::gapi::GBackend } vector_extern! { BoxedRef<'t, crate::gapi::GBackend>, std_vectorLcv_gapi_GBackendG_new_const, std_vectorLcv_gapi_GBackendG_delete, std_vectorLcv_gapi_GBackendG_len_const, std_vectorLcv_gapi_GBackendG_isEmpty_const, std_vectorLcv_gapi_GBackendG_capacity_const, std_vectorLcv_gapi_GBackendG_shrinkToFit, std_vectorLcv_gapi_GBackendG_reserve_size_t, std_vectorLcv_gapi_GBackendG_remove_size_t, std_vectorLcv_gapi_GBackendG_swap_size_t_size_t, std_vectorLcv_gapi_GBackendG_clear, std_vectorLcv_gapi_GBackendG_get_const_size_t, std_vectorLcv_gapi_GBackendG_set_size_t_const_GBackend, std_vectorLcv_gapi_GBackendG_push_const_GBackend, std_vectorLcv_gapi_GBackendG_insert_size_t_const_GBackend, } #[deprecated = "Use the the non-alias form `core::Vector` instead, removal in Nov 2024"] pub type VectorOfGCompileArg = core::Vector; impl core::Vector { pub fn as_raw_VectorOfGCompileArg(&self) -> extern_send!(Self) { self.as_raw() } pub fn as_raw_mut_VectorOfGCompileArg(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } vector_extern! { crate::gapi::GCompileArg, std_vectorLcv_GCompileArgG_new_const, std_vectorLcv_GCompileArgG_delete, std_vectorLcv_GCompileArgG_len_const, std_vectorLcv_GCompileArgG_isEmpty_const, std_vectorLcv_GCompileArgG_capacity_const, std_vectorLcv_GCompileArgG_shrinkToFit, std_vectorLcv_GCompileArgG_reserve_size_t, std_vectorLcv_GCompileArgG_remove_size_t, std_vectorLcv_GCompileArgG_swap_size_t_size_t, std_vectorLcv_GCompileArgG_clear, std_vectorLcv_GCompileArgG_get_const_size_t, std_vectorLcv_GCompileArgG_set_size_t_const_GCompileArg, std_vectorLcv_GCompileArgG_push_const_GCompileArg, std_vectorLcv_GCompileArgG_insert_size_t_const_GCompileArg, } vector_non_copy_or_bool! { crate::gapi::GCompileArg } vector_boxed_ref! { crate::gapi::GCompileArg } vector_extern! { BoxedRef<'t, crate::gapi::GCompileArg>, std_vectorLcv_GCompileArgG_new_const, std_vectorLcv_GCompileArgG_delete, std_vectorLcv_GCompileArgG_len_const, std_vectorLcv_GCompileArgG_isEmpty_const, std_vectorLcv_GCompileArgG_capacity_const, std_vectorLcv_GCompileArgG_shrinkToFit, std_vectorLcv_GCompileArgG_reserve_size_t, std_vectorLcv_GCompileArgG_remove_size_t, std_vectorLcv_GCompileArgG_swap_size_t_size_t, std_vectorLcv_GCompileArgG_clear, std_vectorLcv_GCompileArgG_get_const_size_t, std_vectorLcv_GCompileArgG_set_size_t_const_GCompileArg, std_vectorLcv_GCompileArgG_push_const_GCompileArg, std_vectorLcv_GCompileArgG_insert_size_t_const_GCompileArg, } #[deprecated = "Use the the non-alias form `core::Vector` instead, removal in Nov 2024"] pub type VectorOfGMat = core::Vector; impl core::Vector { pub fn as_raw_VectorOfGMat(&self) -> extern_send!(Self) { self.as_raw() } pub fn as_raw_mut_VectorOfGMat(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } vector_extern! { crate::gapi::GMat, std_vectorLcv_GMatG_new_const, std_vectorLcv_GMatG_delete, std_vectorLcv_GMatG_len_const, std_vectorLcv_GMatG_isEmpty_const, std_vectorLcv_GMatG_capacity_const, std_vectorLcv_GMatG_shrinkToFit, std_vectorLcv_GMatG_reserve_size_t, std_vectorLcv_GMatG_remove_size_t, std_vectorLcv_GMatG_swap_size_t_size_t, std_vectorLcv_GMatG_clear, std_vectorLcv_GMatG_get_const_size_t, std_vectorLcv_GMatG_set_size_t_const_GMat, std_vectorLcv_GMatG_push_const_GMat, std_vectorLcv_GMatG_insert_size_t_const_GMat, } vector_non_copy_or_bool! { clone crate::gapi::GMat } vector_boxed_ref! { crate::gapi::GMat } vector_extern! { BoxedRef<'t, crate::gapi::GMat>, std_vectorLcv_GMatG_new_const, std_vectorLcv_GMatG_delete, std_vectorLcv_GMatG_len_const, std_vectorLcv_GMatG_isEmpty_const, std_vectorLcv_GMatG_capacity_const, std_vectorLcv_GMatG_shrinkToFit, std_vectorLcv_GMatG_reserve_size_t, std_vectorLcv_GMatG_remove_size_t, std_vectorLcv_GMatG_swap_size_t_size_t, std_vectorLcv_GMatG_clear, std_vectorLcv_GMatG_get_const_size_t, std_vectorLcv_GMatG_set_size_t_const_GMat, std_vectorLcv_GMatG_push_const_GMat, std_vectorLcv_GMatG_insert_size_t_const_GMat, } #[deprecated = "Use the the non-alias form `core::Vector` instead, removal in Nov 2024"] pub type VectorOfGRunArg = core::Vector; impl core::Vector { pub fn as_raw_VectorOfGRunArg(&self) -> extern_send!(Self) { self.as_raw() } pub fn as_raw_mut_VectorOfGRunArg(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } vector_extern! { crate::gapi::GRunArg, std_vectorLcv_GRunArgG_new_const, std_vectorLcv_GRunArgG_delete, std_vectorLcv_GRunArgG_len_const, std_vectorLcv_GRunArgG_isEmpty_const, std_vectorLcv_GRunArgG_capacity_const, std_vectorLcv_GRunArgG_shrinkToFit, std_vectorLcv_GRunArgG_reserve_size_t, std_vectorLcv_GRunArgG_remove_size_t, std_vectorLcv_GRunArgG_swap_size_t_size_t, std_vectorLcv_GRunArgG_clear, std_vectorLcv_GRunArgG_get_const_size_t, std_vectorLcv_GRunArgG_set_size_t_const_GRunArg, std_vectorLcv_GRunArgG_push_const_GRunArg, std_vectorLcv_GRunArgG_insert_size_t_const_GRunArg, } vector_non_copy_or_bool! { crate::gapi::GRunArg } vector_boxed_ref! { crate::gapi::GRunArg } vector_extern! { BoxedRef<'t, crate::gapi::GRunArg>, std_vectorLcv_GRunArgG_new_const, std_vectorLcv_GRunArgG_delete, std_vectorLcv_GRunArgG_len_const, std_vectorLcv_GRunArgG_isEmpty_const, std_vectorLcv_GRunArgG_capacity_const, std_vectorLcv_GRunArgG_shrinkToFit, std_vectorLcv_GRunArgG_reserve_size_t, std_vectorLcv_GRunArgG_remove_size_t, std_vectorLcv_GRunArgG_swap_size_t_size_t, std_vectorLcv_GRunArgG_clear, std_vectorLcv_GRunArgG_get_const_size_t, std_vectorLcv_GRunArgG_set_size_t_const_GRunArg, std_vectorLcv_GRunArgG_push_const_GRunArg, std_vectorLcv_GRunArgG_insert_size_t_const_GRunArg, } #[deprecated = "Use the the non-alias form `core::Vector` instead, removal in Nov 2024"] pub type VectorOfGShape = core::Vector; impl core::Vector { pub fn as_raw_VectorOfGShape(&self) -> extern_send!(Self) { self.as_raw() } pub fn as_raw_mut_VectorOfGShape(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } vector_extern! { crate::gapi::GShape, std_vectorLcv_GShapeG_new_const, std_vectorLcv_GShapeG_delete, std_vectorLcv_GShapeG_len_const, std_vectorLcv_GShapeG_isEmpty_const, std_vectorLcv_GShapeG_capacity_const, std_vectorLcv_GShapeG_shrinkToFit, std_vectorLcv_GShapeG_reserve_size_t, std_vectorLcv_GShapeG_remove_size_t, std_vectorLcv_GShapeG_swap_size_t_size_t, std_vectorLcv_GShapeG_clear, std_vectorLcv_GShapeG_get_const_size_t, std_vectorLcv_GShapeG_set_size_t_const_GShape, std_vectorLcv_GShapeG_push_const_GShape, std_vectorLcv_GShapeG_insert_size_t_const_GShape, } vector_copy_non_bool! { crate::gapi::GShape, std_vectorLcv_GShapeG_data_const, std_vectorLcv_GShapeG_dataMut, cv_fromSlice_const_const_GShapeX_size_t, std_vectorLcv_GShapeG_clone_const, } #[deprecated = "Use the the non-alias form `core::Vector` instead, removal in Nov 2024"] pub type VectorOfGTransform = core::Vector; impl core::Vector { pub fn as_raw_VectorOfGTransform(&self) -> extern_send!(Self) { self.as_raw() } pub fn as_raw_mut_VectorOfGTransform(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } vector_extern! { crate::gapi::GTransform, std_vectorLcv_GTransformG_new_const, std_vectorLcv_GTransformG_delete, std_vectorLcv_GTransformG_len_const, std_vectorLcv_GTransformG_isEmpty_const, std_vectorLcv_GTransformG_capacity_const, std_vectorLcv_GTransformG_shrinkToFit, std_vectorLcv_GTransformG_reserve_size_t, std_vectorLcv_GTransformG_remove_size_t, std_vectorLcv_GTransformG_swap_size_t_size_t, std_vectorLcv_GTransformG_clear, std_vectorLcv_GTransformG_get_const_size_t, std_vectorLcv_GTransformG_set_size_t_const_GTransform, std_vectorLcv_GTransformG_push_const_GTransform, std_vectorLcv_GTransformG_insert_size_t_const_GTransform, } vector_non_copy_or_bool! { crate::gapi::GTransform } vector_boxed_ref! { crate::gapi::GTransform } vector_extern! { BoxedRef<'t, crate::gapi::GTransform>, std_vectorLcv_GTransformG_new_const, std_vectorLcv_GTransformG_delete, std_vectorLcv_GTransformG_len_const, std_vectorLcv_GTransformG_isEmpty_const, std_vectorLcv_GTransformG_capacity_const, std_vectorLcv_GTransformG_shrinkToFit, std_vectorLcv_GTransformG_reserve_size_t, std_vectorLcv_GTransformG_remove_size_t, std_vectorLcv_GTransformG_swap_size_t_size_t, std_vectorLcv_GTransformG_clear, std_vectorLcv_GTransformG_get_const_size_t, std_vectorLcv_GTransformG_set_size_t_const_GTransform, std_vectorLcv_GTransformG_push_const_GTransform, std_vectorLcv_GTransformG_insert_size_t_const_GTransform, } #[deprecated = "Use the the non-alias form `core::Vector` instead, removal in Nov 2024"] pub type VectorOfGTypeInfo = core::Vector; impl core::Vector { pub fn as_raw_VectorOfGTypeInfo(&self) -> extern_send!(Self) { self.as_raw() } pub fn as_raw_mut_VectorOfGTypeInfo(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } vector_extern! { crate::gapi::GTypeInfo, std_vectorLcv_GTypeInfoG_new_const, std_vectorLcv_GTypeInfoG_delete, std_vectorLcv_GTypeInfoG_len_const, std_vectorLcv_GTypeInfoG_isEmpty_const, std_vectorLcv_GTypeInfoG_capacity_const, std_vectorLcv_GTypeInfoG_shrinkToFit, std_vectorLcv_GTypeInfoG_reserve_size_t, std_vectorLcv_GTypeInfoG_remove_size_t, std_vectorLcv_GTypeInfoG_swap_size_t_size_t, std_vectorLcv_GTypeInfoG_clear, std_vectorLcv_GTypeInfoG_get_const_size_t, std_vectorLcv_GTypeInfoG_set_size_t_const_GTypeInfo, std_vectorLcv_GTypeInfoG_push_const_GTypeInfo, std_vectorLcv_GTypeInfoG_insert_size_t_const_GTypeInfo, } vector_non_copy_or_bool! { clone crate::gapi::GTypeInfo } vector_boxed_ref! { crate::gapi::GTypeInfo } vector_extern! { BoxedRef<'t, crate::gapi::GTypeInfo>, std_vectorLcv_GTypeInfoG_new_const, std_vectorLcv_GTypeInfoG_delete, std_vectorLcv_GTypeInfoG_len_const, std_vectorLcv_GTypeInfoG_isEmpty_const, std_vectorLcv_GTypeInfoG_capacity_const, std_vectorLcv_GTypeInfoG_shrinkToFit, std_vectorLcv_GTypeInfoG_reserve_size_t, std_vectorLcv_GTypeInfoG_remove_size_t, std_vectorLcv_GTypeInfoG_swap_size_t_size_t, std_vectorLcv_GTypeInfoG_clear, std_vectorLcv_GTypeInfoG_get_const_size_t, std_vectorLcv_GTypeInfoG_set_size_t_const_GTypeInfo, std_vectorLcv_GTypeInfoG_push_const_GTypeInfo, std_vectorLcv_GTypeInfoG_insert_size_t_const_GTypeInfo, } } #[cfg(ocvrs_has_module_gapi)] pub use gapi_types::*; #[cfg(ocvrs_has_module_hdf)] mod hdf_types { use crate::{mod_prelude::*, core, types, sys}; #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfHDF5 = core::Ptr; ptr_extern! { crate::hdf::HDF5, cv_PtrLcv_hdf_HDF5G_new_null_const, cv_PtrLcv_hdf_HDF5G_delete, cv_PtrLcv_hdf_HDF5G_getInnerPtr_const, cv_PtrLcv_hdf_HDF5G_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfHDF5(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfHDF5(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::hdf::HDF5TraitConst for core::Ptr { #[inline] fn as_raw_HDF5(&self) -> *const c_void { self.inner_as_raw() } } impl crate::hdf::HDF5Trait for core::Ptr { #[inline] fn as_raw_mut_HDF5(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfHDF5") .finish() } } } #[cfg(ocvrs_has_module_hdf)] pub use hdf_types::*; #[cfg(ocvrs_has_module_hfs)] mod hfs_types { use crate::{mod_prelude::*, core, types, sys}; #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfHfsSegment = core::Ptr; ptr_extern! { crate::hfs::HfsSegment, cv_PtrLcv_hfs_HfsSegmentG_new_null_const, cv_PtrLcv_hfs_HfsSegmentG_delete, cv_PtrLcv_hfs_HfsSegmentG_getInnerPtr_const, cv_PtrLcv_hfs_HfsSegmentG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfHfsSegment(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfHfsSegment(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::hfs::HfsSegmentTraitConst for core::Ptr { #[inline] fn as_raw_HfsSegment(&self) -> *const c_void { self.inner_as_raw() } } impl crate::hfs::HfsSegmentTrait for core::Ptr { #[inline] fn as_raw_mut_HfsSegment(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_hfs_HfsSegmentG_to_PtrOfAlgorithm } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfHfsSegment") .finish() } } } #[cfg(ocvrs_has_module_hfs)] pub use hfs_types::*; #[cfg(ocvrs_has_module_img_hash)] mod img_hash_types { use crate::{mod_prelude::*, core, types, sys}; #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfAverageHash = core::Ptr; ptr_extern! { crate::img_hash::AverageHash, cv_PtrLcv_img_hash_AverageHashG_new_null_const, cv_PtrLcv_img_hash_AverageHashG_delete, cv_PtrLcv_img_hash_AverageHashG_getInnerPtr_const, cv_PtrLcv_img_hash_AverageHashG_getInnerPtrMut } ptr_extern_ctor! { crate::img_hash::AverageHash, cv_PtrLcv_img_hash_AverageHashG_new_const_AverageHash } impl core::Ptr { #[inline] pub fn as_raw_PtrOfAverageHash(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfAverageHash(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::img_hash::AverageHashTraitConst for core::Ptr { #[inline] fn as_raw_AverageHash(&self) -> *const c_void { self.inner_as_raw() } } impl crate::img_hash::AverageHashTrait for core::Ptr { #[inline] fn as_raw_mut_AverageHash(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_img_hash_AverageHashG_to_PtrOfAlgorithm } impl crate::img_hash::ImgHashBaseTraitConst for core::Ptr { #[inline] fn as_raw_ImgHashBase(&self) -> *const c_void { self.inner_as_raw() } } impl crate::img_hash::ImgHashBaseTrait for core::Ptr { #[inline] fn as_raw_mut_ImgHashBase(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_img_hash_AverageHashG_to_PtrOfImgHashBase } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfAverageHash") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfBlockMeanHash = core::Ptr; ptr_extern! { crate::img_hash::BlockMeanHash, cv_PtrLcv_img_hash_BlockMeanHashG_new_null_const, cv_PtrLcv_img_hash_BlockMeanHashG_delete, cv_PtrLcv_img_hash_BlockMeanHashG_getInnerPtr_const, cv_PtrLcv_img_hash_BlockMeanHashG_getInnerPtrMut } ptr_extern_ctor! { crate::img_hash::BlockMeanHash, cv_PtrLcv_img_hash_BlockMeanHashG_new_const_BlockMeanHash } impl core::Ptr { #[inline] pub fn as_raw_PtrOfBlockMeanHash(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfBlockMeanHash(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::img_hash::BlockMeanHashTraitConst for core::Ptr { #[inline] fn as_raw_BlockMeanHash(&self) -> *const c_void { self.inner_as_raw() } } impl crate::img_hash::BlockMeanHashTrait for core::Ptr { #[inline] fn as_raw_mut_BlockMeanHash(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_img_hash_BlockMeanHashG_to_PtrOfAlgorithm } impl crate::img_hash::ImgHashBaseTraitConst for core::Ptr { #[inline] fn as_raw_ImgHashBase(&self) -> *const c_void { self.inner_as_raw() } } impl crate::img_hash::ImgHashBaseTrait for core::Ptr { #[inline] fn as_raw_mut_ImgHashBase(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_img_hash_BlockMeanHashG_to_PtrOfImgHashBase } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfBlockMeanHash") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfColorMomentHash = core::Ptr; ptr_extern! { crate::img_hash::ColorMomentHash, cv_PtrLcv_img_hash_ColorMomentHashG_new_null_const, cv_PtrLcv_img_hash_ColorMomentHashG_delete, cv_PtrLcv_img_hash_ColorMomentHashG_getInnerPtr_const, cv_PtrLcv_img_hash_ColorMomentHashG_getInnerPtrMut } ptr_extern_ctor! { crate::img_hash::ColorMomentHash, cv_PtrLcv_img_hash_ColorMomentHashG_new_const_ColorMomentHash } impl core::Ptr { #[inline] pub fn as_raw_PtrOfColorMomentHash(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfColorMomentHash(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::img_hash::ColorMomentHashTraitConst for core::Ptr { #[inline] fn as_raw_ColorMomentHash(&self) -> *const c_void { self.inner_as_raw() } } impl crate::img_hash::ColorMomentHashTrait for core::Ptr { #[inline] fn as_raw_mut_ColorMomentHash(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_img_hash_ColorMomentHashG_to_PtrOfAlgorithm } impl crate::img_hash::ImgHashBaseTraitConst for core::Ptr { #[inline] fn as_raw_ImgHashBase(&self) -> *const c_void { self.inner_as_raw() } } impl crate::img_hash::ImgHashBaseTrait for core::Ptr { #[inline] fn as_raw_mut_ImgHashBase(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_img_hash_ColorMomentHashG_to_PtrOfImgHashBase } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfColorMomentHash") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfImgHashBase = core::Ptr; ptr_extern! { crate::img_hash::ImgHashBase, cv_PtrLcv_img_hash_ImgHashBaseG_new_null_const, cv_PtrLcv_img_hash_ImgHashBaseG_delete, cv_PtrLcv_img_hash_ImgHashBaseG_getInnerPtr_const, cv_PtrLcv_img_hash_ImgHashBaseG_getInnerPtrMut } ptr_extern_ctor! { crate::img_hash::ImgHashBase, cv_PtrLcv_img_hash_ImgHashBaseG_new_const_ImgHashBase } impl core::Ptr { #[inline] pub fn as_raw_PtrOfImgHashBase(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfImgHashBase(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::img_hash::ImgHashBaseTraitConst for core::Ptr { #[inline] fn as_raw_ImgHashBase(&self) -> *const c_void { self.inner_as_raw() } } impl crate::img_hash::ImgHashBaseTrait for core::Ptr { #[inline] fn as_raw_mut_ImgHashBase(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_img_hash_ImgHashBaseG_to_PtrOfAlgorithm } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfImgHashBase") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfMarrHildrethHash = core::Ptr; ptr_extern! { crate::img_hash::MarrHildrethHash, cv_PtrLcv_img_hash_MarrHildrethHashG_new_null_const, cv_PtrLcv_img_hash_MarrHildrethHashG_delete, cv_PtrLcv_img_hash_MarrHildrethHashG_getInnerPtr_const, cv_PtrLcv_img_hash_MarrHildrethHashG_getInnerPtrMut } ptr_extern_ctor! { crate::img_hash::MarrHildrethHash, cv_PtrLcv_img_hash_MarrHildrethHashG_new_const_MarrHildrethHash } impl core::Ptr { #[inline] pub fn as_raw_PtrOfMarrHildrethHash(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfMarrHildrethHash(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::img_hash::MarrHildrethHashTraitConst for core::Ptr { #[inline] fn as_raw_MarrHildrethHash(&self) -> *const c_void { self.inner_as_raw() } } impl crate::img_hash::MarrHildrethHashTrait for core::Ptr { #[inline] fn as_raw_mut_MarrHildrethHash(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_img_hash_MarrHildrethHashG_to_PtrOfAlgorithm } impl crate::img_hash::ImgHashBaseTraitConst for core::Ptr { #[inline] fn as_raw_ImgHashBase(&self) -> *const c_void { self.inner_as_raw() } } impl crate::img_hash::ImgHashBaseTrait for core::Ptr { #[inline] fn as_raw_mut_ImgHashBase(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_img_hash_MarrHildrethHashG_to_PtrOfImgHashBase } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfMarrHildrethHash") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfPHash = core::Ptr; ptr_extern! { crate::img_hash::PHash, cv_PtrLcv_img_hash_PHashG_new_null_const, cv_PtrLcv_img_hash_PHashG_delete, cv_PtrLcv_img_hash_PHashG_getInnerPtr_const, cv_PtrLcv_img_hash_PHashG_getInnerPtrMut } ptr_extern_ctor! { crate::img_hash::PHash, cv_PtrLcv_img_hash_PHashG_new_const_PHash } impl core::Ptr { #[inline] pub fn as_raw_PtrOfPHash(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfPHash(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::img_hash::PHashTraitConst for core::Ptr { #[inline] fn as_raw_PHash(&self) -> *const c_void { self.inner_as_raw() } } impl crate::img_hash::PHashTrait for core::Ptr { #[inline] fn as_raw_mut_PHash(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_img_hash_PHashG_to_PtrOfAlgorithm } impl crate::img_hash::ImgHashBaseTraitConst for core::Ptr { #[inline] fn as_raw_ImgHashBase(&self) -> *const c_void { self.inner_as_raw() } } impl crate::img_hash::ImgHashBaseTrait for core::Ptr { #[inline] fn as_raw_mut_ImgHashBase(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_img_hash_PHashG_to_PtrOfImgHashBase } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfPHash") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfRadialVarianceHash = core::Ptr; ptr_extern! { crate::img_hash::RadialVarianceHash, cv_PtrLcv_img_hash_RadialVarianceHashG_new_null_const, cv_PtrLcv_img_hash_RadialVarianceHashG_delete, cv_PtrLcv_img_hash_RadialVarianceHashG_getInnerPtr_const, cv_PtrLcv_img_hash_RadialVarianceHashG_getInnerPtrMut } ptr_extern_ctor! { crate::img_hash::RadialVarianceHash, cv_PtrLcv_img_hash_RadialVarianceHashG_new_const_RadialVarianceHash } impl core::Ptr { #[inline] pub fn as_raw_PtrOfRadialVarianceHash(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfRadialVarianceHash(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::img_hash::RadialVarianceHashTraitConst for core::Ptr { #[inline] fn as_raw_RadialVarianceHash(&self) -> *const c_void { self.inner_as_raw() } } impl crate::img_hash::RadialVarianceHashTrait for core::Ptr { #[inline] fn as_raw_mut_RadialVarianceHash(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_img_hash_RadialVarianceHashG_to_PtrOfAlgorithm } impl crate::img_hash::ImgHashBaseTraitConst for core::Ptr { #[inline] fn as_raw_ImgHashBase(&self) -> *const c_void { self.inner_as_raw() } } impl crate::img_hash::ImgHashBaseTrait for core::Ptr { #[inline] fn as_raw_mut_ImgHashBase(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_img_hash_RadialVarianceHashG_to_PtrOfImgHashBase } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfRadialVarianceHash") .finish() } } } #[cfg(ocvrs_has_module_img_hash)] pub use img_hash_types::*; #[cfg(ocvrs_has_module_imgproc)] mod imgproc_types { use crate::{mod_prelude::*, core, types, sys}; #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfCLAHE = core::Ptr; ptr_extern! { crate::imgproc::CLAHE, cv_PtrLcv_CLAHEG_new_null_const, cv_PtrLcv_CLAHEG_delete, cv_PtrLcv_CLAHEG_getInnerPtr_const, cv_PtrLcv_CLAHEG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfCLAHE(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfCLAHE(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::imgproc::CLAHETraitConst for core::Ptr { #[inline] fn as_raw_CLAHE(&self) -> *const c_void { self.inner_as_raw() } } impl crate::imgproc::CLAHETrait for core::Ptr { #[inline] fn as_raw_mut_CLAHE(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_CLAHEG_to_PtrOfAlgorithm } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfCLAHE") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfGeneralizedHough = core::Ptr; ptr_extern! { crate::imgproc::GeneralizedHough, cv_PtrLcv_GeneralizedHoughG_new_null_const, cv_PtrLcv_GeneralizedHoughG_delete, cv_PtrLcv_GeneralizedHoughG_getInnerPtr_const, cv_PtrLcv_GeneralizedHoughG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfGeneralizedHough(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfGeneralizedHough(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::imgproc::GeneralizedHoughTraitConst for core::Ptr { #[inline] fn as_raw_GeneralizedHough(&self) -> *const c_void { self.inner_as_raw() } } impl crate::imgproc::GeneralizedHoughTrait for core::Ptr { #[inline] fn as_raw_mut_GeneralizedHough(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_GeneralizedHoughG_to_PtrOfAlgorithm } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfGeneralizedHough") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfGeneralizedHoughBallard = core::Ptr; ptr_extern! { crate::imgproc::GeneralizedHoughBallard, cv_PtrLcv_GeneralizedHoughBallardG_new_null_const, cv_PtrLcv_GeneralizedHoughBallardG_delete, cv_PtrLcv_GeneralizedHoughBallardG_getInnerPtr_const, cv_PtrLcv_GeneralizedHoughBallardG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfGeneralizedHoughBallard(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfGeneralizedHoughBallard(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::imgproc::GeneralizedHoughBallardTraitConst for core::Ptr { #[inline] fn as_raw_GeneralizedHoughBallard(&self) -> *const c_void { self.inner_as_raw() } } impl crate::imgproc::GeneralizedHoughBallardTrait for core::Ptr { #[inline] fn as_raw_mut_GeneralizedHoughBallard(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_GeneralizedHoughBallardG_to_PtrOfAlgorithm } impl crate::imgproc::GeneralizedHoughTraitConst for core::Ptr { #[inline] fn as_raw_GeneralizedHough(&self) -> *const c_void { self.inner_as_raw() } } impl crate::imgproc::GeneralizedHoughTrait for core::Ptr { #[inline] fn as_raw_mut_GeneralizedHough(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_GeneralizedHoughBallardG_to_PtrOfGeneralizedHough } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfGeneralizedHoughBallard") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfGeneralizedHoughGuil = core::Ptr; ptr_extern! { crate::imgproc::GeneralizedHoughGuil, cv_PtrLcv_GeneralizedHoughGuilG_new_null_const, cv_PtrLcv_GeneralizedHoughGuilG_delete, cv_PtrLcv_GeneralizedHoughGuilG_getInnerPtr_const, cv_PtrLcv_GeneralizedHoughGuilG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfGeneralizedHoughGuil(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfGeneralizedHoughGuil(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::imgproc::GeneralizedHoughGuilTraitConst for core::Ptr { #[inline] fn as_raw_GeneralizedHoughGuil(&self) -> *const c_void { self.inner_as_raw() } } impl crate::imgproc::GeneralizedHoughGuilTrait for core::Ptr { #[inline] fn as_raw_mut_GeneralizedHoughGuil(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_GeneralizedHoughGuilG_to_PtrOfAlgorithm } impl crate::imgproc::GeneralizedHoughTraitConst for core::Ptr { #[inline] fn as_raw_GeneralizedHough(&self) -> *const c_void { self.inner_as_raw() } } impl crate::imgproc::GeneralizedHoughTrait for core::Ptr { #[inline] fn as_raw_mut_GeneralizedHough(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_GeneralizedHoughGuilG_to_PtrOfGeneralizedHough } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfGeneralizedHoughGuil") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfLineSegmentDetector = core::Ptr; ptr_extern! { crate::imgproc::LineSegmentDetector, cv_PtrLcv_LineSegmentDetectorG_new_null_const, cv_PtrLcv_LineSegmentDetectorG_delete, cv_PtrLcv_LineSegmentDetectorG_getInnerPtr_const, cv_PtrLcv_LineSegmentDetectorG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfLineSegmentDetector(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfLineSegmentDetector(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::imgproc::LineSegmentDetectorTraitConst for core::Ptr { #[inline] fn as_raw_LineSegmentDetector(&self) -> *const c_void { self.inner_as_raw() } } impl crate::imgproc::LineSegmentDetectorTrait for core::Ptr { #[inline] fn as_raw_mut_LineSegmentDetector(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_LineSegmentDetectorG_to_PtrOfAlgorithm } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfLineSegmentDetector") .finish() } } } #[cfg(ocvrs_has_module_imgproc)] pub use imgproc_types::*; #[cfg(ocvrs_has_module_line_descriptor)] mod line_descriptor_types { use crate::{mod_prelude::*, core, types, sys}; #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfBinaryDescriptor = core::Ptr; ptr_extern! { crate::line_descriptor::BinaryDescriptor, cv_PtrLcv_line_descriptor_BinaryDescriptorG_new_null_const, cv_PtrLcv_line_descriptor_BinaryDescriptorG_delete, cv_PtrLcv_line_descriptor_BinaryDescriptorG_getInnerPtr_const, cv_PtrLcv_line_descriptor_BinaryDescriptorG_getInnerPtrMut } ptr_extern_ctor! { crate::line_descriptor::BinaryDescriptor, cv_PtrLcv_line_descriptor_BinaryDescriptorG_new_const_BinaryDescriptor } impl core::Ptr { #[inline] pub fn as_raw_PtrOfBinaryDescriptor(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfBinaryDescriptor(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::line_descriptor::BinaryDescriptorTraitConst for core::Ptr { #[inline] fn as_raw_BinaryDescriptor(&self) -> *const c_void { self.inner_as_raw() } } impl crate::line_descriptor::BinaryDescriptorTrait for core::Ptr { #[inline] fn as_raw_mut_BinaryDescriptor(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_line_descriptor_BinaryDescriptorG_to_PtrOfAlgorithm } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfBinaryDescriptor") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfBinaryDescriptorMatcher = core::Ptr; ptr_extern! { crate::line_descriptor::BinaryDescriptorMatcher, cv_PtrLcv_line_descriptor_BinaryDescriptorMatcherG_new_null_const, cv_PtrLcv_line_descriptor_BinaryDescriptorMatcherG_delete, cv_PtrLcv_line_descriptor_BinaryDescriptorMatcherG_getInnerPtr_const, cv_PtrLcv_line_descriptor_BinaryDescriptorMatcherG_getInnerPtrMut } ptr_extern_ctor! { crate::line_descriptor::BinaryDescriptorMatcher, cv_PtrLcv_line_descriptor_BinaryDescriptorMatcherG_new_const_BinaryDescriptorMatcher } impl core::Ptr { #[inline] pub fn as_raw_PtrOfBinaryDescriptorMatcher(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfBinaryDescriptorMatcher(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::line_descriptor::BinaryDescriptorMatcherTraitConst for core::Ptr { #[inline] fn as_raw_BinaryDescriptorMatcher(&self) -> *const c_void { self.inner_as_raw() } } impl crate::line_descriptor::BinaryDescriptorMatcherTrait for core::Ptr { #[inline] fn as_raw_mut_BinaryDescriptorMatcher(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_line_descriptor_BinaryDescriptorMatcherG_to_PtrOfAlgorithm } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfBinaryDescriptorMatcher") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfLSDDetector = core::Ptr; ptr_extern! { crate::line_descriptor::LSDDetector, cv_PtrLcv_line_descriptor_LSDDetectorG_new_null_const, cv_PtrLcv_line_descriptor_LSDDetectorG_delete, cv_PtrLcv_line_descriptor_LSDDetectorG_getInnerPtr_const, cv_PtrLcv_line_descriptor_LSDDetectorG_getInnerPtrMut } ptr_extern_ctor! { crate::line_descriptor::LSDDetector, cv_PtrLcv_line_descriptor_LSDDetectorG_new_const_LSDDetector } impl core::Ptr { #[inline] pub fn as_raw_PtrOfLSDDetector(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfLSDDetector(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::line_descriptor::LSDDetectorTraitConst for core::Ptr { #[inline] fn as_raw_LSDDetector(&self) -> *const c_void { self.inner_as_raw() } } impl crate::line_descriptor::LSDDetectorTrait for core::Ptr { #[inline] fn as_raw_mut_LSDDetector(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_line_descriptor_LSDDetectorG_to_PtrOfAlgorithm } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfLSDDetector") .finish() } } #[deprecated = "Use the the non-alias form `core::Vector` instead, removal in Nov 2024"] pub type VectorOfKeyLine = core::Vector; impl core::Vector { pub fn as_raw_VectorOfKeyLine(&self) -> extern_send!(Self) { self.as_raw() } pub fn as_raw_mut_VectorOfKeyLine(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } vector_extern! { crate::line_descriptor::KeyLine, std_vectorLcv_line_descriptor_KeyLineG_new_const, std_vectorLcv_line_descriptor_KeyLineG_delete, std_vectorLcv_line_descriptor_KeyLineG_len_const, std_vectorLcv_line_descriptor_KeyLineG_isEmpty_const, std_vectorLcv_line_descriptor_KeyLineG_capacity_const, std_vectorLcv_line_descriptor_KeyLineG_shrinkToFit, std_vectorLcv_line_descriptor_KeyLineG_reserve_size_t, std_vectorLcv_line_descriptor_KeyLineG_remove_size_t, std_vectorLcv_line_descriptor_KeyLineG_swap_size_t_size_t, std_vectorLcv_line_descriptor_KeyLineG_clear, std_vectorLcv_line_descriptor_KeyLineG_get_const_size_t, std_vectorLcv_line_descriptor_KeyLineG_set_size_t_const_KeyLine, std_vectorLcv_line_descriptor_KeyLineG_push_const_KeyLine, std_vectorLcv_line_descriptor_KeyLineG_insert_size_t_const_KeyLine, } vector_copy_non_bool! { crate::line_descriptor::KeyLine, std_vectorLcv_line_descriptor_KeyLineG_data_const, std_vectorLcv_line_descriptor_KeyLineG_dataMut, cv_fromSlice_const_const_KeyLineX_size_t, std_vectorLcv_line_descriptor_KeyLineG_clone_const, } #[deprecated = "Use the the non-alias form `core::Vector>` instead, removal in Nov 2024"] pub type VectorOfVectorOfKeyLine = core::Vector>; impl core::Vector> { pub fn as_raw_VectorOfVectorOfKeyLine(&self) -> extern_send!(Self) { self.as_raw() } pub fn as_raw_mut_VectorOfVectorOfKeyLine(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } vector_extern! { core::Vector, std_vectorLstd_vectorLcv_line_descriptor_KeyLineGG_new_const, std_vectorLstd_vectorLcv_line_descriptor_KeyLineGG_delete, std_vectorLstd_vectorLcv_line_descriptor_KeyLineGG_len_const, std_vectorLstd_vectorLcv_line_descriptor_KeyLineGG_isEmpty_const, std_vectorLstd_vectorLcv_line_descriptor_KeyLineGG_capacity_const, std_vectorLstd_vectorLcv_line_descriptor_KeyLineGG_shrinkToFit, std_vectorLstd_vectorLcv_line_descriptor_KeyLineGG_reserve_size_t, std_vectorLstd_vectorLcv_line_descriptor_KeyLineGG_remove_size_t, std_vectorLstd_vectorLcv_line_descriptor_KeyLineGG_swap_size_t_size_t, std_vectorLstd_vectorLcv_line_descriptor_KeyLineGG_clear, std_vectorLstd_vectorLcv_line_descriptor_KeyLineGG_get_const_size_t, std_vectorLstd_vectorLcv_line_descriptor_KeyLineGG_set_size_t_const_vectorLKeyLineG, std_vectorLstd_vectorLcv_line_descriptor_KeyLineGG_push_const_vectorLKeyLineG, std_vectorLstd_vectorLcv_line_descriptor_KeyLineGG_insert_size_t_const_vectorLKeyLineG, } vector_non_copy_or_bool! { clone core::Vector } } #[cfg(ocvrs_has_module_line_descriptor)] pub use line_descriptor_types::*; #[cfg(ocvrs_has_module_mcc)] mod mcc_types { use crate::{mod_prelude::*, core, types, sys}; #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfMCC_CChecker = core::Ptr; ptr_extern! { crate::mcc::MCC_CChecker, cv_PtrLcv_mcc_CCheckerG_new_null_const, cv_PtrLcv_mcc_CCheckerG_delete, cv_PtrLcv_mcc_CCheckerG_getInnerPtr_const, cv_PtrLcv_mcc_CCheckerG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfMCC_CChecker(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfMCC_CChecker(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::mcc::MCC_CCheckerTraitConst for core::Ptr { #[inline] fn as_raw_MCC_CChecker(&self) -> *const c_void { self.inner_as_raw() } } impl crate::mcc::MCC_CCheckerTrait for core::Ptr { #[inline] fn as_raw_mut_MCC_CChecker(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfMCC_CChecker") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfMCC_CCheckerDetector = core::Ptr; ptr_extern! { crate::mcc::MCC_CCheckerDetector, cv_PtrLcv_mcc_CCheckerDetectorG_new_null_const, cv_PtrLcv_mcc_CCheckerDetectorG_delete, cv_PtrLcv_mcc_CCheckerDetectorG_getInnerPtr_const, cv_PtrLcv_mcc_CCheckerDetectorG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfMCC_CCheckerDetector(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfMCC_CCheckerDetector(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::mcc::MCC_CCheckerDetectorTraitConst for core::Ptr { #[inline] fn as_raw_MCC_CCheckerDetector(&self) -> *const c_void { self.inner_as_raw() } } impl crate::mcc::MCC_CCheckerDetectorTrait for core::Ptr { #[inline] fn as_raw_mut_MCC_CCheckerDetector(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_mcc_CCheckerDetectorG_to_PtrOfAlgorithm } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfMCC_CCheckerDetector") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfMCC_CCheckerDraw = core::Ptr; ptr_extern! { crate::mcc::MCC_CCheckerDraw, cv_PtrLcv_mcc_CCheckerDrawG_new_null_const, cv_PtrLcv_mcc_CCheckerDrawG_delete, cv_PtrLcv_mcc_CCheckerDrawG_getInnerPtr_const, cv_PtrLcv_mcc_CCheckerDrawG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfMCC_CCheckerDraw(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfMCC_CCheckerDraw(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::mcc::MCC_CCheckerDrawTraitConst for core::Ptr { #[inline] fn as_raw_MCC_CCheckerDraw(&self) -> *const c_void { self.inner_as_raw() } } impl crate::mcc::MCC_CCheckerDrawTrait for core::Ptr { #[inline] fn as_raw_mut_MCC_CCheckerDraw(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfMCC_CCheckerDraw") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfMCC_DetectorParameters = core::Ptr; ptr_extern! { crate::mcc::MCC_DetectorParameters, cv_PtrLcv_mcc_DetectorParametersG_new_null_const, cv_PtrLcv_mcc_DetectorParametersG_delete, cv_PtrLcv_mcc_DetectorParametersG_getInnerPtr_const, cv_PtrLcv_mcc_DetectorParametersG_getInnerPtrMut } ptr_extern_ctor! { crate::mcc::MCC_DetectorParameters, cv_PtrLcv_mcc_DetectorParametersG_new_const_DetectorParameters } impl core::Ptr { #[inline] pub fn as_raw_PtrOfMCC_DetectorParameters(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfMCC_DetectorParameters(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::mcc::MCC_DetectorParametersTraitConst for core::Ptr { #[inline] fn as_raw_MCC_DetectorParameters(&self) -> *const c_void { self.inner_as_raw() } } impl crate::mcc::MCC_DetectorParametersTrait for core::Ptr { #[inline] fn as_raw_mut_MCC_DetectorParameters(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfMCC_DetectorParameters") .field("adaptive_thresh_win_size_min", &crate::mcc::MCC_DetectorParametersTraitConst::adaptive_thresh_win_size_min(self)) .field("adaptive_thresh_win_size_max", &crate::mcc::MCC_DetectorParametersTraitConst::adaptive_thresh_win_size_max(self)) .field("adaptive_thresh_win_size_step", &crate::mcc::MCC_DetectorParametersTraitConst::adaptive_thresh_win_size_step(self)) .field("adaptive_thresh_constant", &crate::mcc::MCC_DetectorParametersTraitConst::adaptive_thresh_constant(self)) .field("min_contours_area_rate", &crate::mcc::MCC_DetectorParametersTraitConst::min_contours_area_rate(self)) .field("min_contours_area", &crate::mcc::MCC_DetectorParametersTraitConst::min_contours_area(self)) .field("confidence_threshold", &crate::mcc::MCC_DetectorParametersTraitConst::confidence_threshold(self)) .field("min_contour_solidity", &crate::mcc::MCC_DetectorParametersTraitConst::min_contour_solidity(self)) .field("find_candidates_approx_poly_dp_eps_multiplier", &crate::mcc::MCC_DetectorParametersTraitConst::find_candidates_approx_poly_dp_eps_multiplier(self)) .field("border_width", &crate::mcc::MCC_DetectorParametersTraitConst::border_width(self)) .field("b0factor", &crate::mcc::MCC_DetectorParametersTraitConst::b0factor(self)) .field("max_error", &crate::mcc::MCC_DetectorParametersTraitConst::max_error(self)) .field("min_contour_points_allowed", &crate::mcc::MCC_DetectorParametersTraitConst::min_contour_points_allowed(self)) .field("min_contour_length_allowed", &crate::mcc::MCC_DetectorParametersTraitConst::min_contour_length_allowed(self)) .field("min_inter_contour_distance", &crate::mcc::MCC_DetectorParametersTraitConst::min_inter_contour_distance(self)) .field("min_inter_checker_distance", &crate::mcc::MCC_DetectorParametersTraitConst::min_inter_checker_distance(self)) .field("min_image_size", &crate::mcc::MCC_DetectorParametersTraitConst::min_image_size(self)) .field("min_group_size", &crate::mcc::MCC_DetectorParametersTraitConst::min_group_size(self)) .finish() } } #[deprecated = "Use the the non-alias form `core::Vector>` instead, removal in Nov 2024"] pub type VectorOfPtrOfMCC_CChecker = core::Vector>; impl core::Vector> { pub fn as_raw_VectorOfPtrOfMCC_CChecker(&self) -> extern_send!(Self) { self.as_raw() } pub fn as_raw_mut_VectorOfPtrOfMCC_CChecker(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } vector_extern! { core::Ptr, std_vectorLcv_PtrLcv_mcc_CCheckerGG_new_const, std_vectorLcv_PtrLcv_mcc_CCheckerGG_delete, std_vectorLcv_PtrLcv_mcc_CCheckerGG_len_const, std_vectorLcv_PtrLcv_mcc_CCheckerGG_isEmpty_const, std_vectorLcv_PtrLcv_mcc_CCheckerGG_capacity_const, std_vectorLcv_PtrLcv_mcc_CCheckerGG_shrinkToFit, std_vectorLcv_PtrLcv_mcc_CCheckerGG_reserve_size_t, std_vectorLcv_PtrLcv_mcc_CCheckerGG_remove_size_t, std_vectorLcv_PtrLcv_mcc_CCheckerGG_swap_size_t_size_t, std_vectorLcv_PtrLcv_mcc_CCheckerGG_clear, std_vectorLcv_PtrLcv_mcc_CCheckerGG_get_const_size_t, std_vectorLcv_PtrLcv_mcc_CCheckerGG_set_size_t_const_PtrLCCheckerG, std_vectorLcv_PtrLcv_mcc_CCheckerGG_push_const_PtrLCCheckerG, std_vectorLcv_PtrLcv_mcc_CCheckerGG_insert_size_t_const_PtrLCCheckerG, } vector_non_copy_or_bool! { core::Ptr } } #[cfg(ocvrs_has_module_mcc)] pub use mcc_types::*; #[cfg(ocvrs_has_module_ml)] mod ml_types { use crate::{mod_prelude::*, core, types, sys}; #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfANN_MLP = core::Ptr; ptr_extern! { crate::ml::ANN_MLP, cv_PtrLcv_ml_ANN_MLPG_new_null_const, cv_PtrLcv_ml_ANN_MLPG_delete, cv_PtrLcv_ml_ANN_MLPG_getInnerPtr_const, cv_PtrLcv_ml_ANN_MLPG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfANN_MLP(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfANN_MLP(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::ml::ANN_MLPTraitConst for core::Ptr { #[inline] fn as_raw_ANN_MLP(&self) -> *const c_void { self.inner_as_raw() } } impl crate::ml::ANN_MLPTrait for core::Ptr { #[inline] fn as_raw_mut_ANN_MLP(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_ml_ANN_MLPG_to_PtrOfAlgorithm } impl crate::ml::StatModelTraitConst for core::Ptr { #[inline] fn as_raw_StatModel(&self) -> *const c_void { self.inner_as_raw() } } impl crate::ml::StatModelTrait for core::Ptr { #[inline] fn as_raw_mut_StatModel(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_ml_ANN_MLPG_to_PtrOfStatModel } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfANN_MLP") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfBoost = core::Ptr; ptr_extern! { crate::ml::Boost, cv_PtrLcv_ml_BoostG_new_null_const, cv_PtrLcv_ml_BoostG_delete, cv_PtrLcv_ml_BoostG_getInnerPtr_const, cv_PtrLcv_ml_BoostG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfBoost(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfBoost(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::ml::BoostTraitConst for core::Ptr { #[inline] fn as_raw_Boost(&self) -> *const c_void { self.inner_as_raw() } } impl crate::ml::BoostTrait for core::Ptr { #[inline] fn as_raw_mut_Boost(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_ml_BoostG_to_PtrOfAlgorithm } impl crate::ml::DTreesTraitConst for core::Ptr { #[inline] fn as_raw_DTrees(&self) -> *const c_void { self.inner_as_raw() } } impl crate::ml::DTreesTrait for core::Ptr { #[inline] fn as_raw_mut_DTrees(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_ml_BoostG_to_PtrOfDTrees } impl crate::ml::StatModelTraitConst for core::Ptr { #[inline] fn as_raw_StatModel(&self) -> *const c_void { self.inner_as_raw() } } impl crate::ml::StatModelTrait for core::Ptr { #[inline] fn as_raw_mut_StatModel(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_ml_BoostG_to_PtrOfStatModel } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfBoost") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfDTrees = core::Ptr; ptr_extern! { crate::ml::DTrees, cv_PtrLcv_ml_DTreesG_new_null_const, cv_PtrLcv_ml_DTreesG_delete, cv_PtrLcv_ml_DTreesG_getInnerPtr_const, cv_PtrLcv_ml_DTreesG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfDTrees(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfDTrees(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::ml::DTreesTraitConst for core::Ptr { #[inline] fn as_raw_DTrees(&self) -> *const c_void { self.inner_as_raw() } } impl crate::ml::DTreesTrait for core::Ptr { #[inline] fn as_raw_mut_DTrees(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_ml_DTreesG_to_PtrOfAlgorithm } impl crate::ml::StatModelTraitConst for core::Ptr { #[inline] fn as_raw_StatModel(&self) -> *const c_void { self.inner_as_raw() } } impl crate::ml::StatModelTrait for core::Ptr { #[inline] fn as_raw_mut_StatModel(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_ml_DTreesG_to_PtrOfStatModel } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfDTrees") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfEM = core::Ptr; ptr_extern! { crate::ml::EM, cv_PtrLcv_ml_EMG_new_null_const, cv_PtrLcv_ml_EMG_delete, cv_PtrLcv_ml_EMG_getInnerPtr_const, cv_PtrLcv_ml_EMG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfEM(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfEM(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::ml::EMTraitConst for core::Ptr { #[inline] fn as_raw_EM(&self) -> *const c_void { self.inner_as_raw() } } impl crate::ml::EMTrait for core::Ptr { #[inline] fn as_raw_mut_EM(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_ml_EMG_to_PtrOfAlgorithm } impl crate::ml::StatModelTraitConst for core::Ptr { #[inline] fn as_raw_StatModel(&self) -> *const c_void { self.inner_as_raw() } } impl crate::ml::StatModelTrait for core::Ptr { #[inline] fn as_raw_mut_StatModel(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_ml_EMG_to_PtrOfStatModel } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfEM") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfKNearest = core::Ptr; ptr_extern! { crate::ml::KNearest, cv_PtrLcv_ml_KNearestG_new_null_const, cv_PtrLcv_ml_KNearestG_delete, cv_PtrLcv_ml_KNearestG_getInnerPtr_const, cv_PtrLcv_ml_KNearestG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfKNearest(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfKNearest(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::ml::KNearestTraitConst for core::Ptr { #[inline] fn as_raw_KNearest(&self) -> *const c_void { self.inner_as_raw() } } impl crate::ml::KNearestTrait for core::Ptr { #[inline] fn as_raw_mut_KNearest(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_ml_KNearestG_to_PtrOfAlgorithm } impl crate::ml::StatModelTraitConst for core::Ptr { #[inline] fn as_raw_StatModel(&self) -> *const c_void { self.inner_as_raw() } } impl crate::ml::StatModelTrait for core::Ptr { #[inline] fn as_raw_mut_StatModel(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_ml_KNearestG_to_PtrOfStatModel } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfKNearest") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfLogisticRegression = core::Ptr; ptr_extern! { crate::ml::LogisticRegression, cv_PtrLcv_ml_LogisticRegressionG_new_null_const, cv_PtrLcv_ml_LogisticRegressionG_delete, cv_PtrLcv_ml_LogisticRegressionG_getInnerPtr_const, cv_PtrLcv_ml_LogisticRegressionG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfLogisticRegression(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfLogisticRegression(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::ml::LogisticRegressionTraitConst for core::Ptr { #[inline] fn as_raw_LogisticRegression(&self) -> *const c_void { self.inner_as_raw() } } impl crate::ml::LogisticRegressionTrait for core::Ptr { #[inline] fn as_raw_mut_LogisticRegression(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_ml_LogisticRegressionG_to_PtrOfAlgorithm } impl crate::ml::StatModelTraitConst for core::Ptr { #[inline] fn as_raw_StatModel(&self) -> *const c_void { self.inner_as_raw() } } impl crate::ml::StatModelTrait for core::Ptr { #[inline] fn as_raw_mut_StatModel(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_ml_LogisticRegressionG_to_PtrOfStatModel } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfLogisticRegression") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfNormalBayesClassifier = core::Ptr; ptr_extern! { crate::ml::NormalBayesClassifier, cv_PtrLcv_ml_NormalBayesClassifierG_new_null_const, cv_PtrLcv_ml_NormalBayesClassifierG_delete, cv_PtrLcv_ml_NormalBayesClassifierG_getInnerPtr_const, cv_PtrLcv_ml_NormalBayesClassifierG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfNormalBayesClassifier(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfNormalBayesClassifier(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::ml::NormalBayesClassifierTraitConst for core::Ptr { #[inline] fn as_raw_NormalBayesClassifier(&self) -> *const c_void { self.inner_as_raw() } } impl crate::ml::NormalBayesClassifierTrait for core::Ptr { #[inline] fn as_raw_mut_NormalBayesClassifier(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_ml_NormalBayesClassifierG_to_PtrOfAlgorithm } impl crate::ml::StatModelTraitConst for core::Ptr { #[inline] fn as_raw_StatModel(&self) -> *const c_void { self.inner_as_raw() } } impl crate::ml::StatModelTrait for core::Ptr { #[inline] fn as_raw_mut_StatModel(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_ml_NormalBayesClassifierG_to_PtrOfStatModel } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfNormalBayesClassifier") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfParamGrid = core::Ptr; ptr_extern! { crate::ml::ParamGrid, cv_PtrLcv_ml_ParamGridG_new_null_const, cv_PtrLcv_ml_ParamGridG_delete, cv_PtrLcv_ml_ParamGridG_getInnerPtr_const, cv_PtrLcv_ml_ParamGridG_getInnerPtrMut } ptr_extern_ctor! { crate::ml::ParamGrid, cv_PtrLcv_ml_ParamGridG_new_const_ParamGrid } impl core::Ptr { #[inline] pub fn as_raw_PtrOfParamGrid(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfParamGrid(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::ml::ParamGridTraitConst for core::Ptr { #[inline] fn as_raw_ParamGrid(&self) -> *const c_void { self.inner_as_raw() } } impl crate::ml::ParamGridTrait for core::Ptr { #[inline] fn as_raw_mut_ParamGrid(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfParamGrid") .field("min_val", &crate::ml::ParamGridTraitConst::min_val(self)) .field("max_val", &crate::ml::ParamGridTraitConst::max_val(self)) .field("log_step", &crate::ml::ParamGridTraitConst::log_step(self)) .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfRTrees = core::Ptr; ptr_extern! { crate::ml::RTrees, cv_PtrLcv_ml_RTreesG_new_null_const, cv_PtrLcv_ml_RTreesG_delete, cv_PtrLcv_ml_RTreesG_getInnerPtr_const, cv_PtrLcv_ml_RTreesG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfRTrees(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfRTrees(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::ml::RTreesTraitConst for core::Ptr { #[inline] fn as_raw_RTrees(&self) -> *const c_void { self.inner_as_raw() } } impl crate::ml::RTreesTrait for core::Ptr { #[inline] fn as_raw_mut_RTrees(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_ml_RTreesG_to_PtrOfAlgorithm } impl crate::ml::DTreesTraitConst for core::Ptr { #[inline] fn as_raw_DTrees(&self) -> *const c_void { self.inner_as_raw() } } impl crate::ml::DTreesTrait for core::Ptr { #[inline] fn as_raw_mut_DTrees(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_ml_RTreesG_to_PtrOfDTrees } impl crate::ml::StatModelTraitConst for core::Ptr { #[inline] fn as_raw_StatModel(&self) -> *const c_void { self.inner_as_raw() } } impl crate::ml::StatModelTrait for core::Ptr { #[inline] fn as_raw_mut_StatModel(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_ml_RTreesG_to_PtrOfStatModel } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfRTrees") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfSVM = core::Ptr; ptr_extern! { crate::ml::SVM, cv_PtrLcv_ml_SVMG_new_null_const, cv_PtrLcv_ml_SVMG_delete, cv_PtrLcv_ml_SVMG_getInnerPtr_const, cv_PtrLcv_ml_SVMG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfSVM(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfSVM(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::ml::SVMTraitConst for core::Ptr { #[inline] fn as_raw_SVM(&self) -> *const c_void { self.inner_as_raw() } } impl crate::ml::SVMTrait for core::Ptr { #[inline] fn as_raw_mut_SVM(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_ml_SVMG_to_PtrOfAlgorithm } impl crate::ml::StatModelTraitConst for core::Ptr { #[inline] fn as_raw_StatModel(&self) -> *const c_void { self.inner_as_raw() } } impl crate::ml::StatModelTrait for core::Ptr { #[inline] fn as_raw_mut_StatModel(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_ml_SVMG_to_PtrOfStatModel } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfSVM") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfSVMSGD = core::Ptr; ptr_extern! { crate::ml::SVMSGD, cv_PtrLcv_ml_SVMSGDG_new_null_const, cv_PtrLcv_ml_SVMSGDG_delete, cv_PtrLcv_ml_SVMSGDG_getInnerPtr_const, cv_PtrLcv_ml_SVMSGDG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfSVMSGD(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfSVMSGD(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::ml::SVMSGDTraitConst for core::Ptr { #[inline] fn as_raw_SVMSGD(&self) -> *const c_void { self.inner_as_raw() } } impl crate::ml::SVMSGDTrait for core::Ptr { #[inline] fn as_raw_mut_SVMSGD(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_ml_SVMSGDG_to_PtrOfAlgorithm } impl crate::ml::StatModelTraitConst for core::Ptr { #[inline] fn as_raw_StatModel(&self) -> *const c_void { self.inner_as_raw() } } impl crate::ml::StatModelTrait for core::Ptr { #[inline] fn as_raw_mut_StatModel(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_ml_SVMSGDG_to_PtrOfStatModel } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfSVMSGD") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfSVM_Kernel = core::Ptr; ptr_extern! { crate::ml::SVM_Kernel, cv_PtrLcv_ml_SVM_KernelG_new_null_const, cv_PtrLcv_ml_SVM_KernelG_delete, cv_PtrLcv_ml_SVM_KernelG_getInnerPtr_const, cv_PtrLcv_ml_SVM_KernelG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfSVM_Kernel(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfSVM_Kernel(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::ml::SVM_KernelTraitConst for core::Ptr { #[inline] fn as_raw_SVM_Kernel(&self) -> *const c_void { self.inner_as_raw() } } impl crate::ml::SVM_KernelTrait for core::Ptr { #[inline] fn as_raw_mut_SVM_Kernel(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_ml_SVM_KernelG_to_PtrOfAlgorithm } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfSVM_Kernel") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfStatModel = core::Ptr; ptr_extern! { crate::ml::StatModel, cv_PtrLcv_ml_StatModelG_new_null_const, cv_PtrLcv_ml_StatModelG_delete, cv_PtrLcv_ml_StatModelG_getInnerPtr_const, cv_PtrLcv_ml_StatModelG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfStatModel(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfStatModel(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::ml::StatModelTraitConst for core::Ptr { #[inline] fn as_raw_StatModel(&self) -> *const c_void { self.inner_as_raw() } } impl crate::ml::StatModelTrait for core::Ptr { #[inline] fn as_raw_mut_StatModel(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_ml_StatModelG_to_PtrOfAlgorithm } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfStatModel") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfTrainData = core::Ptr; ptr_extern! { crate::ml::TrainData, cv_PtrLcv_ml_TrainDataG_new_null_const, cv_PtrLcv_ml_TrainDataG_delete, cv_PtrLcv_ml_TrainDataG_getInnerPtr_const, cv_PtrLcv_ml_TrainDataG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfTrainData(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfTrainData(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::ml::TrainDataTraitConst for core::Ptr { #[inline] fn as_raw_TrainData(&self) -> *const c_void { self.inner_as_raw() } } impl crate::ml::TrainDataTrait for core::Ptr { #[inline] fn as_raw_mut_TrainData(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfTrainData") .finish() } } #[deprecated = "Use the the non-alias form `core::Vector` instead, removal in Nov 2024"] pub type VectorOfDTrees_Node = core::Vector; impl core::Vector { pub fn as_raw_VectorOfDTrees_Node(&self) -> extern_send!(Self) { self.as_raw() } pub fn as_raw_mut_VectorOfDTrees_Node(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } vector_extern! { crate::ml::DTrees_Node, std_vectorLcv_ml_DTrees_NodeG_new_const, std_vectorLcv_ml_DTrees_NodeG_delete, std_vectorLcv_ml_DTrees_NodeG_len_const, std_vectorLcv_ml_DTrees_NodeG_isEmpty_const, std_vectorLcv_ml_DTrees_NodeG_capacity_const, std_vectorLcv_ml_DTrees_NodeG_shrinkToFit, std_vectorLcv_ml_DTrees_NodeG_reserve_size_t, std_vectorLcv_ml_DTrees_NodeG_remove_size_t, std_vectorLcv_ml_DTrees_NodeG_swap_size_t_size_t, std_vectorLcv_ml_DTrees_NodeG_clear, std_vectorLcv_ml_DTrees_NodeG_get_const_size_t, std_vectorLcv_ml_DTrees_NodeG_set_size_t_const_Node, std_vectorLcv_ml_DTrees_NodeG_push_const_Node, std_vectorLcv_ml_DTrees_NodeG_insert_size_t_const_Node, } vector_non_copy_or_bool! { crate::ml::DTrees_Node } vector_boxed_ref! { crate::ml::DTrees_Node } vector_extern! { BoxedRef<'t, crate::ml::DTrees_Node>, std_vectorLcv_ml_DTrees_NodeG_new_const, std_vectorLcv_ml_DTrees_NodeG_delete, std_vectorLcv_ml_DTrees_NodeG_len_const, std_vectorLcv_ml_DTrees_NodeG_isEmpty_const, std_vectorLcv_ml_DTrees_NodeG_capacity_const, std_vectorLcv_ml_DTrees_NodeG_shrinkToFit, std_vectorLcv_ml_DTrees_NodeG_reserve_size_t, std_vectorLcv_ml_DTrees_NodeG_remove_size_t, std_vectorLcv_ml_DTrees_NodeG_swap_size_t_size_t, std_vectorLcv_ml_DTrees_NodeG_clear, std_vectorLcv_ml_DTrees_NodeG_get_const_size_t, std_vectorLcv_ml_DTrees_NodeG_set_size_t_const_Node, std_vectorLcv_ml_DTrees_NodeG_push_const_Node, std_vectorLcv_ml_DTrees_NodeG_insert_size_t_const_Node, } #[deprecated = "Use the the non-alias form `core::Vector` instead, removal in Nov 2024"] pub type VectorOfDTrees_Split = core::Vector; impl core::Vector { pub fn as_raw_VectorOfDTrees_Split(&self) -> extern_send!(Self) { self.as_raw() } pub fn as_raw_mut_VectorOfDTrees_Split(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } vector_extern! { crate::ml::DTrees_Split, std_vectorLcv_ml_DTrees_SplitG_new_const, std_vectorLcv_ml_DTrees_SplitG_delete, std_vectorLcv_ml_DTrees_SplitG_len_const, std_vectorLcv_ml_DTrees_SplitG_isEmpty_const, std_vectorLcv_ml_DTrees_SplitG_capacity_const, std_vectorLcv_ml_DTrees_SplitG_shrinkToFit, std_vectorLcv_ml_DTrees_SplitG_reserve_size_t, std_vectorLcv_ml_DTrees_SplitG_remove_size_t, std_vectorLcv_ml_DTrees_SplitG_swap_size_t_size_t, std_vectorLcv_ml_DTrees_SplitG_clear, std_vectorLcv_ml_DTrees_SplitG_get_const_size_t, std_vectorLcv_ml_DTrees_SplitG_set_size_t_const_Split, std_vectorLcv_ml_DTrees_SplitG_push_const_Split, std_vectorLcv_ml_DTrees_SplitG_insert_size_t_const_Split, } vector_non_copy_or_bool! { crate::ml::DTrees_Split } vector_boxed_ref! { crate::ml::DTrees_Split } vector_extern! { BoxedRef<'t, crate::ml::DTrees_Split>, std_vectorLcv_ml_DTrees_SplitG_new_const, std_vectorLcv_ml_DTrees_SplitG_delete, std_vectorLcv_ml_DTrees_SplitG_len_const, std_vectorLcv_ml_DTrees_SplitG_isEmpty_const, std_vectorLcv_ml_DTrees_SplitG_capacity_const, std_vectorLcv_ml_DTrees_SplitG_shrinkToFit, std_vectorLcv_ml_DTrees_SplitG_reserve_size_t, std_vectorLcv_ml_DTrees_SplitG_remove_size_t, std_vectorLcv_ml_DTrees_SplitG_swap_size_t_size_t, std_vectorLcv_ml_DTrees_SplitG_clear, std_vectorLcv_ml_DTrees_SplitG_get_const_size_t, std_vectorLcv_ml_DTrees_SplitG_set_size_t_const_Split, std_vectorLcv_ml_DTrees_SplitG_push_const_Split, std_vectorLcv_ml_DTrees_SplitG_insert_size_t_const_Split, } } #[cfg(ocvrs_has_module_ml)] pub use ml_types::*; #[cfg(ocvrs_has_module_objdetect)] mod objdetect_types { use crate::{mod_prelude::*, core, types, sys}; #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfArucoDetector = core::Ptr; ptr_extern! { crate::objdetect::ArucoDetector, cv_PtrLcv_aruco_ArucoDetectorG_new_null_const, cv_PtrLcv_aruco_ArucoDetectorG_delete, cv_PtrLcv_aruco_ArucoDetectorG_getInnerPtr_const, cv_PtrLcv_aruco_ArucoDetectorG_getInnerPtrMut } ptr_extern_ctor! { crate::objdetect::ArucoDetector, cv_PtrLcv_aruco_ArucoDetectorG_new_const_ArucoDetector } impl core::Ptr { #[inline] pub fn as_raw_PtrOfArucoDetector(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfArucoDetector(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::objdetect::ArucoDetectorTraitConst for core::Ptr { #[inline] fn as_raw_ArucoDetector(&self) -> *const c_void { self.inner_as_raw() } } impl crate::objdetect::ArucoDetectorTrait for core::Ptr { #[inline] fn as_raw_mut_ArucoDetector(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_aruco_ArucoDetectorG_to_PtrOfAlgorithm } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfArucoDetector") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfBaseCascadeClassifier = core::Ptr; ptr_extern! { crate::objdetect::BaseCascadeClassifier, cv_PtrLcv_BaseCascadeClassifierG_new_null_const, cv_PtrLcv_BaseCascadeClassifierG_delete, cv_PtrLcv_BaseCascadeClassifierG_getInnerPtr_const, cv_PtrLcv_BaseCascadeClassifierG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfBaseCascadeClassifier(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfBaseCascadeClassifier(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::objdetect::BaseCascadeClassifierTraitConst for core::Ptr { #[inline] fn as_raw_BaseCascadeClassifier(&self) -> *const c_void { self.inner_as_raw() } } impl crate::objdetect::BaseCascadeClassifierTrait for core::Ptr { #[inline] fn as_raw_mut_BaseCascadeClassifier(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_BaseCascadeClassifierG_to_PtrOfAlgorithm } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfBaseCascadeClassifier") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfBaseCascadeClassifier_MaskGenerator = core::Ptr; ptr_extern! { crate::objdetect::BaseCascadeClassifier_MaskGenerator, cv_PtrLcv_BaseCascadeClassifier_MaskGeneratorG_new_null_const, cv_PtrLcv_BaseCascadeClassifier_MaskGeneratorG_delete, cv_PtrLcv_BaseCascadeClassifier_MaskGeneratorG_getInnerPtr_const, cv_PtrLcv_BaseCascadeClassifier_MaskGeneratorG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfBaseCascadeClassifier_MaskGenerator(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfBaseCascadeClassifier_MaskGenerator(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::objdetect::BaseCascadeClassifier_MaskGeneratorTraitConst for core::Ptr { #[inline] fn as_raw_BaseCascadeClassifier_MaskGenerator(&self) -> *const c_void { self.inner_as_raw() } } impl crate::objdetect::BaseCascadeClassifier_MaskGeneratorTrait for core::Ptr { #[inline] fn as_raw_mut_BaseCascadeClassifier_MaskGenerator(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfBaseCascadeClassifier_MaskGenerator") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfBoard = core::Ptr; ptr_extern! { crate::objdetect::Board, cv_PtrLcv_aruco_BoardG_new_null_const, cv_PtrLcv_aruco_BoardG_delete, cv_PtrLcv_aruco_BoardG_getInnerPtr_const, cv_PtrLcv_aruco_BoardG_getInnerPtrMut } ptr_extern_ctor! { crate::objdetect::Board, cv_PtrLcv_aruco_BoardG_new_const_Board } impl core::Ptr { #[inline] pub fn as_raw_PtrOfBoard(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfBoard(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::objdetect::BoardTraitConst for core::Ptr { #[inline] fn as_raw_Board(&self) -> *const c_void { self.inner_as_raw() } } impl crate::objdetect::BoardTrait for core::Ptr { #[inline] fn as_raw_mut_Board(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfBoard") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfCharucoBoard = core::Ptr; ptr_extern! { crate::objdetect::CharucoBoard, cv_PtrLcv_aruco_CharucoBoardG_new_null_const, cv_PtrLcv_aruco_CharucoBoardG_delete, cv_PtrLcv_aruco_CharucoBoardG_getInnerPtr_const, cv_PtrLcv_aruco_CharucoBoardG_getInnerPtrMut } ptr_extern_ctor! { crate::objdetect::CharucoBoard, cv_PtrLcv_aruco_CharucoBoardG_new_const_CharucoBoard } impl core::Ptr { #[inline] pub fn as_raw_PtrOfCharucoBoard(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfCharucoBoard(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::objdetect::CharucoBoardTraitConst for core::Ptr { #[inline] fn as_raw_CharucoBoard(&self) -> *const c_void { self.inner_as_raw() } } impl crate::objdetect::CharucoBoardTrait for core::Ptr { #[inline] fn as_raw_mut_CharucoBoard(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl crate::objdetect::BoardTraitConst for core::Ptr { #[inline] fn as_raw_Board(&self) -> *const c_void { self.inner_as_raw() } } impl crate::objdetect::BoardTrait for core::Ptr { #[inline] fn as_raw_mut_Board(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_aruco_CharucoBoardG_to_PtrOfBoard } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfCharucoBoard") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfCharucoDetector = core::Ptr; ptr_extern! { crate::objdetect::CharucoDetector, cv_PtrLcv_aruco_CharucoDetectorG_new_null_const, cv_PtrLcv_aruco_CharucoDetectorG_delete, cv_PtrLcv_aruco_CharucoDetectorG_getInnerPtr_const, cv_PtrLcv_aruco_CharucoDetectorG_getInnerPtrMut } ptr_extern_ctor! { crate::objdetect::CharucoDetector, cv_PtrLcv_aruco_CharucoDetectorG_new_const_CharucoDetector } impl core::Ptr { #[inline] pub fn as_raw_PtrOfCharucoDetector(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfCharucoDetector(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::objdetect::CharucoDetectorTraitConst for core::Ptr { #[inline] fn as_raw_CharucoDetector(&self) -> *const c_void { self.inner_as_raw() } } impl crate::objdetect::CharucoDetectorTrait for core::Ptr { #[inline] fn as_raw_mut_CharucoDetector(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_aruco_CharucoDetectorG_to_PtrOfAlgorithm } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfCharucoDetector") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfDetectionBasedTracker_IDetector = core::Ptr; ptr_extern! { crate::objdetect::DetectionBasedTracker_IDetector, cv_PtrLcv_DetectionBasedTracker_IDetectorG_new_null_const, cv_PtrLcv_DetectionBasedTracker_IDetectorG_delete, cv_PtrLcv_DetectionBasedTracker_IDetectorG_getInnerPtr_const, cv_PtrLcv_DetectionBasedTracker_IDetectorG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfDetectionBasedTracker_IDetector(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfDetectionBasedTracker_IDetector(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::objdetect::DetectionBasedTracker_IDetectorTraitConst for core::Ptr { #[inline] fn as_raw_DetectionBasedTracker_IDetector(&self) -> *const c_void { self.inner_as_raw() } } impl crate::objdetect::DetectionBasedTracker_IDetectorTrait for core::Ptr { #[inline] fn as_raw_mut_DetectionBasedTracker_IDetector(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfDetectionBasedTracker_IDetector") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfDetectorParameters = core::Ptr; ptr_extern! { crate::objdetect::DetectorParameters, cv_PtrLcv_aruco_DetectorParametersG_new_null_const, cv_PtrLcv_aruco_DetectorParametersG_delete, cv_PtrLcv_aruco_DetectorParametersG_getInnerPtr_const, cv_PtrLcv_aruco_DetectorParametersG_getInnerPtrMut } ptr_extern_ctor! { crate::objdetect::DetectorParameters, cv_PtrLcv_aruco_DetectorParametersG_new_const_DetectorParameters } impl core::Ptr { #[inline] pub fn as_raw_PtrOfDetectorParameters(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfDetectorParameters(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::objdetect::DetectorParametersTraitConst for core::Ptr { #[inline] fn as_raw_DetectorParameters(&self) -> *const c_void { self.inner_as_raw() } } impl crate::objdetect::DetectorParametersTrait for core::Ptr { #[inline] fn as_raw_mut_DetectorParameters(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfDetectorParameters") .field("adaptive_thresh_win_size_min", &crate::objdetect::DetectorParametersTraitConst::adaptive_thresh_win_size_min(self)) .field("adaptive_thresh_win_size_max", &crate::objdetect::DetectorParametersTraitConst::adaptive_thresh_win_size_max(self)) .field("adaptive_thresh_win_size_step", &crate::objdetect::DetectorParametersTraitConst::adaptive_thresh_win_size_step(self)) .field("adaptive_thresh_constant", &crate::objdetect::DetectorParametersTraitConst::adaptive_thresh_constant(self)) .field("min_marker_perimeter_rate", &crate::objdetect::DetectorParametersTraitConst::min_marker_perimeter_rate(self)) .field("max_marker_perimeter_rate", &crate::objdetect::DetectorParametersTraitConst::max_marker_perimeter_rate(self)) .field("polygonal_approx_accuracy_rate", &crate::objdetect::DetectorParametersTraitConst::polygonal_approx_accuracy_rate(self)) .field("min_corner_distance_rate", &crate::objdetect::DetectorParametersTraitConst::min_corner_distance_rate(self)) .field("min_distance_to_border", &crate::objdetect::DetectorParametersTraitConst::min_distance_to_border(self)) .field("min_marker_distance_rate", &crate::objdetect::DetectorParametersTraitConst::min_marker_distance_rate(self)) .field("min_group_distance", &crate::objdetect::DetectorParametersTraitConst::min_group_distance(self)) .field("corner_refinement_method", &crate::objdetect::DetectorParametersTraitConst::corner_refinement_method(self)) .field("corner_refinement_win_size", &crate::objdetect::DetectorParametersTraitConst::corner_refinement_win_size(self)) .field("relative_corner_refinment_win_size", &crate::objdetect::DetectorParametersTraitConst::relative_corner_refinment_win_size(self)) .field("corner_refinement_max_iterations", &crate::objdetect::DetectorParametersTraitConst::corner_refinement_max_iterations(self)) .field("corner_refinement_min_accuracy", &crate::objdetect::DetectorParametersTraitConst::corner_refinement_min_accuracy(self)) .field("marker_border_bits", &crate::objdetect::DetectorParametersTraitConst::marker_border_bits(self)) .field("perspective_remove_pixel_per_cell", &crate::objdetect::DetectorParametersTraitConst::perspective_remove_pixel_per_cell(self)) .field("perspective_remove_ignored_margin_per_cell", &crate::objdetect::DetectorParametersTraitConst::perspective_remove_ignored_margin_per_cell(self)) .field("max_erroneous_bits_in_border_rate", &crate::objdetect::DetectorParametersTraitConst::max_erroneous_bits_in_border_rate(self)) .field("min_otsu_std_dev", &crate::objdetect::DetectorParametersTraitConst::min_otsu_std_dev(self)) .field("error_correction_rate", &crate::objdetect::DetectorParametersTraitConst::error_correction_rate(self)) .field("april_tag_quad_decimate", &crate::objdetect::DetectorParametersTraitConst::april_tag_quad_decimate(self)) .field("april_tag_quad_sigma", &crate::objdetect::DetectorParametersTraitConst::april_tag_quad_sigma(self)) .field("april_tag_min_cluster_pixels", &crate::objdetect::DetectorParametersTraitConst::april_tag_min_cluster_pixels(self)) .field("april_tag_max_nmaxima", &crate::objdetect::DetectorParametersTraitConst::april_tag_max_nmaxima(self)) .field("april_tag_critical_rad", &crate::objdetect::DetectorParametersTraitConst::april_tag_critical_rad(self)) .field("april_tag_max_line_fit_mse", &crate::objdetect::DetectorParametersTraitConst::april_tag_max_line_fit_mse(self)) .field("april_tag_min_white_black_diff", &crate::objdetect::DetectorParametersTraitConst::april_tag_min_white_black_diff(self)) .field("april_tag_deglitch", &crate::objdetect::DetectorParametersTraitConst::april_tag_deglitch(self)) .field("detect_inverted_marker", &crate::objdetect::DetectorParametersTraitConst::detect_inverted_marker(self)) .field("use_aruco3_detection", &crate::objdetect::DetectorParametersTraitConst::use_aruco3_detection(self)) .field("min_side_length_canonical_img", &crate::objdetect::DetectorParametersTraitConst::min_side_length_canonical_img(self)) .field("min_marker_length_ratio_original_img", &crate::objdetect::DetectorParametersTraitConst::min_marker_length_ratio_original_img(self)) .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfDictionary = core::Ptr; ptr_extern! { crate::objdetect::Dictionary, cv_PtrLcv_aruco_DictionaryG_new_null_const, cv_PtrLcv_aruco_DictionaryG_delete, cv_PtrLcv_aruco_DictionaryG_getInnerPtr_const, cv_PtrLcv_aruco_DictionaryG_getInnerPtrMut } ptr_extern_ctor! { crate::objdetect::Dictionary, cv_PtrLcv_aruco_DictionaryG_new_const_Dictionary } impl core::Ptr { #[inline] pub fn as_raw_PtrOfDictionary(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfDictionary(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::objdetect::DictionaryTraitConst for core::Ptr { #[inline] fn as_raw_Dictionary(&self) -> *const c_void { self.inner_as_raw() } } impl crate::objdetect::DictionaryTrait for core::Ptr { #[inline] fn as_raw_mut_Dictionary(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfDictionary") .field("bytes_list", &crate::objdetect::DictionaryTraitConst::bytes_list(self)) .field("marker_size", &crate::objdetect::DictionaryTraitConst::marker_size(self)) .field("max_correction_bits", &crate::objdetect::DictionaryTraitConst::max_correction_bits(self)) .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfFaceDetectorYN = core::Ptr; ptr_extern! { crate::objdetect::FaceDetectorYN, cv_PtrLcv_FaceDetectorYNG_new_null_const, cv_PtrLcv_FaceDetectorYNG_delete, cv_PtrLcv_FaceDetectorYNG_getInnerPtr_const, cv_PtrLcv_FaceDetectorYNG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfFaceDetectorYN(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfFaceDetectorYN(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::objdetect::FaceDetectorYNTraitConst for core::Ptr { #[inline] fn as_raw_FaceDetectorYN(&self) -> *const c_void { self.inner_as_raw() } } impl crate::objdetect::FaceDetectorYNTrait for core::Ptr { #[inline] fn as_raw_mut_FaceDetectorYN(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfFaceDetectorYN") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfFaceRecognizerSF = core::Ptr; ptr_extern! { crate::objdetect::FaceRecognizerSF, cv_PtrLcv_FaceRecognizerSFG_new_null_const, cv_PtrLcv_FaceRecognizerSFG_delete, cv_PtrLcv_FaceRecognizerSFG_getInnerPtr_const, cv_PtrLcv_FaceRecognizerSFG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfFaceRecognizerSF(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfFaceRecognizerSF(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::objdetect::FaceRecognizerSFTraitConst for core::Ptr { #[inline] fn as_raw_FaceRecognizerSF(&self) -> *const c_void { self.inner_as_raw() } } impl crate::objdetect::FaceRecognizerSFTrait for core::Ptr { #[inline] fn as_raw_mut_FaceRecognizerSF(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfFaceRecognizerSF") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfGridBoard = core::Ptr; ptr_extern! { crate::objdetect::GridBoard, cv_PtrLcv_aruco_GridBoardG_new_null_const, cv_PtrLcv_aruco_GridBoardG_delete, cv_PtrLcv_aruco_GridBoardG_getInnerPtr_const, cv_PtrLcv_aruco_GridBoardG_getInnerPtrMut } ptr_extern_ctor! { crate::objdetect::GridBoard, cv_PtrLcv_aruco_GridBoardG_new_const_GridBoard } impl core::Ptr { #[inline] pub fn as_raw_PtrOfGridBoard(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfGridBoard(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::objdetect::GridBoardTraitConst for core::Ptr { #[inline] fn as_raw_GridBoard(&self) -> *const c_void { self.inner_as_raw() } } impl crate::objdetect::GridBoardTrait for core::Ptr { #[inline] fn as_raw_mut_GridBoard(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl crate::objdetect::BoardTraitConst for core::Ptr { #[inline] fn as_raw_Board(&self) -> *const c_void { self.inner_as_raw() } } impl crate::objdetect::BoardTrait for core::Ptr { #[inline] fn as_raw_mut_Board(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_aruco_GridBoardG_to_PtrOfBoard } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfGridBoard") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfQRCodeEncoder = core::Ptr; ptr_extern! { crate::objdetect::QRCodeEncoder, cv_PtrLcv_QRCodeEncoderG_new_null_const, cv_PtrLcv_QRCodeEncoderG_delete, cv_PtrLcv_QRCodeEncoderG_getInnerPtr_const, cv_PtrLcv_QRCodeEncoderG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfQRCodeEncoder(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfQRCodeEncoder(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::objdetect::QRCodeEncoderTraitConst for core::Ptr { #[inline] fn as_raw_QRCodeEncoder(&self) -> *const c_void { self.inner_as_raw() } } impl crate::objdetect::QRCodeEncoderTrait for core::Ptr { #[inline] fn as_raw_mut_QRCodeEncoder(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfQRCodeEncoder") .finish() } } #[deprecated = "Use the the non-alias form `core::Vector` instead, removal in Nov 2024"] pub type VectorOfDetectionBasedTracker_ExtObject = core::Vector; impl core::Vector { pub fn as_raw_VectorOfDetectionBasedTracker_ExtObject(&self) -> extern_send!(Self) { self.as_raw() } pub fn as_raw_mut_VectorOfDetectionBasedTracker_ExtObject(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } vector_extern! { crate::objdetect::DetectionBasedTracker_ExtObject, std_vectorLcv_DetectionBasedTracker_ExtObjectG_new_const, std_vectorLcv_DetectionBasedTracker_ExtObjectG_delete, std_vectorLcv_DetectionBasedTracker_ExtObjectG_len_const, std_vectorLcv_DetectionBasedTracker_ExtObjectG_isEmpty_const, std_vectorLcv_DetectionBasedTracker_ExtObjectG_capacity_const, std_vectorLcv_DetectionBasedTracker_ExtObjectG_shrinkToFit, std_vectorLcv_DetectionBasedTracker_ExtObjectG_reserve_size_t, std_vectorLcv_DetectionBasedTracker_ExtObjectG_remove_size_t, std_vectorLcv_DetectionBasedTracker_ExtObjectG_swap_size_t_size_t, std_vectorLcv_DetectionBasedTracker_ExtObjectG_clear, std_vectorLcv_DetectionBasedTracker_ExtObjectG_get_const_size_t, std_vectorLcv_DetectionBasedTracker_ExtObjectG_set_size_t_const_ExtObject, std_vectorLcv_DetectionBasedTracker_ExtObjectG_push_const_ExtObject, std_vectorLcv_DetectionBasedTracker_ExtObjectG_insert_size_t_const_ExtObject, } vector_non_copy_or_bool! { clone crate::objdetect::DetectionBasedTracker_ExtObject } vector_boxed_ref! { crate::objdetect::DetectionBasedTracker_ExtObject } vector_extern! { BoxedRef<'t, crate::objdetect::DetectionBasedTracker_ExtObject>, std_vectorLcv_DetectionBasedTracker_ExtObjectG_new_const, std_vectorLcv_DetectionBasedTracker_ExtObjectG_delete, std_vectorLcv_DetectionBasedTracker_ExtObjectG_len_const, std_vectorLcv_DetectionBasedTracker_ExtObjectG_isEmpty_const, std_vectorLcv_DetectionBasedTracker_ExtObjectG_capacity_const, std_vectorLcv_DetectionBasedTracker_ExtObjectG_shrinkToFit, std_vectorLcv_DetectionBasedTracker_ExtObjectG_reserve_size_t, std_vectorLcv_DetectionBasedTracker_ExtObjectG_remove_size_t, std_vectorLcv_DetectionBasedTracker_ExtObjectG_swap_size_t_size_t, std_vectorLcv_DetectionBasedTracker_ExtObjectG_clear, std_vectorLcv_DetectionBasedTracker_ExtObjectG_get_const_size_t, std_vectorLcv_DetectionBasedTracker_ExtObjectG_set_size_t_const_ExtObject, std_vectorLcv_DetectionBasedTracker_ExtObjectG_push_const_ExtObject, std_vectorLcv_DetectionBasedTracker_ExtObjectG_insert_size_t_const_ExtObject, } #[deprecated = "Use the the non-alias form `core::Vector` instead, removal in Nov 2024"] pub type VectorOfDetectionBasedTracker_Object = core::Vector; impl core::Vector { pub fn as_raw_VectorOfDetectionBasedTracker_Object(&self) -> extern_send!(Self) { self.as_raw() } pub fn as_raw_mut_VectorOfDetectionBasedTracker_Object(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } vector_extern! { crate::objdetect::DetectionBasedTracker_Object, std_vectorLcv_DetectionBasedTracker_ObjectG_new_const, std_vectorLcv_DetectionBasedTracker_ObjectG_delete, std_vectorLcv_DetectionBasedTracker_ObjectG_len_const, std_vectorLcv_DetectionBasedTracker_ObjectG_isEmpty_const, std_vectorLcv_DetectionBasedTracker_ObjectG_capacity_const, std_vectorLcv_DetectionBasedTracker_ObjectG_shrinkToFit, std_vectorLcv_DetectionBasedTracker_ObjectG_reserve_size_t, std_vectorLcv_DetectionBasedTracker_ObjectG_remove_size_t, std_vectorLcv_DetectionBasedTracker_ObjectG_swap_size_t_size_t, std_vectorLcv_DetectionBasedTracker_ObjectG_clear, std_vectorLcv_DetectionBasedTracker_ObjectG_get_const_size_t, std_vectorLcv_DetectionBasedTracker_ObjectG_set_size_t_const_Object, std_vectorLcv_DetectionBasedTracker_ObjectG_push_const_Object, std_vectorLcv_DetectionBasedTracker_ObjectG_insert_size_t_const_Object, } vector_non_copy_or_bool! { crate::objdetect::DetectionBasedTracker_Object } #[deprecated = "Use the the non-alias form `core::Vector` instead, removal in Nov 2024"] pub type VectorOfDetectionROI = core::Vector; impl core::Vector { pub fn as_raw_VectorOfDetectionROI(&self) -> extern_send!(Self) { self.as_raw() } pub fn as_raw_mut_VectorOfDetectionROI(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } vector_extern! { crate::objdetect::DetectionROI, std_vectorLcv_DetectionROIG_new_const, std_vectorLcv_DetectionROIG_delete, std_vectorLcv_DetectionROIG_len_const, std_vectorLcv_DetectionROIG_isEmpty_const, std_vectorLcv_DetectionROIG_capacity_const, std_vectorLcv_DetectionROIG_shrinkToFit, std_vectorLcv_DetectionROIG_reserve_size_t, std_vectorLcv_DetectionROIG_remove_size_t, std_vectorLcv_DetectionROIG_swap_size_t_size_t, std_vectorLcv_DetectionROIG_clear, std_vectorLcv_DetectionROIG_get_const_size_t, std_vectorLcv_DetectionROIG_set_size_t_const_DetectionROI, std_vectorLcv_DetectionROIG_push_const_DetectionROI, std_vectorLcv_DetectionROIG_insert_size_t_const_DetectionROI, } vector_non_copy_or_bool! { crate::objdetect::DetectionROI } vector_boxed_ref! { crate::objdetect::DetectionROI } vector_extern! { BoxedRef<'t, crate::objdetect::DetectionROI>, std_vectorLcv_DetectionROIG_new_const, std_vectorLcv_DetectionROIG_delete, std_vectorLcv_DetectionROIG_len_const, std_vectorLcv_DetectionROIG_isEmpty_const, std_vectorLcv_DetectionROIG_capacity_const, std_vectorLcv_DetectionROIG_shrinkToFit, std_vectorLcv_DetectionROIG_reserve_size_t, std_vectorLcv_DetectionROIG_remove_size_t, std_vectorLcv_DetectionROIG_swap_size_t_size_t, std_vectorLcv_DetectionROIG_clear, std_vectorLcv_DetectionROIG_get_const_size_t, std_vectorLcv_DetectionROIG_set_size_t_const_DetectionROI, std_vectorLcv_DetectionROIG_push_const_DetectionROI, std_vectorLcv_DetectionROIG_insert_size_t_const_DetectionROI, } } #[cfg(ocvrs_has_module_objdetect)] pub use objdetect_types::*; #[cfg(ocvrs_has_module_optflow)] mod optflow_types { use crate::{mod_prelude::*, core, types, sys}; #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfDenseRLOFOpticalFlow = core::Ptr; ptr_extern! { crate::optflow::DenseRLOFOpticalFlow, cv_PtrLcv_optflow_DenseRLOFOpticalFlowG_new_null_const, cv_PtrLcv_optflow_DenseRLOFOpticalFlowG_delete, cv_PtrLcv_optflow_DenseRLOFOpticalFlowG_getInnerPtr_const, cv_PtrLcv_optflow_DenseRLOFOpticalFlowG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfDenseRLOFOpticalFlow(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfDenseRLOFOpticalFlow(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::optflow::DenseRLOFOpticalFlowTraitConst for core::Ptr { #[inline] fn as_raw_DenseRLOFOpticalFlow(&self) -> *const c_void { self.inner_as_raw() } } impl crate::optflow::DenseRLOFOpticalFlowTrait for core::Ptr { #[inline] fn as_raw_mut_DenseRLOFOpticalFlow(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_optflow_DenseRLOFOpticalFlowG_to_PtrOfAlgorithm } impl crate::video::DenseOpticalFlowTraitConst for core::Ptr { #[inline] fn as_raw_DenseOpticalFlow(&self) -> *const c_void { self.inner_as_raw() } } impl crate::video::DenseOpticalFlowTrait for core::Ptr { #[inline] fn as_raw_mut_DenseOpticalFlow(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_optflow_DenseRLOFOpticalFlowG_to_PtrOfDenseOpticalFlow } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfDenseRLOFOpticalFlow") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfDualTVL1OpticalFlow = core::Ptr; ptr_extern! { crate::optflow::DualTVL1OpticalFlow, cv_PtrLcv_optflow_DualTVL1OpticalFlowG_new_null_const, cv_PtrLcv_optflow_DualTVL1OpticalFlowG_delete, cv_PtrLcv_optflow_DualTVL1OpticalFlowG_getInnerPtr_const, cv_PtrLcv_optflow_DualTVL1OpticalFlowG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfDualTVL1OpticalFlow(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfDualTVL1OpticalFlow(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::optflow::DualTVL1OpticalFlowTraitConst for core::Ptr { #[inline] fn as_raw_DualTVL1OpticalFlow(&self) -> *const c_void { self.inner_as_raw() } } impl crate::optflow::DualTVL1OpticalFlowTrait for core::Ptr { #[inline] fn as_raw_mut_DualTVL1OpticalFlow(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_optflow_DualTVL1OpticalFlowG_to_PtrOfAlgorithm } impl crate::video::DenseOpticalFlowTraitConst for core::Ptr { #[inline] fn as_raw_DenseOpticalFlow(&self) -> *const c_void { self.inner_as_raw() } } impl crate::video::DenseOpticalFlowTrait for core::Ptr { #[inline] fn as_raw_mut_DenseOpticalFlow(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_optflow_DualTVL1OpticalFlowG_to_PtrOfDenseOpticalFlow } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfDualTVL1OpticalFlow") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfGPCTrainingSamples = core::Ptr; ptr_extern! { crate::optflow::GPCTrainingSamples, cv_PtrLcv_optflow_GPCTrainingSamplesG_new_null_const, cv_PtrLcv_optflow_GPCTrainingSamplesG_delete, cv_PtrLcv_optflow_GPCTrainingSamplesG_getInnerPtr_const, cv_PtrLcv_optflow_GPCTrainingSamplesG_getInnerPtrMut } ptr_extern_ctor! { crate::optflow::GPCTrainingSamples, cv_PtrLcv_optflow_GPCTrainingSamplesG_new_const_GPCTrainingSamples } impl core::Ptr { #[inline] pub fn as_raw_PtrOfGPCTrainingSamples(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfGPCTrainingSamples(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::optflow::GPCTrainingSamplesTraitConst for core::Ptr { #[inline] fn as_raw_GPCTrainingSamples(&self) -> *const c_void { self.inner_as_raw() } } impl crate::optflow::GPCTrainingSamplesTrait for core::Ptr { #[inline] fn as_raw_mut_GPCTrainingSamples(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfGPCTrainingSamples") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfGPCTree = core::Ptr; ptr_extern! { crate::optflow::GPCTree, cv_PtrLcv_optflow_GPCTreeG_new_null_const, cv_PtrLcv_optflow_GPCTreeG_delete, cv_PtrLcv_optflow_GPCTreeG_getInnerPtr_const, cv_PtrLcv_optflow_GPCTreeG_getInnerPtrMut } ptr_extern_ctor! { crate::optflow::GPCTree, cv_PtrLcv_optflow_GPCTreeG_new_const_GPCTree } impl core::Ptr { #[inline] pub fn as_raw_PtrOfGPCTree(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfGPCTree(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::optflow::GPCTreeTraitConst for core::Ptr { #[inline] fn as_raw_GPCTree(&self) -> *const c_void { self.inner_as_raw() } } impl crate::optflow::GPCTreeTrait for core::Ptr { #[inline] fn as_raw_mut_GPCTree(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_optflow_GPCTreeG_to_PtrOfAlgorithm } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfGPCTree") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfOpticalFlowPCAFlow = core::Ptr; ptr_extern! { crate::optflow::OpticalFlowPCAFlow, cv_PtrLcv_optflow_OpticalFlowPCAFlowG_new_null_const, cv_PtrLcv_optflow_OpticalFlowPCAFlowG_delete, cv_PtrLcv_optflow_OpticalFlowPCAFlowG_getInnerPtr_const, cv_PtrLcv_optflow_OpticalFlowPCAFlowG_getInnerPtrMut } ptr_extern_ctor! { crate::optflow::OpticalFlowPCAFlow, cv_PtrLcv_optflow_OpticalFlowPCAFlowG_new_const_OpticalFlowPCAFlow } impl core::Ptr { #[inline] pub fn as_raw_PtrOfOpticalFlowPCAFlow(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfOpticalFlowPCAFlow(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::optflow::OpticalFlowPCAFlowTraitConst for core::Ptr { #[inline] fn as_raw_OpticalFlowPCAFlow(&self) -> *const c_void { self.inner_as_raw() } } impl crate::optflow::OpticalFlowPCAFlowTrait for core::Ptr { #[inline] fn as_raw_mut_OpticalFlowPCAFlow(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_optflow_OpticalFlowPCAFlowG_to_PtrOfAlgorithm } impl crate::video::DenseOpticalFlowTraitConst for core::Ptr { #[inline] fn as_raw_DenseOpticalFlow(&self) -> *const c_void { self.inner_as_raw() } } impl crate::video::DenseOpticalFlowTrait for core::Ptr { #[inline] fn as_raw_mut_DenseOpticalFlow(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_optflow_OpticalFlowPCAFlowG_to_PtrOfDenseOpticalFlow } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfOpticalFlowPCAFlow") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfPCAPrior = core::Ptr; ptr_extern! { crate::optflow::PCAPrior, cv_PtrLcv_optflow_PCAPriorG_new_null_const, cv_PtrLcv_optflow_PCAPriorG_delete, cv_PtrLcv_optflow_PCAPriorG_getInnerPtr_const, cv_PtrLcv_optflow_PCAPriorG_getInnerPtrMut } ptr_extern_ctor! { crate::optflow::PCAPrior, cv_PtrLcv_optflow_PCAPriorG_new_const_PCAPrior } impl core::Ptr { #[inline] pub fn as_raw_PtrOfPCAPrior(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfPCAPrior(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::optflow::PCAPriorTraitConst for core::Ptr { #[inline] fn as_raw_PCAPrior(&self) -> *const c_void { self.inner_as_raw() } } impl crate::optflow::PCAPriorTrait for core::Ptr { #[inline] fn as_raw_mut_PCAPrior(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfPCAPrior") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfRLOFOpticalFlowParameter = core::Ptr; ptr_extern! { crate::optflow::RLOFOpticalFlowParameter, cv_PtrLcv_optflow_RLOFOpticalFlowParameterG_new_null_const, cv_PtrLcv_optflow_RLOFOpticalFlowParameterG_delete, cv_PtrLcv_optflow_RLOFOpticalFlowParameterG_getInnerPtr_const, cv_PtrLcv_optflow_RLOFOpticalFlowParameterG_getInnerPtrMut } ptr_extern_ctor! { crate::optflow::RLOFOpticalFlowParameter, cv_PtrLcv_optflow_RLOFOpticalFlowParameterG_new_const_RLOFOpticalFlowParameter } impl core::Ptr { #[inline] pub fn as_raw_PtrOfRLOFOpticalFlowParameter(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfRLOFOpticalFlowParameter(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::optflow::RLOFOpticalFlowParameterTraitConst for core::Ptr { #[inline] fn as_raw_RLOFOpticalFlowParameter(&self) -> *const c_void { self.inner_as_raw() } } impl crate::optflow::RLOFOpticalFlowParameterTrait for core::Ptr { #[inline] fn as_raw_mut_RLOFOpticalFlowParameter(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfRLOFOpticalFlowParameter") .field("solver_type", &crate::optflow::RLOFOpticalFlowParameterTraitConst::solver_type(self)) .field("support_region_type", &crate::optflow::RLOFOpticalFlowParameterTraitConst::support_region_type(self)) .field("norm_sigma0", &crate::optflow::RLOFOpticalFlowParameterTraitConst::norm_sigma0(self)) .field("norm_sigma1", &crate::optflow::RLOFOpticalFlowParameterTraitConst::norm_sigma1(self)) .field("small_win_size", &crate::optflow::RLOFOpticalFlowParameterTraitConst::small_win_size(self)) .field("large_win_size", &crate::optflow::RLOFOpticalFlowParameterTraitConst::large_win_size(self)) .field("cross_segmentation_threshold", &crate::optflow::RLOFOpticalFlowParameterTraitConst::cross_segmentation_threshold(self)) .field("max_level", &crate::optflow::RLOFOpticalFlowParameterTraitConst::max_level(self)) .field("use_initial_flow", &crate::optflow::RLOFOpticalFlowParameterTraitConst::use_initial_flow(self)) .field("use_illumination_model", &crate::optflow::RLOFOpticalFlowParameterTraitConst::use_illumination_model(self)) .field("use_global_motion_prior", &crate::optflow::RLOFOpticalFlowParameterTraitConst::use_global_motion_prior(self)) .field("max_iteration", &crate::optflow::RLOFOpticalFlowParameterTraitConst::max_iteration(self)) .field("min_eigen_value", &crate::optflow::RLOFOpticalFlowParameterTraitConst::min_eigen_value(self)) .field("global_motion_ransac_threshold", &crate::optflow::RLOFOpticalFlowParameterTraitConst::global_motion_ransac_threshold(self)) .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfSparseRLOFOpticalFlow = core::Ptr; ptr_extern! { crate::optflow::SparseRLOFOpticalFlow, cv_PtrLcv_optflow_SparseRLOFOpticalFlowG_new_null_const, cv_PtrLcv_optflow_SparseRLOFOpticalFlowG_delete, cv_PtrLcv_optflow_SparseRLOFOpticalFlowG_getInnerPtr_const, cv_PtrLcv_optflow_SparseRLOFOpticalFlowG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfSparseRLOFOpticalFlow(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfSparseRLOFOpticalFlow(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::optflow::SparseRLOFOpticalFlowTraitConst for core::Ptr { #[inline] fn as_raw_SparseRLOFOpticalFlow(&self) -> *const c_void { self.inner_as_raw() } } impl crate::optflow::SparseRLOFOpticalFlowTrait for core::Ptr { #[inline] fn as_raw_mut_SparseRLOFOpticalFlow(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_optflow_SparseRLOFOpticalFlowG_to_PtrOfAlgorithm } impl crate::video::SparseOpticalFlowTraitConst for core::Ptr { #[inline] fn as_raw_SparseOpticalFlow(&self) -> *const c_void { self.inner_as_raw() } } impl crate::video::SparseOpticalFlowTrait for core::Ptr { #[inline] fn as_raw_mut_SparseOpticalFlow(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_optflow_SparseRLOFOpticalFlowG_to_PtrOfSparseOpticalFlow } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfSparseRLOFOpticalFlow") .finish() } } #[deprecated = "Use the the non-alias form `core::Vector` instead, removal in Nov 2024"] pub type VectorOfGPCPatchDescriptor = core::Vector; impl core::Vector { pub fn as_raw_VectorOfGPCPatchDescriptor(&self) -> extern_send!(Self) { self.as_raw() } pub fn as_raw_mut_VectorOfGPCPatchDescriptor(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } vector_extern! { crate::optflow::GPCPatchDescriptor, std_vectorLcv_optflow_GPCPatchDescriptorG_new_const, std_vectorLcv_optflow_GPCPatchDescriptorG_delete, std_vectorLcv_optflow_GPCPatchDescriptorG_len_const, std_vectorLcv_optflow_GPCPatchDescriptorG_isEmpty_const, std_vectorLcv_optflow_GPCPatchDescriptorG_capacity_const, std_vectorLcv_optflow_GPCPatchDescriptorG_shrinkToFit, std_vectorLcv_optflow_GPCPatchDescriptorG_reserve_size_t, std_vectorLcv_optflow_GPCPatchDescriptorG_remove_size_t, std_vectorLcv_optflow_GPCPatchDescriptorG_swap_size_t_size_t, std_vectorLcv_optflow_GPCPatchDescriptorG_clear, std_vectorLcv_optflow_GPCPatchDescriptorG_get_const_size_t, std_vectorLcv_optflow_GPCPatchDescriptorG_set_size_t_const_GPCPatchDescriptor, std_vectorLcv_optflow_GPCPatchDescriptorG_push_const_GPCPatchDescriptor, std_vectorLcv_optflow_GPCPatchDescriptorG_insert_size_t_const_GPCPatchDescriptor, } vector_non_copy_or_bool! { crate::optflow::GPCPatchDescriptor } vector_boxed_ref! { crate::optflow::GPCPatchDescriptor } vector_extern! { BoxedRef<'t, crate::optflow::GPCPatchDescriptor>, std_vectorLcv_optflow_GPCPatchDescriptorG_new_const, std_vectorLcv_optflow_GPCPatchDescriptorG_delete, std_vectorLcv_optflow_GPCPatchDescriptorG_len_const, std_vectorLcv_optflow_GPCPatchDescriptorG_isEmpty_const, std_vectorLcv_optflow_GPCPatchDescriptorG_capacity_const, std_vectorLcv_optflow_GPCPatchDescriptorG_shrinkToFit, std_vectorLcv_optflow_GPCPatchDescriptorG_reserve_size_t, std_vectorLcv_optflow_GPCPatchDescriptorG_remove_size_t, std_vectorLcv_optflow_GPCPatchDescriptorG_swap_size_t_size_t, std_vectorLcv_optflow_GPCPatchDescriptorG_clear, std_vectorLcv_optflow_GPCPatchDescriptorG_get_const_size_t, std_vectorLcv_optflow_GPCPatchDescriptorG_set_size_t_const_GPCPatchDescriptor, std_vectorLcv_optflow_GPCPatchDescriptorG_push_const_GPCPatchDescriptor, std_vectorLcv_optflow_GPCPatchDescriptorG_insert_size_t_const_GPCPatchDescriptor, } #[deprecated = "Use the the non-alias form `core::Vector` instead, removal in Nov 2024"] pub type VectorOfGPCPatchSample = core::Vector; impl core::Vector { pub fn as_raw_VectorOfGPCPatchSample(&self) -> extern_send!(Self) { self.as_raw() } pub fn as_raw_mut_VectorOfGPCPatchSample(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } vector_extern! { crate::optflow::GPCPatchSample, std_vectorLcv_optflow_GPCPatchSampleG_new_const, std_vectorLcv_optflow_GPCPatchSampleG_delete, std_vectorLcv_optflow_GPCPatchSampleG_len_const, std_vectorLcv_optflow_GPCPatchSampleG_isEmpty_const, std_vectorLcv_optflow_GPCPatchSampleG_capacity_const, std_vectorLcv_optflow_GPCPatchSampleG_shrinkToFit, std_vectorLcv_optflow_GPCPatchSampleG_reserve_size_t, std_vectorLcv_optflow_GPCPatchSampleG_remove_size_t, std_vectorLcv_optflow_GPCPatchSampleG_swap_size_t_size_t, std_vectorLcv_optflow_GPCPatchSampleG_clear, std_vectorLcv_optflow_GPCPatchSampleG_get_const_size_t, std_vectorLcv_optflow_GPCPatchSampleG_set_size_t_const_GPCPatchSample, std_vectorLcv_optflow_GPCPatchSampleG_push_const_GPCPatchSample, std_vectorLcv_optflow_GPCPatchSampleG_insert_size_t_const_GPCPatchSample, } vector_non_copy_or_bool! { crate::optflow::GPCPatchSample } vector_boxed_ref! { crate::optflow::GPCPatchSample } vector_extern! { BoxedRef<'t, crate::optflow::GPCPatchSample>, std_vectorLcv_optflow_GPCPatchSampleG_new_const, std_vectorLcv_optflow_GPCPatchSampleG_delete, std_vectorLcv_optflow_GPCPatchSampleG_len_const, std_vectorLcv_optflow_GPCPatchSampleG_isEmpty_const, std_vectorLcv_optflow_GPCPatchSampleG_capacity_const, std_vectorLcv_optflow_GPCPatchSampleG_shrinkToFit, std_vectorLcv_optflow_GPCPatchSampleG_reserve_size_t, std_vectorLcv_optflow_GPCPatchSampleG_remove_size_t, std_vectorLcv_optflow_GPCPatchSampleG_swap_size_t_size_t, std_vectorLcv_optflow_GPCPatchSampleG_clear, std_vectorLcv_optflow_GPCPatchSampleG_get_const_size_t, std_vectorLcv_optflow_GPCPatchSampleG_set_size_t_const_GPCPatchSample, std_vectorLcv_optflow_GPCPatchSampleG_push_const_GPCPatchSample, std_vectorLcv_optflow_GPCPatchSampleG_insert_size_t_const_GPCPatchSample, } } #[cfg(ocvrs_has_module_optflow)] pub use optflow_types::*; #[cfg(ocvrs_has_module_ovis)] mod ovis_types { use crate::{mod_prelude::*, core, types, sys}; #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfWindowScene = core::Ptr; ptr_extern! { crate::ovis::WindowScene, cv_PtrLcv_ovis_WindowSceneG_new_null_const, cv_PtrLcv_ovis_WindowSceneG_delete, cv_PtrLcv_ovis_WindowSceneG_getInnerPtr_const, cv_PtrLcv_ovis_WindowSceneG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfWindowScene(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfWindowScene(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::ovis::WindowSceneTraitConst for core::Ptr { #[inline] fn as_raw_WindowScene(&self) -> *const c_void { self.inner_as_raw() } } impl crate::ovis::WindowSceneTrait for core::Ptr { #[inline] fn as_raw_mut_WindowScene(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfWindowScene") .finish() } } } #[cfg(ocvrs_has_module_ovis)] pub use ovis_types::*; #[cfg(ocvrs_has_module_phase_unwrapping)] mod phase_unwrapping_types { use crate::{mod_prelude::*, core, types, sys}; #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfHistogramPhaseUnwrapping = core::Ptr; ptr_extern! { crate::phase_unwrapping::HistogramPhaseUnwrapping, cv_PtrLcv_phase_unwrapping_HistogramPhaseUnwrappingG_new_null_const, cv_PtrLcv_phase_unwrapping_HistogramPhaseUnwrappingG_delete, cv_PtrLcv_phase_unwrapping_HistogramPhaseUnwrappingG_getInnerPtr_const, cv_PtrLcv_phase_unwrapping_HistogramPhaseUnwrappingG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfHistogramPhaseUnwrapping(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfHistogramPhaseUnwrapping(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::phase_unwrapping::HistogramPhaseUnwrappingTraitConst for core::Ptr { #[inline] fn as_raw_HistogramPhaseUnwrapping(&self) -> *const c_void { self.inner_as_raw() } } impl crate::phase_unwrapping::HistogramPhaseUnwrappingTrait for core::Ptr { #[inline] fn as_raw_mut_HistogramPhaseUnwrapping(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_phase_unwrapping_HistogramPhaseUnwrappingG_to_PtrOfAlgorithm } impl crate::phase_unwrapping::PhaseUnwrappingTraitConst for core::Ptr { #[inline] fn as_raw_PhaseUnwrapping(&self) -> *const c_void { self.inner_as_raw() } } impl crate::phase_unwrapping::PhaseUnwrappingTrait for core::Ptr { #[inline] fn as_raw_mut_PhaseUnwrapping(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_phase_unwrapping_HistogramPhaseUnwrappingG_to_PtrOfPhaseUnwrapping } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfHistogramPhaseUnwrapping") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfPhaseUnwrapping = core::Ptr; ptr_extern! { crate::phase_unwrapping::PhaseUnwrapping, cv_PtrLcv_phase_unwrapping_PhaseUnwrappingG_new_null_const, cv_PtrLcv_phase_unwrapping_PhaseUnwrappingG_delete, cv_PtrLcv_phase_unwrapping_PhaseUnwrappingG_getInnerPtr_const, cv_PtrLcv_phase_unwrapping_PhaseUnwrappingG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfPhaseUnwrapping(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfPhaseUnwrapping(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::phase_unwrapping::PhaseUnwrappingTraitConst for core::Ptr { #[inline] fn as_raw_PhaseUnwrapping(&self) -> *const c_void { self.inner_as_raw() } } impl crate::phase_unwrapping::PhaseUnwrappingTrait for core::Ptr { #[inline] fn as_raw_mut_PhaseUnwrapping(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_phase_unwrapping_PhaseUnwrappingG_to_PtrOfAlgorithm } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfPhaseUnwrapping") .finish() } } } #[cfg(ocvrs_has_module_phase_unwrapping)] pub use phase_unwrapping_types::*; #[cfg(ocvrs_has_module_photo)] mod photo_types { use crate::{mod_prelude::*, core, types, sys}; #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfAlignExposures = core::Ptr; ptr_extern! { crate::photo::AlignExposures, cv_PtrLcv_AlignExposuresG_new_null_const, cv_PtrLcv_AlignExposuresG_delete, cv_PtrLcv_AlignExposuresG_getInnerPtr_const, cv_PtrLcv_AlignExposuresG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfAlignExposures(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfAlignExposures(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::photo::AlignExposuresTraitConst for core::Ptr { #[inline] fn as_raw_AlignExposures(&self) -> *const c_void { self.inner_as_raw() } } impl crate::photo::AlignExposuresTrait for core::Ptr { #[inline] fn as_raw_mut_AlignExposures(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_AlignExposuresG_to_PtrOfAlgorithm } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfAlignExposures") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfAlignMTB = core::Ptr; ptr_extern! { crate::photo::AlignMTB, cv_PtrLcv_AlignMTBG_new_null_const, cv_PtrLcv_AlignMTBG_delete, cv_PtrLcv_AlignMTBG_getInnerPtr_const, cv_PtrLcv_AlignMTBG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfAlignMTB(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfAlignMTB(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::photo::AlignMTBTraitConst for core::Ptr { #[inline] fn as_raw_AlignMTB(&self) -> *const c_void { self.inner_as_raw() } } impl crate::photo::AlignMTBTrait for core::Ptr { #[inline] fn as_raw_mut_AlignMTB(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_AlignMTBG_to_PtrOfAlgorithm } impl crate::photo::AlignExposuresTraitConst for core::Ptr { #[inline] fn as_raw_AlignExposures(&self) -> *const c_void { self.inner_as_raw() } } impl crate::photo::AlignExposuresTrait for core::Ptr { #[inline] fn as_raw_mut_AlignExposures(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_AlignMTBG_to_PtrOfAlignExposures } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfAlignMTB") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfCalibrateCRF = core::Ptr; ptr_extern! { crate::photo::CalibrateCRF, cv_PtrLcv_CalibrateCRFG_new_null_const, cv_PtrLcv_CalibrateCRFG_delete, cv_PtrLcv_CalibrateCRFG_getInnerPtr_const, cv_PtrLcv_CalibrateCRFG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfCalibrateCRF(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfCalibrateCRF(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::photo::CalibrateCRFTraitConst for core::Ptr { #[inline] fn as_raw_CalibrateCRF(&self) -> *const c_void { self.inner_as_raw() } } impl crate::photo::CalibrateCRFTrait for core::Ptr { #[inline] fn as_raw_mut_CalibrateCRF(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_CalibrateCRFG_to_PtrOfAlgorithm } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfCalibrateCRF") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfCalibrateDebevec = core::Ptr; ptr_extern! { crate::photo::CalibrateDebevec, cv_PtrLcv_CalibrateDebevecG_new_null_const, cv_PtrLcv_CalibrateDebevecG_delete, cv_PtrLcv_CalibrateDebevecG_getInnerPtr_const, cv_PtrLcv_CalibrateDebevecG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfCalibrateDebevec(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfCalibrateDebevec(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::photo::CalibrateDebevecTraitConst for core::Ptr { #[inline] fn as_raw_CalibrateDebevec(&self) -> *const c_void { self.inner_as_raw() } } impl crate::photo::CalibrateDebevecTrait for core::Ptr { #[inline] fn as_raw_mut_CalibrateDebevec(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_CalibrateDebevecG_to_PtrOfAlgorithm } impl crate::photo::CalibrateCRFTraitConst for core::Ptr { #[inline] fn as_raw_CalibrateCRF(&self) -> *const c_void { self.inner_as_raw() } } impl crate::photo::CalibrateCRFTrait for core::Ptr { #[inline] fn as_raw_mut_CalibrateCRF(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_CalibrateDebevecG_to_PtrOfCalibrateCRF } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfCalibrateDebevec") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfCalibrateRobertson = core::Ptr; ptr_extern! { crate::photo::CalibrateRobertson, cv_PtrLcv_CalibrateRobertsonG_new_null_const, cv_PtrLcv_CalibrateRobertsonG_delete, cv_PtrLcv_CalibrateRobertsonG_getInnerPtr_const, cv_PtrLcv_CalibrateRobertsonG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfCalibrateRobertson(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfCalibrateRobertson(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::photo::CalibrateRobertsonTraitConst for core::Ptr { #[inline] fn as_raw_CalibrateRobertson(&self) -> *const c_void { self.inner_as_raw() } } impl crate::photo::CalibrateRobertsonTrait for core::Ptr { #[inline] fn as_raw_mut_CalibrateRobertson(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_CalibrateRobertsonG_to_PtrOfAlgorithm } impl crate::photo::CalibrateCRFTraitConst for core::Ptr { #[inline] fn as_raw_CalibrateCRF(&self) -> *const c_void { self.inner_as_raw() } } impl crate::photo::CalibrateCRFTrait for core::Ptr { #[inline] fn as_raw_mut_CalibrateCRF(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_CalibrateRobertsonG_to_PtrOfCalibrateCRF } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfCalibrateRobertson") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfMergeDebevec = core::Ptr; ptr_extern! { crate::photo::MergeDebevec, cv_PtrLcv_MergeDebevecG_new_null_const, cv_PtrLcv_MergeDebevecG_delete, cv_PtrLcv_MergeDebevecG_getInnerPtr_const, cv_PtrLcv_MergeDebevecG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfMergeDebevec(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfMergeDebevec(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::photo::MergeDebevecTraitConst for core::Ptr { #[inline] fn as_raw_MergeDebevec(&self) -> *const c_void { self.inner_as_raw() } } impl crate::photo::MergeDebevecTrait for core::Ptr { #[inline] fn as_raw_mut_MergeDebevec(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_MergeDebevecG_to_PtrOfAlgorithm } impl crate::photo::MergeExposuresTraitConst for core::Ptr { #[inline] fn as_raw_MergeExposures(&self) -> *const c_void { self.inner_as_raw() } } impl crate::photo::MergeExposuresTrait for core::Ptr { #[inline] fn as_raw_mut_MergeExposures(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_MergeDebevecG_to_PtrOfMergeExposures } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfMergeDebevec") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfMergeExposures = core::Ptr; ptr_extern! { crate::photo::MergeExposures, cv_PtrLcv_MergeExposuresG_new_null_const, cv_PtrLcv_MergeExposuresG_delete, cv_PtrLcv_MergeExposuresG_getInnerPtr_const, cv_PtrLcv_MergeExposuresG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfMergeExposures(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfMergeExposures(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::photo::MergeExposuresTraitConst for core::Ptr { #[inline] fn as_raw_MergeExposures(&self) -> *const c_void { self.inner_as_raw() } } impl crate::photo::MergeExposuresTrait for core::Ptr { #[inline] fn as_raw_mut_MergeExposures(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_MergeExposuresG_to_PtrOfAlgorithm } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfMergeExposures") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfMergeMertens = core::Ptr; ptr_extern! { crate::photo::MergeMertens, cv_PtrLcv_MergeMertensG_new_null_const, cv_PtrLcv_MergeMertensG_delete, cv_PtrLcv_MergeMertensG_getInnerPtr_const, cv_PtrLcv_MergeMertensG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfMergeMertens(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfMergeMertens(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::photo::MergeMertensTraitConst for core::Ptr { #[inline] fn as_raw_MergeMertens(&self) -> *const c_void { self.inner_as_raw() } } impl crate::photo::MergeMertensTrait for core::Ptr { #[inline] fn as_raw_mut_MergeMertens(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_MergeMertensG_to_PtrOfAlgorithm } impl crate::photo::MergeExposuresTraitConst for core::Ptr { #[inline] fn as_raw_MergeExposures(&self) -> *const c_void { self.inner_as_raw() } } impl crate::photo::MergeExposuresTrait for core::Ptr { #[inline] fn as_raw_mut_MergeExposures(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_MergeMertensG_to_PtrOfMergeExposures } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfMergeMertens") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfMergeRobertson = core::Ptr; ptr_extern! { crate::photo::MergeRobertson, cv_PtrLcv_MergeRobertsonG_new_null_const, cv_PtrLcv_MergeRobertsonG_delete, cv_PtrLcv_MergeRobertsonG_getInnerPtr_const, cv_PtrLcv_MergeRobertsonG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfMergeRobertson(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfMergeRobertson(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::photo::MergeRobertsonTraitConst for core::Ptr { #[inline] fn as_raw_MergeRobertson(&self) -> *const c_void { self.inner_as_raw() } } impl crate::photo::MergeRobertsonTrait for core::Ptr { #[inline] fn as_raw_mut_MergeRobertson(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_MergeRobertsonG_to_PtrOfAlgorithm } impl crate::photo::MergeExposuresTraitConst for core::Ptr { #[inline] fn as_raw_MergeExposures(&self) -> *const c_void { self.inner_as_raw() } } impl crate::photo::MergeExposuresTrait for core::Ptr { #[inline] fn as_raw_mut_MergeExposures(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_MergeRobertsonG_to_PtrOfMergeExposures } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfMergeRobertson") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfTonemap = core::Ptr; ptr_extern! { crate::photo::Tonemap, cv_PtrLcv_TonemapG_new_null_const, cv_PtrLcv_TonemapG_delete, cv_PtrLcv_TonemapG_getInnerPtr_const, cv_PtrLcv_TonemapG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfTonemap(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfTonemap(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::photo::TonemapTraitConst for core::Ptr { #[inline] fn as_raw_Tonemap(&self) -> *const c_void { self.inner_as_raw() } } impl crate::photo::TonemapTrait for core::Ptr { #[inline] fn as_raw_mut_Tonemap(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_TonemapG_to_PtrOfAlgorithm } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfTonemap") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfTonemapDrago = core::Ptr; ptr_extern! { crate::photo::TonemapDrago, cv_PtrLcv_TonemapDragoG_new_null_const, cv_PtrLcv_TonemapDragoG_delete, cv_PtrLcv_TonemapDragoG_getInnerPtr_const, cv_PtrLcv_TonemapDragoG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfTonemapDrago(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfTonemapDrago(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::photo::TonemapDragoTraitConst for core::Ptr { #[inline] fn as_raw_TonemapDrago(&self) -> *const c_void { self.inner_as_raw() } } impl crate::photo::TonemapDragoTrait for core::Ptr { #[inline] fn as_raw_mut_TonemapDrago(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_TonemapDragoG_to_PtrOfAlgorithm } impl crate::photo::TonemapTraitConst for core::Ptr { #[inline] fn as_raw_Tonemap(&self) -> *const c_void { self.inner_as_raw() } } impl crate::photo::TonemapTrait for core::Ptr { #[inline] fn as_raw_mut_Tonemap(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_TonemapDragoG_to_PtrOfTonemap } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfTonemapDrago") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfTonemapMantiuk = core::Ptr; ptr_extern! { crate::photo::TonemapMantiuk, cv_PtrLcv_TonemapMantiukG_new_null_const, cv_PtrLcv_TonemapMantiukG_delete, cv_PtrLcv_TonemapMantiukG_getInnerPtr_const, cv_PtrLcv_TonemapMantiukG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfTonemapMantiuk(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfTonemapMantiuk(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::photo::TonemapMantiukTraitConst for core::Ptr { #[inline] fn as_raw_TonemapMantiuk(&self) -> *const c_void { self.inner_as_raw() } } impl crate::photo::TonemapMantiukTrait for core::Ptr { #[inline] fn as_raw_mut_TonemapMantiuk(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_TonemapMantiukG_to_PtrOfAlgorithm } impl crate::photo::TonemapTraitConst for core::Ptr { #[inline] fn as_raw_Tonemap(&self) -> *const c_void { self.inner_as_raw() } } impl crate::photo::TonemapTrait for core::Ptr { #[inline] fn as_raw_mut_Tonemap(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_TonemapMantiukG_to_PtrOfTonemap } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfTonemapMantiuk") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfTonemapReinhard = core::Ptr; ptr_extern! { crate::photo::TonemapReinhard, cv_PtrLcv_TonemapReinhardG_new_null_const, cv_PtrLcv_TonemapReinhardG_delete, cv_PtrLcv_TonemapReinhardG_getInnerPtr_const, cv_PtrLcv_TonemapReinhardG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfTonemapReinhard(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfTonemapReinhard(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::photo::TonemapReinhardTraitConst for core::Ptr { #[inline] fn as_raw_TonemapReinhard(&self) -> *const c_void { self.inner_as_raw() } } impl crate::photo::TonemapReinhardTrait for core::Ptr { #[inline] fn as_raw_mut_TonemapReinhard(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_TonemapReinhardG_to_PtrOfAlgorithm } impl crate::photo::TonemapTraitConst for core::Ptr { #[inline] fn as_raw_Tonemap(&self) -> *const c_void { self.inner_as_raw() } } impl crate::photo::TonemapTrait for core::Ptr { #[inline] fn as_raw_mut_Tonemap(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_TonemapReinhardG_to_PtrOfTonemap } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfTonemapReinhard") .finish() } } } #[cfg(ocvrs_has_module_photo)] pub use photo_types::*; #[cfg(ocvrs_has_module_plot)] mod plot_types { use crate::{mod_prelude::*, core, types, sys}; #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfPlot2d = core::Ptr; ptr_extern! { crate::plot::Plot2d, cv_PtrLcv_plot_Plot2dG_new_null_const, cv_PtrLcv_plot_Plot2dG_delete, cv_PtrLcv_plot_Plot2dG_getInnerPtr_const, cv_PtrLcv_plot_Plot2dG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfPlot2d(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfPlot2d(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::plot::Plot2dTraitConst for core::Ptr { #[inline] fn as_raw_Plot2d(&self) -> *const c_void { self.inner_as_raw() } } impl crate::plot::Plot2dTrait for core::Ptr { #[inline] fn as_raw_mut_Plot2d(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_plot_Plot2dG_to_PtrOfAlgorithm } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfPlot2d") .finish() } } } #[cfg(ocvrs_has_module_plot)] pub use plot_types::*; #[cfg(ocvrs_has_module_quality)] mod quality_types { use crate::{mod_prelude::*, core, types, sys}; #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfQualityBRISQUE = core::Ptr; ptr_extern! { crate::quality::QualityBRISQUE, cv_PtrLcv_quality_QualityBRISQUEG_new_null_const, cv_PtrLcv_quality_QualityBRISQUEG_delete, cv_PtrLcv_quality_QualityBRISQUEG_getInnerPtr_const, cv_PtrLcv_quality_QualityBRISQUEG_getInnerPtrMut } ptr_extern_ctor! { crate::quality::QualityBRISQUE, cv_PtrLcv_quality_QualityBRISQUEG_new_const_QualityBRISQUE } impl core::Ptr { #[inline] pub fn as_raw_PtrOfQualityBRISQUE(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfQualityBRISQUE(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::quality::QualityBRISQUETraitConst for core::Ptr { #[inline] fn as_raw_QualityBRISQUE(&self) -> *const c_void { self.inner_as_raw() } } impl crate::quality::QualityBRISQUETrait for core::Ptr { #[inline] fn as_raw_mut_QualityBRISQUE(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_quality_QualityBRISQUEG_to_PtrOfAlgorithm } impl crate::quality::QualityBaseTraitConst for core::Ptr { #[inline] fn as_raw_QualityBase(&self) -> *const c_void { self.inner_as_raw() } } impl crate::quality::QualityBaseTrait for core::Ptr { #[inline] fn as_raw_mut_QualityBase(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_quality_QualityBRISQUEG_to_PtrOfQualityBase } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfQualityBRISQUE") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfQualityBase = core::Ptr; ptr_extern! { crate::quality::QualityBase, cv_PtrLcv_quality_QualityBaseG_new_null_const, cv_PtrLcv_quality_QualityBaseG_delete, cv_PtrLcv_quality_QualityBaseG_getInnerPtr_const, cv_PtrLcv_quality_QualityBaseG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfQualityBase(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfQualityBase(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::quality::QualityBaseTraitConst for core::Ptr { #[inline] fn as_raw_QualityBase(&self) -> *const c_void { self.inner_as_raw() } } impl crate::quality::QualityBaseTrait for core::Ptr { #[inline] fn as_raw_mut_QualityBase(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_quality_QualityBaseG_to_PtrOfAlgorithm } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfQualityBase") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfQualityGMSD = core::Ptr; ptr_extern! { crate::quality::QualityGMSD, cv_PtrLcv_quality_QualityGMSDG_new_null_const, cv_PtrLcv_quality_QualityGMSDG_delete, cv_PtrLcv_quality_QualityGMSDG_getInnerPtr_const, cv_PtrLcv_quality_QualityGMSDG_getInnerPtrMut } ptr_extern_ctor! { crate::quality::QualityGMSD, cv_PtrLcv_quality_QualityGMSDG_new_const_QualityGMSD } impl core::Ptr { #[inline] pub fn as_raw_PtrOfQualityGMSD(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfQualityGMSD(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::quality::QualityGMSDTraitConst for core::Ptr { #[inline] fn as_raw_QualityGMSD(&self) -> *const c_void { self.inner_as_raw() } } impl crate::quality::QualityGMSDTrait for core::Ptr { #[inline] fn as_raw_mut_QualityGMSD(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_quality_QualityGMSDG_to_PtrOfAlgorithm } impl crate::quality::QualityBaseTraitConst for core::Ptr { #[inline] fn as_raw_QualityBase(&self) -> *const c_void { self.inner_as_raw() } } impl crate::quality::QualityBaseTrait for core::Ptr { #[inline] fn as_raw_mut_QualityBase(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_quality_QualityGMSDG_to_PtrOfQualityBase } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfQualityGMSD") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfQualityMSE = core::Ptr; ptr_extern! { crate::quality::QualityMSE, cv_PtrLcv_quality_QualityMSEG_new_null_const, cv_PtrLcv_quality_QualityMSEG_delete, cv_PtrLcv_quality_QualityMSEG_getInnerPtr_const, cv_PtrLcv_quality_QualityMSEG_getInnerPtrMut } ptr_extern_ctor! { crate::quality::QualityMSE, cv_PtrLcv_quality_QualityMSEG_new_const_QualityMSE } impl core::Ptr { #[inline] pub fn as_raw_PtrOfQualityMSE(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfQualityMSE(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::quality::QualityMSETraitConst for core::Ptr { #[inline] fn as_raw_QualityMSE(&self) -> *const c_void { self.inner_as_raw() } } impl crate::quality::QualityMSETrait for core::Ptr { #[inline] fn as_raw_mut_QualityMSE(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_quality_QualityMSEG_to_PtrOfAlgorithm } impl crate::quality::QualityBaseTraitConst for core::Ptr { #[inline] fn as_raw_QualityBase(&self) -> *const c_void { self.inner_as_raw() } } impl crate::quality::QualityBaseTrait for core::Ptr { #[inline] fn as_raw_mut_QualityBase(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_quality_QualityMSEG_to_PtrOfQualityBase } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfQualityMSE") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfQualityPSNR = core::Ptr; ptr_extern! { crate::quality::QualityPSNR, cv_PtrLcv_quality_QualityPSNRG_new_null_const, cv_PtrLcv_quality_QualityPSNRG_delete, cv_PtrLcv_quality_QualityPSNRG_getInnerPtr_const, cv_PtrLcv_quality_QualityPSNRG_getInnerPtrMut } ptr_extern_ctor! { crate::quality::QualityPSNR, cv_PtrLcv_quality_QualityPSNRG_new_const_QualityPSNR } impl core::Ptr { #[inline] pub fn as_raw_PtrOfQualityPSNR(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfQualityPSNR(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::quality::QualityPSNRTraitConst for core::Ptr { #[inline] fn as_raw_QualityPSNR(&self) -> *const c_void { self.inner_as_raw() } } impl crate::quality::QualityPSNRTrait for core::Ptr { #[inline] fn as_raw_mut_QualityPSNR(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_quality_QualityPSNRG_to_PtrOfAlgorithm } impl crate::quality::QualityBaseTraitConst for core::Ptr { #[inline] fn as_raw_QualityBase(&self) -> *const c_void { self.inner_as_raw() } } impl crate::quality::QualityBaseTrait for core::Ptr { #[inline] fn as_raw_mut_QualityBase(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_quality_QualityPSNRG_to_PtrOfQualityBase } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfQualityPSNR") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfQualitySSIM = core::Ptr; ptr_extern! { crate::quality::QualitySSIM, cv_PtrLcv_quality_QualitySSIMG_new_null_const, cv_PtrLcv_quality_QualitySSIMG_delete, cv_PtrLcv_quality_QualitySSIMG_getInnerPtr_const, cv_PtrLcv_quality_QualitySSIMG_getInnerPtrMut } ptr_extern_ctor! { crate::quality::QualitySSIM, cv_PtrLcv_quality_QualitySSIMG_new_const_QualitySSIM } impl core::Ptr { #[inline] pub fn as_raw_PtrOfQualitySSIM(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfQualitySSIM(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::quality::QualitySSIMTraitConst for core::Ptr { #[inline] fn as_raw_QualitySSIM(&self) -> *const c_void { self.inner_as_raw() } } impl crate::quality::QualitySSIMTrait for core::Ptr { #[inline] fn as_raw_mut_QualitySSIM(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_quality_QualitySSIMG_to_PtrOfAlgorithm } impl crate::quality::QualityBaseTraitConst for core::Ptr { #[inline] fn as_raw_QualityBase(&self) -> *const c_void { self.inner_as_raw() } } impl crate::quality::QualityBaseTrait for core::Ptr { #[inline] fn as_raw_mut_QualityBase(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_quality_QualitySSIMG_to_PtrOfQualityBase } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfQualitySSIM") .finish() } } } #[cfg(ocvrs_has_module_quality)] pub use quality_types::*; #[cfg(ocvrs_has_module_rapid)] mod rapid_types { use crate::{mod_prelude::*, core, types, sys}; #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfRapid_GOSTracker = core::Ptr; ptr_extern! { crate::rapid::Rapid_GOSTracker, cv_PtrLcv_rapid_GOSTrackerG_new_null_const, cv_PtrLcv_rapid_GOSTrackerG_delete, cv_PtrLcv_rapid_GOSTrackerG_getInnerPtr_const, cv_PtrLcv_rapid_GOSTrackerG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfRapid_GOSTracker(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfRapid_GOSTracker(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::rapid::Rapid_GOSTrackerTraitConst for core::Ptr { #[inline] fn as_raw_Rapid_GOSTracker(&self) -> *const c_void { self.inner_as_raw() } } impl crate::rapid::Rapid_GOSTrackerTrait for core::Ptr { #[inline] fn as_raw_mut_Rapid_GOSTracker(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_rapid_GOSTrackerG_to_PtrOfAlgorithm } impl crate::rapid::Rapid_TrackerTraitConst for core::Ptr { #[inline] fn as_raw_Rapid_Tracker(&self) -> *const c_void { self.inner_as_raw() } } impl crate::rapid::Rapid_TrackerTrait for core::Ptr { #[inline] fn as_raw_mut_Rapid_Tracker(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_rapid_GOSTrackerG_to_PtrOfRapid_Tracker } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfRapid_GOSTracker") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfRapid_OLSTracker = core::Ptr; ptr_extern! { crate::rapid::Rapid_OLSTracker, cv_PtrLcv_rapid_OLSTrackerG_new_null_const, cv_PtrLcv_rapid_OLSTrackerG_delete, cv_PtrLcv_rapid_OLSTrackerG_getInnerPtr_const, cv_PtrLcv_rapid_OLSTrackerG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfRapid_OLSTracker(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfRapid_OLSTracker(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::rapid::Rapid_OLSTrackerTraitConst for core::Ptr { #[inline] fn as_raw_Rapid_OLSTracker(&self) -> *const c_void { self.inner_as_raw() } } impl crate::rapid::Rapid_OLSTrackerTrait for core::Ptr { #[inline] fn as_raw_mut_Rapid_OLSTracker(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_rapid_OLSTrackerG_to_PtrOfAlgorithm } impl crate::rapid::Rapid_TrackerTraitConst for core::Ptr { #[inline] fn as_raw_Rapid_Tracker(&self) -> *const c_void { self.inner_as_raw() } } impl crate::rapid::Rapid_TrackerTrait for core::Ptr { #[inline] fn as_raw_mut_Rapid_Tracker(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_rapid_OLSTrackerG_to_PtrOfRapid_Tracker } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfRapid_OLSTracker") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfRapid_Rapid = core::Ptr; ptr_extern! { crate::rapid::Rapid_Rapid, cv_PtrLcv_rapid_RapidG_new_null_const, cv_PtrLcv_rapid_RapidG_delete, cv_PtrLcv_rapid_RapidG_getInnerPtr_const, cv_PtrLcv_rapid_RapidG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfRapid_Rapid(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfRapid_Rapid(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::rapid::Rapid_RapidTraitConst for core::Ptr { #[inline] fn as_raw_Rapid_Rapid(&self) -> *const c_void { self.inner_as_raw() } } impl crate::rapid::Rapid_RapidTrait for core::Ptr { #[inline] fn as_raw_mut_Rapid_Rapid(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_rapid_RapidG_to_PtrOfAlgorithm } impl crate::rapid::Rapid_TrackerTraitConst for core::Ptr { #[inline] fn as_raw_Rapid_Tracker(&self) -> *const c_void { self.inner_as_raw() } } impl crate::rapid::Rapid_TrackerTrait for core::Ptr { #[inline] fn as_raw_mut_Rapid_Tracker(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_rapid_RapidG_to_PtrOfRapid_Tracker } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfRapid_Rapid") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfRapid_Tracker = core::Ptr; ptr_extern! { crate::rapid::Rapid_Tracker, cv_PtrLcv_rapid_TrackerG_new_null_const, cv_PtrLcv_rapid_TrackerG_delete, cv_PtrLcv_rapid_TrackerG_getInnerPtr_const, cv_PtrLcv_rapid_TrackerG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfRapid_Tracker(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfRapid_Tracker(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::rapid::Rapid_TrackerTraitConst for core::Ptr { #[inline] fn as_raw_Rapid_Tracker(&self) -> *const c_void { self.inner_as_raw() } } impl crate::rapid::Rapid_TrackerTrait for core::Ptr { #[inline] fn as_raw_mut_Rapid_Tracker(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_rapid_TrackerG_to_PtrOfAlgorithm } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfRapid_Tracker") .finish() } } } #[cfg(ocvrs_has_module_rapid)] pub use rapid_types::*; #[cfg(ocvrs_has_module_rgbd)] mod rgbd_types { use crate::{mod_prelude::*, core, types, sys}; #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfColoredKinfu_ColoredKinFu = core::Ptr; ptr_extern! { crate::rgbd::ColoredKinfu_ColoredKinFu, cv_PtrLcv_colored_kinfu_ColoredKinFuG_new_null_const, cv_PtrLcv_colored_kinfu_ColoredKinFuG_delete, cv_PtrLcv_colored_kinfu_ColoredKinFuG_getInnerPtr_const, cv_PtrLcv_colored_kinfu_ColoredKinFuG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfColoredKinfu_ColoredKinFu(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfColoredKinfu_ColoredKinFu(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::rgbd::ColoredKinfu_ColoredKinFuTraitConst for core::Ptr { #[inline] fn as_raw_ColoredKinfu_ColoredKinFu(&self) -> *const c_void { self.inner_as_raw() } } impl crate::rgbd::ColoredKinfu_ColoredKinFuTrait for core::Ptr { #[inline] fn as_raw_mut_ColoredKinfu_ColoredKinFu(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfColoredKinfu_ColoredKinFu") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfColoredKinfu_Params = core::Ptr; ptr_extern! { crate::rgbd::ColoredKinfu_Params, cv_PtrLcv_colored_kinfu_ParamsG_new_null_const, cv_PtrLcv_colored_kinfu_ParamsG_delete, cv_PtrLcv_colored_kinfu_ParamsG_getInnerPtr_const, cv_PtrLcv_colored_kinfu_ParamsG_getInnerPtrMut } ptr_extern_ctor! { crate::rgbd::ColoredKinfu_Params, cv_PtrLcv_colored_kinfu_ParamsG_new_const_Params } impl core::Ptr { #[inline] pub fn as_raw_PtrOfColoredKinfu_Params(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfColoredKinfu_Params(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::rgbd::ColoredKinfu_ParamsTraitConst for core::Ptr { #[inline] fn as_raw_ColoredKinfu_Params(&self) -> *const c_void { self.inner_as_raw() } } impl crate::rgbd::ColoredKinfu_ParamsTrait for core::Ptr { #[inline] fn as_raw_mut_ColoredKinfu_Params(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfColoredKinfu_Params") .field("frame_size", &crate::rgbd::ColoredKinfu_ParamsTraitConst::frame_size(self)) .field("rgb_frame_size", &crate::rgbd::ColoredKinfu_ParamsTraitConst::rgb_frame_size(self)) .field("volume_type", &crate::rgbd::ColoredKinfu_ParamsTraitConst::volume_type(self)) .field("intr", &crate::rgbd::ColoredKinfu_ParamsTraitConst::intr(self)) .field("rgb_intr", &crate::rgbd::ColoredKinfu_ParamsTraitConst::rgb_intr(self)) .field("depth_factor", &crate::rgbd::ColoredKinfu_ParamsTraitConst::depth_factor(self)) .field("bilateral_sigma_depth", &crate::rgbd::ColoredKinfu_ParamsTraitConst::bilateral_sigma_depth(self)) .field("bilateral_sigma_spatial", &crate::rgbd::ColoredKinfu_ParamsTraitConst::bilateral_sigma_spatial(self)) .field("bilateral_kernel_size", &crate::rgbd::ColoredKinfu_ParamsTraitConst::bilateral_kernel_size(self)) .field("pyramid_levels", &crate::rgbd::ColoredKinfu_ParamsTraitConst::pyramid_levels(self)) .field("volume_dims", &crate::rgbd::ColoredKinfu_ParamsTraitConst::volume_dims(self)) .field("voxel_size", &crate::rgbd::ColoredKinfu_ParamsTraitConst::voxel_size(self)) .field("tsdf_min_camera_movement", &crate::rgbd::ColoredKinfu_ParamsTraitConst::tsdf_min_camera_movement(self)) .field("volume_pose", &crate::rgbd::ColoredKinfu_ParamsTraitConst::volume_pose(self)) .field("tsdf_trunc_dist", &crate::rgbd::ColoredKinfu_ParamsTraitConst::tsdf_trunc_dist(self)) .field("tsdf_max_weight", &crate::rgbd::ColoredKinfu_ParamsTraitConst::tsdf_max_weight(self)) .field("raycast_step_factor", &crate::rgbd::ColoredKinfu_ParamsTraitConst::raycast_step_factor(self)) .field("light_pose", &crate::rgbd::ColoredKinfu_ParamsTraitConst::light_pose(self)) .field("icp_dist_thresh", &crate::rgbd::ColoredKinfu_ParamsTraitConst::icp_dist_thresh(self)) .field("icp_angle_thresh", &crate::rgbd::ColoredKinfu_ParamsTraitConst::icp_angle_thresh(self)) .field("icp_iterations", &crate::rgbd::ColoredKinfu_ParamsTraitConst::icp_iterations(self)) .field("truncate_threshold", &crate::rgbd::ColoredKinfu_ParamsTraitConst::truncate_threshold(self)) .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfDepthCleaner = core::Ptr; ptr_extern! { crate::rgbd::DepthCleaner, cv_PtrLcv_rgbd_DepthCleanerG_new_null_const, cv_PtrLcv_rgbd_DepthCleanerG_delete, cv_PtrLcv_rgbd_DepthCleanerG_getInnerPtr_const, cv_PtrLcv_rgbd_DepthCleanerG_getInnerPtrMut } ptr_extern_ctor! { crate::rgbd::DepthCleaner, cv_PtrLcv_rgbd_DepthCleanerG_new_const_DepthCleaner } impl core::Ptr { #[inline] pub fn as_raw_PtrOfDepthCleaner(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfDepthCleaner(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::rgbd::DepthCleanerTraitConst for core::Ptr { #[inline] fn as_raw_DepthCleaner(&self) -> *const c_void { self.inner_as_raw() } } impl crate::rgbd::DepthCleanerTrait for core::Ptr { #[inline] fn as_raw_mut_DepthCleaner(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_rgbd_DepthCleanerG_to_PtrOfAlgorithm } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfDepthCleaner") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfDynafu_DynaFu = core::Ptr; ptr_extern! { crate::rgbd::Dynafu_DynaFu, cv_PtrLcv_dynafu_DynaFuG_new_null_const, cv_PtrLcv_dynafu_DynaFuG_delete, cv_PtrLcv_dynafu_DynaFuG_getInnerPtr_const, cv_PtrLcv_dynafu_DynaFuG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfDynafu_DynaFu(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfDynafu_DynaFu(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::rgbd::Dynafu_DynaFuTraitConst for core::Ptr { #[inline] fn as_raw_Dynafu_DynaFu(&self) -> *const c_void { self.inner_as_raw() } } impl crate::rgbd::Dynafu_DynaFuTrait for core::Ptr { #[inline] fn as_raw_mut_Dynafu_DynaFu(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfDynafu_DynaFu") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfFastICPOdometry = core::Ptr; ptr_extern! { crate::rgbd::FastICPOdometry, cv_PtrLcv_rgbd_FastICPOdometryG_new_null_const, cv_PtrLcv_rgbd_FastICPOdometryG_delete, cv_PtrLcv_rgbd_FastICPOdometryG_getInnerPtr_const, cv_PtrLcv_rgbd_FastICPOdometryG_getInnerPtrMut } ptr_extern_ctor! { crate::rgbd::FastICPOdometry, cv_PtrLcv_rgbd_FastICPOdometryG_new_const_FastICPOdometry } impl core::Ptr { #[inline] pub fn as_raw_PtrOfFastICPOdometry(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfFastICPOdometry(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::rgbd::FastICPOdometryTraitConst for core::Ptr { #[inline] fn as_raw_FastICPOdometry(&self) -> *const c_void { self.inner_as_raw() } } impl crate::rgbd::FastICPOdometryTrait for core::Ptr { #[inline] fn as_raw_mut_FastICPOdometry(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_rgbd_FastICPOdometryG_to_PtrOfAlgorithm } impl crate::rgbd::OdometryTraitConst for core::Ptr { #[inline] fn as_raw_Odometry(&self) -> *const c_void { self.inner_as_raw() } } impl crate::rgbd::OdometryTrait for core::Ptr { #[inline] fn as_raw_mut_Odometry(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_rgbd_FastICPOdometryG_to_PtrOfOdometry } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfFastICPOdometry") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfICPOdometry = core::Ptr; ptr_extern! { crate::rgbd::ICPOdometry, cv_PtrLcv_rgbd_ICPOdometryG_new_null_const, cv_PtrLcv_rgbd_ICPOdometryG_delete, cv_PtrLcv_rgbd_ICPOdometryG_getInnerPtr_const, cv_PtrLcv_rgbd_ICPOdometryG_getInnerPtrMut } ptr_extern_ctor! { crate::rgbd::ICPOdometry, cv_PtrLcv_rgbd_ICPOdometryG_new_const_ICPOdometry } impl core::Ptr { #[inline] pub fn as_raw_PtrOfICPOdometry(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfICPOdometry(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::rgbd::ICPOdometryTraitConst for core::Ptr { #[inline] fn as_raw_ICPOdometry(&self) -> *const c_void { self.inner_as_raw() } } impl crate::rgbd::ICPOdometryTrait for core::Ptr { #[inline] fn as_raw_mut_ICPOdometry(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_rgbd_ICPOdometryG_to_PtrOfAlgorithm } impl crate::rgbd::OdometryTraitConst for core::Ptr { #[inline] fn as_raw_Odometry(&self) -> *const c_void { self.inner_as_raw() } } impl crate::rgbd::OdometryTrait for core::Ptr { #[inline] fn as_raw_mut_Odometry(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_rgbd_ICPOdometryG_to_PtrOfOdometry } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfICPOdometry") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfKinfu_Detail_PoseGraph = core::Ptr; ptr_extern! { crate::rgbd::Kinfu_Detail_PoseGraph, cv_PtrLcv_kinfu_detail_PoseGraphG_new_null_const, cv_PtrLcv_kinfu_detail_PoseGraphG_delete, cv_PtrLcv_kinfu_detail_PoseGraphG_getInnerPtr_const, cv_PtrLcv_kinfu_detail_PoseGraphG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfKinfu_Detail_PoseGraph(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfKinfu_Detail_PoseGraph(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::rgbd::Kinfu_Detail_PoseGraphTraitConst for core::Ptr { #[inline] fn as_raw_Kinfu_Detail_PoseGraph(&self) -> *const c_void { self.inner_as_raw() } } impl crate::rgbd::Kinfu_Detail_PoseGraphTrait for core::Ptr { #[inline] fn as_raw_mut_Kinfu_Detail_PoseGraph(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfKinfu_Detail_PoseGraph") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfKinfu_KinFu = core::Ptr; ptr_extern! { crate::rgbd::Kinfu_KinFu, cv_PtrLcv_kinfu_KinFuG_new_null_const, cv_PtrLcv_kinfu_KinFuG_delete, cv_PtrLcv_kinfu_KinFuG_getInnerPtr_const, cv_PtrLcv_kinfu_KinFuG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfKinfu_KinFu(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfKinfu_KinFu(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::rgbd::Kinfu_KinFuTraitConst for core::Ptr { #[inline] fn as_raw_Kinfu_KinFu(&self) -> *const c_void { self.inner_as_raw() } } impl crate::rgbd::Kinfu_KinFuTrait for core::Ptr { #[inline] fn as_raw_mut_Kinfu_KinFu(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfKinfu_KinFu") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfKinfu_Params = core::Ptr; ptr_extern! { crate::rgbd::Kinfu_Params, cv_PtrLcv_kinfu_ParamsG_new_null_const, cv_PtrLcv_kinfu_ParamsG_delete, cv_PtrLcv_kinfu_ParamsG_getInnerPtr_const, cv_PtrLcv_kinfu_ParamsG_getInnerPtrMut } ptr_extern_ctor! { crate::rgbd::Kinfu_Params, cv_PtrLcv_kinfu_ParamsG_new_const_Params } impl core::Ptr { #[inline] pub fn as_raw_PtrOfKinfu_Params(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfKinfu_Params(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::rgbd::Kinfu_ParamsTraitConst for core::Ptr { #[inline] fn as_raw_Kinfu_Params(&self) -> *const c_void { self.inner_as_raw() } } impl crate::rgbd::Kinfu_ParamsTrait for core::Ptr { #[inline] fn as_raw_mut_Kinfu_Params(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfKinfu_Params") .field("frame_size", &crate::rgbd::Kinfu_ParamsTraitConst::frame_size(self)) .field("volume_type", &crate::rgbd::Kinfu_ParamsTraitConst::volume_type(self)) .field("intr", &crate::rgbd::Kinfu_ParamsTraitConst::intr(self)) .field("rgb_intr", &crate::rgbd::Kinfu_ParamsTraitConst::rgb_intr(self)) .field("depth_factor", &crate::rgbd::Kinfu_ParamsTraitConst::depth_factor(self)) .field("bilateral_sigma_depth", &crate::rgbd::Kinfu_ParamsTraitConst::bilateral_sigma_depth(self)) .field("bilateral_sigma_spatial", &crate::rgbd::Kinfu_ParamsTraitConst::bilateral_sigma_spatial(self)) .field("bilateral_kernel_size", &crate::rgbd::Kinfu_ParamsTraitConst::bilateral_kernel_size(self)) .field("pyramid_levels", &crate::rgbd::Kinfu_ParamsTraitConst::pyramid_levels(self)) .field("volume_dims", &crate::rgbd::Kinfu_ParamsTraitConst::volume_dims(self)) .field("voxel_size", &crate::rgbd::Kinfu_ParamsTraitConst::voxel_size(self)) .field("tsdf_min_camera_movement", &crate::rgbd::Kinfu_ParamsTraitConst::tsdf_min_camera_movement(self)) .field("volume_pose", &crate::rgbd::Kinfu_ParamsTraitConst::volume_pose(self)) .field("tsdf_trunc_dist", &crate::rgbd::Kinfu_ParamsTraitConst::tsdf_trunc_dist(self)) .field("tsdf_max_weight", &crate::rgbd::Kinfu_ParamsTraitConst::tsdf_max_weight(self)) .field("raycast_step_factor", &crate::rgbd::Kinfu_ParamsTraitConst::raycast_step_factor(self)) .field("light_pose", &crate::rgbd::Kinfu_ParamsTraitConst::light_pose(self)) .field("icp_dist_thresh", &crate::rgbd::Kinfu_ParamsTraitConst::icp_dist_thresh(self)) .field("icp_angle_thresh", &crate::rgbd::Kinfu_ParamsTraitConst::icp_angle_thresh(self)) .field("icp_iterations", &crate::rgbd::Kinfu_ParamsTraitConst::icp_iterations(self)) .field("truncate_threshold", &crate::rgbd::Kinfu_ParamsTraitConst::truncate_threshold(self)) .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfKinfu_Volume = core::Ptr; ptr_extern! { crate::rgbd::Kinfu_Volume, cv_PtrLcv_kinfu_VolumeG_new_null_const, cv_PtrLcv_kinfu_VolumeG_delete, cv_PtrLcv_kinfu_VolumeG_getInnerPtr_const, cv_PtrLcv_kinfu_VolumeG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfKinfu_Volume(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfKinfu_Volume(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::rgbd::Kinfu_VolumeTraitConst for core::Ptr { #[inline] fn as_raw_Kinfu_Volume(&self) -> *const c_void { self.inner_as_raw() } } impl crate::rgbd::Kinfu_VolumeTrait for core::Ptr { #[inline] fn as_raw_mut_Kinfu_Volume(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfKinfu_Volume") .field("voxel_size", &crate::rgbd::Kinfu_VolumeTraitConst::voxel_size(self)) .field("voxel_size_inv", &crate::rgbd::Kinfu_VolumeTraitConst::voxel_size_inv(self)) .field("pose", &crate::rgbd::Kinfu_VolumeTraitConst::pose(self)) .field("raycast_step_factor", &crate::rgbd::Kinfu_VolumeTraitConst::raycast_step_factor(self)) .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfKinfu_VolumeParams = core::Ptr; ptr_extern! { crate::rgbd::Kinfu_VolumeParams, cv_PtrLcv_kinfu_VolumeParamsG_new_null_const, cv_PtrLcv_kinfu_VolumeParamsG_delete, cv_PtrLcv_kinfu_VolumeParamsG_getInnerPtr_const, cv_PtrLcv_kinfu_VolumeParamsG_getInnerPtrMut } ptr_extern_ctor! { crate::rgbd::Kinfu_VolumeParams, cv_PtrLcv_kinfu_VolumeParamsG_new_const_VolumeParams } impl core::Ptr { #[inline] pub fn as_raw_PtrOfKinfu_VolumeParams(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfKinfu_VolumeParams(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::rgbd::Kinfu_VolumeParamsTraitConst for core::Ptr { #[inline] fn as_raw_Kinfu_VolumeParams(&self) -> *const c_void { self.inner_as_raw() } } impl crate::rgbd::Kinfu_VolumeParamsTrait for core::Ptr { #[inline] fn as_raw_mut_Kinfu_VolumeParams(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfKinfu_VolumeParams") .field("typ", &crate::rgbd::Kinfu_VolumeParamsTraitConst::typ(self)) .field("resolution", &crate::rgbd::Kinfu_VolumeParamsTraitConst::resolution(self)) .field("unit_resolution", &crate::rgbd::Kinfu_VolumeParamsTraitConst::unit_resolution(self)) .field("pose", &crate::rgbd::Kinfu_VolumeParamsTraitConst::pose(self)) .field("voxel_size", &crate::rgbd::Kinfu_VolumeParamsTraitConst::voxel_size(self)) .field("tsdf_trunc_dist", &crate::rgbd::Kinfu_VolumeParamsTraitConst::tsdf_trunc_dist(self)) .field("max_weight", &crate::rgbd::Kinfu_VolumeParamsTraitConst::max_weight(self)) .field("depth_trunc_threshold", &crate::rgbd::Kinfu_VolumeParamsTraitConst::depth_trunc_threshold(self)) .field("raycast_step_factor", &crate::rgbd::Kinfu_VolumeParamsTraitConst::raycast_step_factor(self)) .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfLargeKinfu = core::Ptr; ptr_extern! { crate::rgbd::LargeKinfu, cv_PtrLcv_large_kinfu_LargeKinfuG_new_null_const, cv_PtrLcv_large_kinfu_LargeKinfuG_delete, cv_PtrLcv_large_kinfu_LargeKinfuG_getInnerPtr_const, cv_PtrLcv_large_kinfu_LargeKinfuG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfLargeKinfu(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfLargeKinfu(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::rgbd::LargeKinfuTraitConst for core::Ptr { #[inline] fn as_raw_LargeKinfu(&self) -> *const c_void { self.inner_as_raw() } } impl crate::rgbd::LargeKinfuTrait for core::Ptr { #[inline] fn as_raw_mut_LargeKinfu(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfLargeKinfu") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfLineMod_ColorGradient = core::Ptr; ptr_extern! { crate::rgbd::LineMod_ColorGradient, cv_PtrLcv_linemod_ColorGradientG_new_null_const, cv_PtrLcv_linemod_ColorGradientG_delete, cv_PtrLcv_linemod_ColorGradientG_getInnerPtr_const, cv_PtrLcv_linemod_ColorGradientG_getInnerPtrMut } ptr_extern_ctor! { crate::rgbd::LineMod_ColorGradient, cv_PtrLcv_linemod_ColorGradientG_new_const_ColorGradient } impl core::Ptr { #[inline] pub fn as_raw_PtrOfLineMod_ColorGradient(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfLineMod_ColorGradient(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::rgbd::LineMod_ColorGradientTraitConst for core::Ptr { #[inline] fn as_raw_LineMod_ColorGradient(&self) -> *const c_void { self.inner_as_raw() } } impl crate::rgbd::LineMod_ColorGradientTrait for core::Ptr { #[inline] fn as_raw_mut_LineMod_ColorGradient(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl crate::rgbd::LineMod_ModalityTraitConst for core::Ptr { #[inline] fn as_raw_LineMod_Modality(&self) -> *const c_void { self.inner_as_raw() } } impl crate::rgbd::LineMod_ModalityTrait for core::Ptr { #[inline] fn as_raw_mut_LineMod_Modality(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_linemod_ColorGradientG_to_PtrOfLineMod_Modality } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfLineMod_ColorGradient") .field("weak_threshold", &crate::rgbd::LineMod_ColorGradientTraitConst::weak_threshold(self)) .field("num_features", &crate::rgbd::LineMod_ColorGradientTraitConst::num_features(self)) .field("strong_threshold", &crate::rgbd::LineMod_ColorGradientTraitConst::strong_threshold(self)) .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfLineMod_DepthNormal = core::Ptr; ptr_extern! { crate::rgbd::LineMod_DepthNormal, cv_PtrLcv_linemod_DepthNormalG_new_null_const, cv_PtrLcv_linemod_DepthNormalG_delete, cv_PtrLcv_linemod_DepthNormalG_getInnerPtr_const, cv_PtrLcv_linemod_DepthNormalG_getInnerPtrMut } ptr_extern_ctor! { crate::rgbd::LineMod_DepthNormal, cv_PtrLcv_linemod_DepthNormalG_new_const_DepthNormal } impl core::Ptr { #[inline] pub fn as_raw_PtrOfLineMod_DepthNormal(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfLineMod_DepthNormal(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::rgbd::LineMod_DepthNormalTraitConst for core::Ptr { #[inline] fn as_raw_LineMod_DepthNormal(&self) -> *const c_void { self.inner_as_raw() } } impl crate::rgbd::LineMod_DepthNormalTrait for core::Ptr { #[inline] fn as_raw_mut_LineMod_DepthNormal(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl crate::rgbd::LineMod_ModalityTraitConst for core::Ptr { #[inline] fn as_raw_LineMod_Modality(&self) -> *const c_void { self.inner_as_raw() } } impl crate::rgbd::LineMod_ModalityTrait for core::Ptr { #[inline] fn as_raw_mut_LineMod_Modality(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_linemod_DepthNormalG_to_PtrOfLineMod_Modality } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfLineMod_DepthNormal") .field("distance_threshold", &crate::rgbd::LineMod_DepthNormalTraitConst::distance_threshold(self)) .field("difference_threshold", &crate::rgbd::LineMod_DepthNormalTraitConst::difference_threshold(self)) .field("num_features", &crate::rgbd::LineMod_DepthNormalTraitConst::num_features(self)) .field("extract_threshold", &crate::rgbd::LineMod_DepthNormalTraitConst::extract_threshold(self)) .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfLineMod_Detector = core::Ptr; ptr_extern! { crate::rgbd::LineMod_Detector, cv_PtrLcv_linemod_DetectorG_new_null_const, cv_PtrLcv_linemod_DetectorG_delete, cv_PtrLcv_linemod_DetectorG_getInnerPtr_const, cv_PtrLcv_linemod_DetectorG_getInnerPtrMut } ptr_extern_ctor! { crate::rgbd::LineMod_Detector, cv_PtrLcv_linemod_DetectorG_new_const_Detector } impl core::Ptr { #[inline] pub fn as_raw_PtrOfLineMod_Detector(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfLineMod_Detector(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::rgbd::LineMod_DetectorTraitConst for core::Ptr { #[inline] fn as_raw_LineMod_Detector(&self) -> *const c_void { self.inner_as_raw() } } impl crate::rgbd::LineMod_DetectorTrait for core::Ptr { #[inline] fn as_raw_mut_LineMod_Detector(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfLineMod_Detector") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfLineMod_Modality = core::Ptr; ptr_extern! { crate::rgbd::LineMod_Modality, cv_PtrLcv_linemod_ModalityG_new_null_const, cv_PtrLcv_linemod_ModalityG_delete, cv_PtrLcv_linemod_ModalityG_getInnerPtr_const, cv_PtrLcv_linemod_ModalityG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfLineMod_Modality(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfLineMod_Modality(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::rgbd::LineMod_ModalityTraitConst for core::Ptr { #[inline] fn as_raw_LineMod_Modality(&self) -> *const c_void { self.inner_as_raw() } } impl crate::rgbd::LineMod_ModalityTrait for core::Ptr { #[inline] fn as_raw_mut_LineMod_Modality(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfLineMod_Modality") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfLineMod_QuantizedPyramid = core::Ptr; ptr_extern! { crate::rgbd::LineMod_QuantizedPyramid, cv_PtrLcv_linemod_QuantizedPyramidG_new_null_const, cv_PtrLcv_linemod_QuantizedPyramidG_delete, cv_PtrLcv_linemod_QuantizedPyramidG_getInnerPtr_const, cv_PtrLcv_linemod_QuantizedPyramidG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfLineMod_QuantizedPyramid(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfLineMod_QuantizedPyramid(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::rgbd::LineMod_QuantizedPyramidTraitConst for core::Ptr { #[inline] fn as_raw_LineMod_QuantizedPyramid(&self) -> *const c_void { self.inner_as_raw() } } impl crate::rgbd::LineMod_QuantizedPyramidTrait for core::Ptr { #[inline] fn as_raw_mut_LineMod_QuantizedPyramid(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfLineMod_QuantizedPyramid") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfOdometry = core::Ptr; ptr_extern! { crate::rgbd::Odometry, cv_PtrLcv_rgbd_OdometryG_new_null_const, cv_PtrLcv_rgbd_OdometryG_delete, cv_PtrLcv_rgbd_OdometryG_getInnerPtr_const, cv_PtrLcv_rgbd_OdometryG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfOdometry(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfOdometry(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::rgbd::OdometryTraitConst for core::Ptr { #[inline] fn as_raw_Odometry(&self) -> *const c_void { self.inner_as_raw() } } impl crate::rgbd::OdometryTrait for core::Ptr { #[inline] fn as_raw_mut_Odometry(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_rgbd_OdometryG_to_PtrOfAlgorithm } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfOdometry") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfOdometryFrame = core::Ptr; ptr_extern! { crate::rgbd::OdometryFrame, cv_PtrLcv_rgbd_OdometryFrameG_new_null_const, cv_PtrLcv_rgbd_OdometryFrameG_delete, cv_PtrLcv_rgbd_OdometryFrameG_getInnerPtr_const, cv_PtrLcv_rgbd_OdometryFrameG_getInnerPtrMut } ptr_extern_ctor! { crate::rgbd::OdometryFrame, cv_PtrLcv_rgbd_OdometryFrameG_new_const_OdometryFrame } impl core::Ptr { #[inline] pub fn as_raw_PtrOfOdometryFrame(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfOdometryFrame(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::rgbd::OdometryFrameTraitConst for core::Ptr { #[inline] fn as_raw_OdometryFrame(&self) -> *const c_void { self.inner_as_raw() } } impl crate::rgbd::OdometryFrameTrait for core::Ptr { #[inline] fn as_raw_mut_OdometryFrame(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl crate::rgbd::RgbdFrameTraitConst for core::Ptr { #[inline] fn as_raw_RgbdFrame(&self) -> *const c_void { self.inner_as_raw() } } impl crate::rgbd::RgbdFrameTrait for core::Ptr { #[inline] fn as_raw_mut_RgbdFrame(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_rgbd_OdometryFrameG_to_PtrOfRgbdFrame } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfOdometryFrame") .field("pyramid_image", &crate::rgbd::OdometryFrameTraitConst::pyramid_image(self)) .field("pyramid_depth", &crate::rgbd::OdometryFrameTraitConst::pyramid_depth(self)) .field("pyramid_mask", &crate::rgbd::OdometryFrameTraitConst::pyramid_mask(self)) .field("pyramid_cloud", &crate::rgbd::OdometryFrameTraitConst::pyramid_cloud(self)) .field("pyramid_d_i_dx", &crate::rgbd::OdometryFrameTraitConst::pyramid_d_i_dx(self)) .field("pyramid_d_i_dy", &crate::rgbd::OdometryFrameTraitConst::pyramid_d_i_dy(self)) .field("pyramid_textured_mask", &crate::rgbd::OdometryFrameTraitConst::pyramid_textured_mask(self)) .field("pyramid_normals", &crate::rgbd::OdometryFrameTraitConst::pyramid_normals(self)) .field("pyramid_normals_mask", &crate::rgbd::OdometryFrameTraitConst::pyramid_normals_mask(self)) .field("id", &crate::rgbd::RgbdFrameTraitConst::id(self)) .field("image", &crate::rgbd::RgbdFrameTraitConst::image(self)) .field("depth", &crate::rgbd::RgbdFrameTraitConst::depth(self)) .field("mask", &crate::rgbd::RgbdFrameTraitConst::mask(self)) .field("normals", &crate::rgbd::RgbdFrameTraitConst::normals(self)) .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfParams = core::Ptr; ptr_extern! { crate::rgbd::Params, cv_PtrLcv_large_kinfu_ParamsG_new_null_const, cv_PtrLcv_large_kinfu_ParamsG_delete, cv_PtrLcv_large_kinfu_ParamsG_getInnerPtr_const, cv_PtrLcv_large_kinfu_ParamsG_getInnerPtrMut } ptr_extern_ctor! { crate::rgbd::Params, cv_PtrLcv_large_kinfu_ParamsG_new_const_Params } impl core::Ptr { #[inline] pub fn as_raw_PtrOfParams(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfParams(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::rgbd::ParamsTraitConst for core::Ptr { #[inline] fn as_raw_Params(&self) -> *const c_void { self.inner_as_raw() } } impl crate::rgbd::ParamsTrait for core::Ptr { #[inline] fn as_raw_mut_Params(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfParams") .field("frame_size", &crate::rgbd::ParamsTraitConst::frame_size(self)) .field("intr", &crate::rgbd::ParamsTraitConst::intr(self)) .field("rgb_intr", &crate::rgbd::ParamsTraitConst::rgb_intr(self)) .field("depth_factor", &crate::rgbd::ParamsTraitConst::depth_factor(self)) .field("bilateral_sigma_depth", &crate::rgbd::ParamsTraitConst::bilateral_sigma_depth(self)) .field("bilateral_sigma_spatial", &crate::rgbd::ParamsTraitConst::bilateral_sigma_spatial(self)) .field("bilateral_kernel_size", &crate::rgbd::ParamsTraitConst::bilateral_kernel_size(self)) .field("pyramid_levels", &crate::rgbd::ParamsTraitConst::pyramid_levels(self)) .field("tsdf_min_camera_movement", &crate::rgbd::ParamsTraitConst::tsdf_min_camera_movement(self)) .field("light_pose", &crate::rgbd::ParamsTraitConst::light_pose(self)) .field("icp_dist_thresh", &crate::rgbd::ParamsTraitConst::icp_dist_thresh(self)) .field("icp_angle_thresh", &crate::rgbd::ParamsTraitConst::icp_angle_thresh(self)) .field("icp_iterations", &crate::rgbd::ParamsTraitConst::icp_iterations(self)) .field("truncate_threshold", &crate::rgbd::ParamsTraitConst::truncate_threshold(self)) .field("volume_params", &crate::rgbd::ParamsTraitConst::volume_params(self)) .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfRgbdFrame = core::Ptr; ptr_extern! { crate::rgbd::RgbdFrame, cv_PtrLcv_rgbd_RgbdFrameG_new_null_const, cv_PtrLcv_rgbd_RgbdFrameG_delete, cv_PtrLcv_rgbd_RgbdFrameG_getInnerPtr_const, cv_PtrLcv_rgbd_RgbdFrameG_getInnerPtrMut } ptr_extern_ctor! { crate::rgbd::RgbdFrame, cv_PtrLcv_rgbd_RgbdFrameG_new_const_RgbdFrame } impl core::Ptr { #[inline] pub fn as_raw_PtrOfRgbdFrame(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfRgbdFrame(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::rgbd::RgbdFrameTraitConst for core::Ptr { #[inline] fn as_raw_RgbdFrame(&self) -> *const c_void { self.inner_as_raw() } } impl crate::rgbd::RgbdFrameTrait for core::Ptr { #[inline] fn as_raw_mut_RgbdFrame(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfRgbdFrame") .field("id", &crate::rgbd::RgbdFrameTraitConst::id(self)) .field("image", &crate::rgbd::RgbdFrameTraitConst::image(self)) .field("depth", &crate::rgbd::RgbdFrameTraitConst::depth(self)) .field("mask", &crate::rgbd::RgbdFrameTraitConst::mask(self)) .field("normals", &crate::rgbd::RgbdFrameTraitConst::normals(self)) .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfRgbdICPOdometry = core::Ptr; ptr_extern! { crate::rgbd::RgbdICPOdometry, cv_PtrLcv_rgbd_RgbdICPOdometryG_new_null_const, cv_PtrLcv_rgbd_RgbdICPOdometryG_delete, cv_PtrLcv_rgbd_RgbdICPOdometryG_getInnerPtr_const, cv_PtrLcv_rgbd_RgbdICPOdometryG_getInnerPtrMut } ptr_extern_ctor! { crate::rgbd::RgbdICPOdometry, cv_PtrLcv_rgbd_RgbdICPOdometryG_new_const_RgbdICPOdometry } impl core::Ptr { #[inline] pub fn as_raw_PtrOfRgbdICPOdometry(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfRgbdICPOdometry(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::rgbd::RgbdICPOdometryTraitConst for core::Ptr { #[inline] fn as_raw_RgbdICPOdometry(&self) -> *const c_void { self.inner_as_raw() } } impl crate::rgbd::RgbdICPOdometryTrait for core::Ptr { #[inline] fn as_raw_mut_RgbdICPOdometry(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_rgbd_RgbdICPOdometryG_to_PtrOfAlgorithm } impl crate::rgbd::OdometryTraitConst for core::Ptr { #[inline] fn as_raw_Odometry(&self) -> *const c_void { self.inner_as_raw() } } impl crate::rgbd::OdometryTrait for core::Ptr { #[inline] fn as_raw_mut_Odometry(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_rgbd_RgbdICPOdometryG_to_PtrOfOdometry } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfRgbdICPOdometry") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfRgbdNormals = core::Ptr; ptr_extern! { crate::rgbd::RgbdNormals, cv_PtrLcv_rgbd_RgbdNormalsG_new_null_const, cv_PtrLcv_rgbd_RgbdNormalsG_delete, cv_PtrLcv_rgbd_RgbdNormalsG_getInnerPtr_const, cv_PtrLcv_rgbd_RgbdNormalsG_getInnerPtrMut } ptr_extern_ctor! { crate::rgbd::RgbdNormals, cv_PtrLcv_rgbd_RgbdNormalsG_new_const_RgbdNormals } impl core::Ptr { #[inline] pub fn as_raw_PtrOfRgbdNormals(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfRgbdNormals(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::rgbd::RgbdNormalsTraitConst for core::Ptr { #[inline] fn as_raw_RgbdNormals(&self) -> *const c_void { self.inner_as_raw() } } impl crate::rgbd::RgbdNormalsTrait for core::Ptr { #[inline] fn as_raw_mut_RgbdNormals(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_rgbd_RgbdNormalsG_to_PtrOfAlgorithm } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfRgbdNormals") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfRgbdOdometry = core::Ptr; ptr_extern! { crate::rgbd::RgbdOdometry, cv_PtrLcv_rgbd_RgbdOdometryG_new_null_const, cv_PtrLcv_rgbd_RgbdOdometryG_delete, cv_PtrLcv_rgbd_RgbdOdometryG_getInnerPtr_const, cv_PtrLcv_rgbd_RgbdOdometryG_getInnerPtrMut } ptr_extern_ctor! { crate::rgbd::RgbdOdometry, cv_PtrLcv_rgbd_RgbdOdometryG_new_const_RgbdOdometry } impl core::Ptr { #[inline] pub fn as_raw_PtrOfRgbdOdometry(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfRgbdOdometry(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::rgbd::RgbdOdometryTraitConst for core::Ptr { #[inline] fn as_raw_RgbdOdometry(&self) -> *const c_void { self.inner_as_raw() } } impl crate::rgbd::RgbdOdometryTrait for core::Ptr { #[inline] fn as_raw_mut_RgbdOdometry(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_rgbd_RgbdOdometryG_to_PtrOfAlgorithm } impl crate::rgbd::OdometryTraitConst for core::Ptr { #[inline] fn as_raw_Odometry(&self) -> *const c_void { self.inner_as_raw() } } impl crate::rgbd::OdometryTrait for core::Ptr { #[inline] fn as_raw_mut_Odometry(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_rgbd_RgbdOdometryG_to_PtrOfOdometry } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfRgbdOdometry") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfRgbdPlane = core::Ptr; ptr_extern! { crate::rgbd::RgbdPlane, cv_PtrLcv_rgbd_RgbdPlaneG_new_null_const, cv_PtrLcv_rgbd_RgbdPlaneG_delete, cv_PtrLcv_rgbd_RgbdPlaneG_getInnerPtr_const, cv_PtrLcv_rgbd_RgbdPlaneG_getInnerPtrMut } ptr_extern_ctor! { crate::rgbd::RgbdPlane, cv_PtrLcv_rgbd_RgbdPlaneG_new_const_RgbdPlane } impl core::Ptr { #[inline] pub fn as_raw_PtrOfRgbdPlane(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfRgbdPlane(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::rgbd::RgbdPlaneTraitConst for core::Ptr { #[inline] fn as_raw_RgbdPlane(&self) -> *const c_void { self.inner_as_raw() } } impl crate::rgbd::RgbdPlaneTrait for core::Ptr { #[inline] fn as_raw_mut_RgbdPlane(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_rgbd_RgbdPlaneG_to_PtrOfAlgorithm } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfRgbdPlane") .finish() } } #[deprecated = "Use the the non-alias form `core::Vector` instead, removal in Nov 2024"] pub type VectorOfLineMod_Feature = core::Vector; impl core::Vector { pub fn as_raw_VectorOfLineMod_Feature(&self) -> extern_send!(Self) { self.as_raw() } pub fn as_raw_mut_VectorOfLineMod_Feature(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } vector_extern! { crate::rgbd::LineMod_Feature, std_vectorLcv_linemod_FeatureG_new_const, std_vectorLcv_linemod_FeatureG_delete, std_vectorLcv_linemod_FeatureG_len_const, std_vectorLcv_linemod_FeatureG_isEmpty_const, std_vectorLcv_linemod_FeatureG_capacity_const, std_vectorLcv_linemod_FeatureG_shrinkToFit, std_vectorLcv_linemod_FeatureG_reserve_size_t, std_vectorLcv_linemod_FeatureG_remove_size_t, std_vectorLcv_linemod_FeatureG_swap_size_t_size_t, std_vectorLcv_linemod_FeatureG_clear, std_vectorLcv_linemod_FeatureG_get_const_size_t, std_vectorLcv_linemod_FeatureG_set_size_t_const_Feature, std_vectorLcv_linemod_FeatureG_push_const_Feature, std_vectorLcv_linemod_FeatureG_insert_size_t_const_Feature, } vector_copy_non_bool! { crate::rgbd::LineMod_Feature, std_vectorLcv_linemod_FeatureG_data_const, std_vectorLcv_linemod_FeatureG_dataMut, cv_fromSlice_const_const_FeatureX_size_t, std_vectorLcv_linemod_FeatureG_clone_const, } #[deprecated = "Use the the non-alias form `core::Vector` instead, removal in Nov 2024"] pub type VectorOfLineMod_Match = core::Vector; impl core::Vector { pub fn as_raw_VectorOfLineMod_Match(&self) -> extern_send!(Self) { self.as_raw() } pub fn as_raw_mut_VectorOfLineMod_Match(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } vector_extern! { crate::rgbd::LineMod_Match, std_vectorLcv_linemod_MatchG_new_const, std_vectorLcv_linemod_MatchG_delete, std_vectorLcv_linemod_MatchG_len_const, std_vectorLcv_linemod_MatchG_isEmpty_const, std_vectorLcv_linemod_MatchG_capacity_const, std_vectorLcv_linemod_MatchG_shrinkToFit, std_vectorLcv_linemod_MatchG_reserve_size_t, std_vectorLcv_linemod_MatchG_remove_size_t, std_vectorLcv_linemod_MatchG_swap_size_t_size_t, std_vectorLcv_linemod_MatchG_clear, std_vectorLcv_linemod_MatchG_get_const_size_t, std_vectorLcv_linemod_MatchG_set_size_t_const_Match, std_vectorLcv_linemod_MatchG_push_const_Match, std_vectorLcv_linemod_MatchG_insert_size_t_const_Match, } vector_non_copy_or_bool! { clone crate::rgbd::LineMod_Match } vector_boxed_ref! { crate::rgbd::LineMod_Match } vector_extern! { BoxedRef<'t, crate::rgbd::LineMod_Match>, std_vectorLcv_linemod_MatchG_new_const, std_vectorLcv_linemod_MatchG_delete, std_vectorLcv_linemod_MatchG_len_const, std_vectorLcv_linemod_MatchG_isEmpty_const, std_vectorLcv_linemod_MatchG_capacity_const, std_vectorLcv_linemod_MatchG_shrinkToFit, std_vectorLcv_linemod_MatchG_reserve_size_t, std_vectorLcv_linemod_MatchG_remove_size_t, std_vectorLcv_linemod_MatchG_swap_size_t_size_t, std_vectorLcv_linemod_MatchG_clear, std_vectorLcv_linemod_MatchG_get_const_size_t, std_vectorLcv_linemod_MatchG_set_size_t_const_Match, std_vectorLcv_linemod_MatchG_push_const_Match, std_vectorLcv_linemod_MatchG_insert_size_t_const_Match, } #[deprecated = "Use the the non-alias form `core::Vector` instead, removal in Nov 2024"] pub type VectorOfLineMod_Template = core::Vector; impl core::Vector { pub fn as_raw_VectorOfLineMod_Template(&self) -> extern_send!(Self) { self.as_raw() } pub fn as_raw_mut_VectorOfLineMod_Template(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } vector_extern! { crate::rgbd::LineMod_Template, std_vectorLcv_linemod_TemplateG_new_const, std_vectorLcv_linemod_TemplateG_delete, std_vectorLcv_linemod_TemplateG_len_const, std_vectorLcv_linemod_TemplateG_isEmpty_const, std_vectorLcv_linemod_TemplateG_capacity_const, std_vectorLcv_linemod_TemplateG_shrinkToFit, std_vectorLcv_linemod_TemplateG_reserve_size_t, std_vectorLcv_linemod_TemplateG_remove_size_t, std_vectorLcv_linemod_TemplateG_swap_size_t_size_t, std_vectorLcv_linemod_TemplateG_clear, std_vectorLcv_linemod_TemplateG_get_const_size_t, std_vectorLcv_linemod_TemplateG_set_size_t_const_Template, std_vectorLcv_linemod_TemplateG_push_const_Template, std_vectorLcv_linemod_TemplateG_insert_size_t_const_Template, } vector_non_copy_or_bool! { clone crate::rgbd::LineMod_Template } vector_boxed_ref! { crate::rgbd::LineMod_Template } vector_extern! { BoxedRef<'t, crate::rgbd::LineMod_Template>, std_vectorLcv_linemod_TemplateG_new_const, std_vectorLcv_linemod_TemplateG_delete, std_vectorLcv_linemod_TemplateG_len_const, std_vectorLcv_linemod_TemplateG_isEmpty_const, std_vectorLcv_linemod_TemplateG_capacity_const, std_vectorLcv_linemod_TemplateG_shrinkToFit, std_vectorLcv_linemod_TemplateG_reserve_size_t, std_vectorLcv_linemod_TemplateG_remove_size_t, std_vectorLcv_linemod_TemplateG_swap_size_t_size_t, std_vectorLcv_linemod_TemplateG_clear, std_vectorLcv_linemod_TemplateG_get_const_size_t, std_vectorLcv_linemod_TemplateG_set_size_t_const_Template, std_vectorLcv_linemod_TemplateG_push_const_Template, std_vectorLcv_linemod_TemplateG_insert_size_t_const_Template, } #[deprecated = "Use the the non-alias form `core::Vector>` instead, removal in Nov 2024"] pub type VectorOfPtrOfLineMod_Modality = core::Vector>; impl core::Vector> { pub fn as_raw_VectorOfPtrOfLineMod_Modality(&self) -> extern_send!(Self) { self.as_raw() } pub fn as_raw_mut_VectorOfPtrOfLineMod_Modality(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } vector_extern! { core::Ptr, std_vectorLcv_PtrLcv_linemod_ModalityGG_new_const, std_vectorLcv_PtrLcv_linemod_ModalityGG_delete, std_vectorLcv_PtrLcv_linemod_ModalityGG_len_const, std_vectorLcv_PtrLcv_linemod_ModalityGG_isEmpty_const, std_vectorLcv_PtrLcv_linemod_ModalityGG_capacity_const, std_vectorLcv_PtrLcv_linemod_ModalityGG_shrinkToFit, std_vectorLcv_PtrLcv_linemod_ModalityGG_reserve_size_t, std_vectorLcv_PtrLcv_linemod_ModalityGG_remove_size_t, std_vectorLcv_PtrLcv_linemod_ModalityGG_swap_size_t_size_t, std_vectorLcv_PtrLcv_linemod_ModalityGG_clear, std_vectorLcv_PtrLcv_linemod_ModalityGG_get_const_size_t, std_vectorLcv_PtrLcv_linemod_ModalityGG_set_size_t_const_PtrLModalityG, std_vectorLcv_PtrLcv_linemod_ModalityGG_push_const_PtrLModalityG, std_vectorLcv_PtrLcv_linemod_ModalityGG_insert_size_t_const_PtrLModalityG, } vector_non_copy_or_bool! { core::Ptr } } #[cfg(ocvrs_has_module_rgbd)] pub use rgbd_types::*; #[cfg(ocvrs_has_module_saliency)] mod saliency_types { use crate::{mod_prelude::*, core, types, sys}; #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfMotionSaliency = core::Ptr; ptr_extern! { crate::saliency::MotionSaliency, cv_PtrLcv_saliency_MotionSaliencyG_new_null_const, cv_PtrLcv_saliency_MotionSaliencyG_delete, cv_PtrLcv_saliency_MotionSaliencyG_getInnerPtr_const, cv_PtrLcv_saliency_MotionSaliencyG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfMotionSaliency(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfMotionSaliency(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::saliency::MotionSaliencyTraitConst for core::Ptr { #[inline] fn as_raw_MotionSaliency(&self) -> *const c_void { self.inner_as_raw() } } impl crate::saliency::MotionSaliencyTrait for core::Ptr { #[inline] fn as_raw_mut_MotionSaliency(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_saliency_MotionSaliencyG_to_PtrOfAlgorithm } impl crate::saliency::SaliencyTraitConst for core::Ptr { #[inline] fn as_raw_Saliency(&self) -> *const c_void { self.inner_as_raw() } } impl crate::saliency::SaliencyTrait for core::Ptr { #[inline] fn as_raw_mut_Saliency(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_saliency_MotionSaliencyG_to_PtrOfSaliency } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfMotionSaliency") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfMotionSaliencyBinWangApr2014 = core::Ptr; ptr_extern! { crate::saliency::MotionSaliencyBinWangApr2014, cv_PtrLcv_saliency_MotionSaliencyBinWangApr2014G_new_null_const, cv_PtrLcv_saliency_MotionSaliencyBinWangApr2014G_delete, cv_PtrLcv_saliency_MotionSaliencyBinWangApr2014G_getInnerPtr_const, cv_PtrLcv_saliency_MotionSaliencyBinWangApr2014G_getInnerPtrMut } ptr_extern_ctor! { crate::saliency::MotionSaliencyBinWangApr2014, cv_PtrLcv_saliency_MotionSaliencyBinWangApr2014G_new_const_MotionSaliencyBinWangApr2014 } impl core::Ptr { #[inline] pub fn as_raw_PtrOfMotionSaliencyBinWangApr2014(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfMotionSaliencyBinWangApr2014(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::saliency::MotionSaliencyBinWangApr2014TraitConst for core::Ptr { #[inline] fn as_raw_MotionSaliencyBinWangApr2014(&self) -> *const c_void { self.inner_as_raw() } } impl crate::saliency::MotionSaliencyBinWangApr2014Trait for core::Ptr { #[inline] fn as_raw_mut_MotionSaliencyBinWangApr2014(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_saliency_MotionSaliencyBinWangApr2014G_to_PtrOfAlgorithm } impl crate::saliency::MotionSaliencyTraitConst for core::Ptr { #[inline] fn as_raw_MotionSaliency(&self) -> *const c_void { self.inner_as_raw() } } impl crate::saliency::MotionSaliencyTrait for core::Ptr { #[inline] fn as_raw_mut_MotionSaliency(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_saliency_MotionSaliencyBinWangApr2014G_to_PtrOfMotionSaliency } impl crate::saliency::SaliencyTraitConst for core::Ptr { #[inline] fn as_raw_Saliency(&self) -> *const c_void { self.inner_as_raw() } } impl crate::saliency::SaliencyTrait for core::Ptr { #[inline] fn as_raw_mut_Saliency(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_saliency_MotionSaliencyBinWangApr2014G_to_PtrOfSaliency } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfMotionSaliencyBinWangApr2014") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfObjectness = core::Ptr; ptr_extern! { crate::saliency::Objectness, cv_PtrLcv_saliency_ObjectnessG_new_null_const, cv_PtrLcv_saliency_ObjectnessG_delete, cv_PtrLcv_saliency_ObjectnessG_getInnerPtr_const, cv_PtrLcv_saliency_ObjectnessG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfObjectness(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfObjectness(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::saliency::ObjectnessTraitConst for core::Ptr { #[inline] fn as_raw_Objectness(&self) -> *const c_void { self.inner_as_raw() } } impl crate::saliency::ObjectnessTrait for core::Ptr { #[inline] fn as_raw_mut_Objectness(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_saliency_ObjectnessG_to_PtrOfAlgorithm } impl crate::saliency::SaliencyTraitConst for core::Ptr { #[inline] fn as_raw_Saliency(&self) -> *const c_void { self.inner_as_raw() } } impl crate::saliency::SaliencyTrait for core::Ptr { #[inline] fn as_raw_mut_Saliency(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_saliency_ObjectnessG_to_PtrOfSaliency } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfObjectness") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfObjectnessBING = core::Ptr; ptr_extern! { crate::saliency::ObjectnessBING, cv_PtrLcv_saliency_ObjectnessBINGG_new_null_const, cv_PtrLcv_saliency_ObjectnessBINGG_delete, cv_PtrLcv_saliency_ObjectnessBINGG_getInnerPtr_const, cv_PtrLcv_saliency_ObjectnessBINGG_getInnerPtrMut } ptr_extern_ctor! { crate::saliency::ObjectnessBING, cv_PtrLcv_saliency_ObjectnessBINGG_new_const_ObjectnessBING } impl core::Ptr { #[inline] pub fn as_raw_PtrOfObjectnessBING(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfObjectnessBING(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::saliency::ObjectnessBINGTraitConst for core::Ptr { #[inline] fn as_raw_ObjectnessBING(&self) -> *const c_void { self.inner_as_raw() } } impl crate::saliency::ObjectnessBINGTrait for core::Ptr { #[inline] fn as_raw_mut_ObjectnessBING(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_saliency_ObjectnessBINGG_to_PtrOfAlgorithm } impl crate::saliency::ObjectnessTraitConst for core::Ptr { #[inline] fn as_raw_Objectness(&self) -> *const c_void { self.inner_as_raw() } } impl crate::saliency::ObjectnessTrait for core::Ptr { #[inline] fn as_raw_mut_Objectness(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_saliency_ObjectnessBINGG_to_PtrOfObjectness } impl crate::saliency::SaliencyTraitConst for core::Ptr { #[inline] fn as_raw_Saliency(&self) -> *const c_void { self.inner_as_raw() } } impl crate::saliency::SaliencyTrait for core::Ptr { #[inline] fn as_raw_mut_Saliency(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_saliency_ObjectnessBINGG_to_PtrOfSaliency } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfObjectnessBING") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfSaliency = core::Ptr; ptr_extern! { crate::saliency::Saliency, cv_PtrLcv_saliency_SaliencyG_new_null_const, cv_PtrLcv_saliency_SaliencyG_delete, cv_PtrLcv_saliency_SaliencyG_getInnerPtr_const, cv_PtrLcv_saliency_SaliencyG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfSaliency(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfSaliency(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::saliency::SaliencyTraitConst for core::Ptr { #[inline] fn as_raw_Saliency(&self) -> *const c_void { self.inner_as_raw() } } impl crate::saliency::SaliencyTrait for core::Ptr { #[inline] fn as_raw_mut_Saliency(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_saliency_SaliencyG_to_PtrOfAlgorithm } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfSaliency") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfStaticSaliency = core::Ptr; ptr_extern! { crate::saliency::StaticSaliency, cv_PtrLcv_saliency_StaticSaliencyG_new_null_const, cv_PtrLcv_saliency_StaticSaliencyG_delete, cv_PtrLcv_saliency_StaticSaliencyG_getInnerPtr_const, cv_PtrLcv_saliency_StaticSaliencyG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfStaticSaliency(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfStaticSaliency(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::saliency::StaticSaliencyTraitConst for core::Ptr { #[inline] fn as_raw_StaticSaliency(&self) -> *const c_void { self.inner_as_raw() } } impl crate::saliency::StaticSaliencyTrait for core::Ptr { #[inline] fn as_raw_mut_StaticSaliency(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_saliency_StaticSaliencyG_to_PtrOfAlgorithm } impl crate::saliency::SaliencyTraitConst for core::Ptr { #[inline] fn as_raw_Saliency(&self) -> *const c_void { self.inner_as_raw() } } impl crate::saliency::SaliencyTrait for core::Ptr { #[inline] fn as_raw_mut_Saliency(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_saliency_StaticSaliencyG_to_PtrOfSaliency } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfStaticSaliency") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfStaticSaliencyFineGrained = core::Ptr; ptr_extern! { crate::saliency::StaticSaliencyFineGrained, cv_PtrLcv_saliency_StaticSaliencyFineGrainedG_new_null_const, cv_PtrLcv_saliency_StaticSaliencyFineGrainedG_delete, cv_PtrLcv_saliency_StaticSaliencyFineGrainedG_getInnerPtr_const, cv_PtrLcv_saliency_StaticSaliencyFineGrainedG_getInnerPtrMut } ptr_extern_ctor! { crate::saliency::StaticSaliencyFineGrained, cv_PtrLcv_saliency_StaticSaliencyFineGrainedG_new_const_StaticSaliencyFineGrained } impl core::Ptr { #[inline] pub fn as_raw_PtrOfStaticSaliencyFineGrained(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfStaticSaliencyFineGrained(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::saliency::StaticSaliencyFineGrainedTraitConst for core::Ptr { #[inline] fn as_raw_StaticSaliencyFineGrained(&self) -> *const c_void { self.inner_as_raw() } } impl crate::saliency::StaticSaliencyFineGrainedTrait for core::Ptr { #[inline] fn as_raw_mut_StaticSaliencyFineGrained(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_saliency_StaticSaliencyFineGrainedG_to_PtrOfAlgorithm } impl crate::saliency::SaliencyTraitConst for core::Ptr { #[inline] fn as_raw_Saliency(&self) -> *const c_void { self.inner_as_raw() } } impl crate::saliency::SaliencyTrait for core::Ptr { #[inline] fn as_raw_mut_Saliency(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_saliency_StaticSaliencyFineGrainedG_to_PtrOfSaliency } impl crate::saliency::StaticSaliencyTraitConst for core::Ptr { #[inline] fn as_raw_StaticSaliency(&self) -> *const c_void { self.inner_as_raw() } } impl crate::saliency::StaticSaliencyTrait for core::Ptr { #[inline] fn as_raw_mut_StaticSaliency(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_saliency_StaticSaliencyFineGrainedG_to_PtrOfStaticSaliency } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfStaticSaliencyFineGrained") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfStaticSaliencySpectralResidual = core::Ptr; ptr_extern! { crate::saliency::StaticSaliencySpectralResidual, cv_PtrLcv_saliency_StaticSaliencySpectralResidualG_new_null_const, cv_PtrLcv_saliency_StaticSaliencySpectralResidualG_delete, cv_PtrLcv_saliency_StaticSaliencySpectralResidualG_getInnerPtr_const, cv_PtrLcv_saliency_StaticSaliencySpectralResidualG_getInnerPtrMut } ptr_extern_ctor! { crate::saliency::StaticSaliencySpectralResidual, cv_PtrLcv_saliency_StaticSaliencySpectralResidualG_new_const_StaticSaliencySpectralResidual } impl core::Ptr { #[inline] pub fn as_raw_PtrOfStaticSaliencySpectralResidual(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfStaticSaliencySpectralResidual(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::saliency::StaticSaliencySpectralResidualTraitConst for core::Ptr { #[inline] fn as_raw_StaticSaliencySpectralResidual(&self) -> *const c_void { self.inner_as_raw() } } impl crate::saliency::StaticSaliencySpectralResidualTrait for core::Ptr { #[inline] fn as_raw_mut_StaticSaliencySpectralResidual(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_saliency_StaticSaliencySpectralResidualG_to_PtrOfAlgorithm } impl crate::saliency::SaliencyTraitConst for core::Ptr { #[inline] fn as_raw_Saliency(&self) -> *const c_void { self.inner_as_raw() } } impl crate::saliency::SaliencyTrait for core::Ptr { #[inline] fn as_raw_mut_Saliency(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_saliency_StaticSaliencySpectralResidualG_to_PtrOfSaliency } impl crate::saliency::StaticSaliencyTraitConst for core::Ptr { #[inline] fn as_raw_StaticSaliency(&self) -> *const c_void { self.inner_as_raw() } } impl crate::saliency::StaticSaliencyTrait for core::Ptr { #[inline] fn as_raw_mut_StaticSaliency(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_saliency_StaticSaliencySpectralResidualG_to_PtrOfStaticSaliency } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfStaticSaliencySpectralResidual") .finish() } } } #[cfg(ocvrs_has_module_saliency)] pub use saliency_types::*; #[cfg(ocvrs_has_module_sfm)] mod sfm_types { use crate::{mod_prelude::*, core, types, sys}; #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfBaseSFM = core::Ptr; ptr_extern! { crate::sfm::BaseSFM, cv_PtrLcv_sfm_BaseSFMG_new_null_const, cv_PtrLcv_sfm_BaseSFMG_delete, cv_PtrLcv_sfm_BaseSFMG_getInnerPtr_const, cv_PtrLcv_sfm_BaseSFMG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfBaseSFM(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfBaseSFM(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::sfm::BaseSFMTraitConst for core::Ptr { #[inline] fn as_raw_BaseSFM(&self) -> *const c_void { self.inner_as_raw() } } impl crate::sfm::BaseSFMTrait for core::Ptr { #[inline] fn as_raw_mut_BaseSFM(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfBaseSFM") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfSFMLibmvEuclideanReconstruction = core::Ptr; ptr_extern! { crate::sfm::SFMLibmvEuclideanReconstruction, cv_PtrLcv_sfm_SFMLibmvEuclideanReconstructionG_new_null_const, cv_PtrLcv_sfm_SFMLibmvEuclideanReconstructionG_delete, cv_PtrLcv_sfm_SFMLibmvEuclideanReconstructionG_getInnerPtr_const, cv_PtrLcv_sfm_SFMLibmvEuclideanReconstructionG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfSFMLibmvEuclideanReconstruction(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfSFMLibmvEuclideanReconstruction(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::sfm::SFMLibmvEuclideanReconstructionTraitConst for core::Ptr { #[inline] fn as_raw_SFMLibmvEuclideanReconstruction(&self) -> *const c_void { self.inner_as_raw() } } impl crate::sfm::SFMLibmvEuclideanReconstructionTrait for core::Ptr { #[inline] fn as_raw_mut_SFMLibmvEuclideanReconstruction(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl crate::sfm::BaseSFMTraitConst for core::Ptr { #[inline] fn as_raw_BaseSFM(&self) -> *const c_void { self.inner_as_raw() } } impl crate::sfm::BaseSFMTrait for core::Ptr { #[inline] fn as_raw_mut_BaseSFM(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_sfm_SFMLibmvEuclideanReconstructionG_to_PtrOfBaseSFM } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfSFMLibmvEuclideanReconstruction") .finish() } } } #[cfg(ocvrs_has_module_sfm)] pub use sfm_types::*; #[cfg(ocvrs_has_module_shape)] mod shape_types { use crate::{mod_prelude::*, core, types, sys}; #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfAffineTransformer = core::Ptr; ptr_extern! { crate::shape::AffineTransformer, cv_PtrLcv_AffineTransformerG_new_null_const, cv_PtrLcv_AffineTransformerG_delete, cv_PtrLcv_AffineTransformerG_getInnerPtr_const, cv_PtrLcv_AffineTransformerG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfAffineTransformer(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfAffineTransformer(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::shape::AffineTransformerTraitConst for core::Ptr { #[inline] fn as_raw_AffineTransformer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::shape::AffineTransformerTrait for core::Ptr { #[inline] fn as_raw_mut_AffineTransformer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_AffineTransformerG_to_PtrOfAlgorithm } impl crate::shape::ShapeTransformerTraitConst for core::Ptr { #[inline] fn as_raw_ShapeTransformer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::shape::ShapeTransformerTrait for core::Ptr { #[inline] fn as_raw_mut_ShapeTransformer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_AffineTransformerG_to_PtrOfShapeTransformer } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfAffineTransformer") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfChiHistogramCostExtractor = core::Ptr; ptr_extern! { crate::shape::ChiHistogramCostExtractor, cv_PtrLcv_ChiHistogramCostExtractorG_new_null_const, cv_PtrLcv_ChiHistogramCostExtractorG_delete, cv_PtrLcv_ChiHistogramCostExtractorG_getInnerPtr_const, cv_PtrLcv_ChiHistogramCostExtractorG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfChiHistogramCostExtractor(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfChiHistogramCostExtractor(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::shape::ChiHistogramCostExtractorTraitConst for core::Ptr { #[inline] fn as_raw_ChiHistogramCostExtractor(&self) -> *const c_void { self.inner_as_raw() } } impl crate::shape::ChiHistogramCostExtractorTrait for core::Ptr { #[inline] fn as_raw_mut_ChiHistogramCostExtractor(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_ChiHistogramCostExtractorG_to_PtrOfAlgorithm } impl crate::shape::HistogramCostExtractorTraitConst for core::Ptr { #[inline] fn as_raw_HistogramCostExtractor(&self) -> *const c_void { self.inner_as_raw() } } impl crate::shape::HistogramCostExtractorTrait for core::Ptr { #[inline] fn as_raw_mut_HistogramCostExtractor(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_ChiHistogramCostExtractorG_to_PtrOfHistogramCostExtractor } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfChiHistogramCostExtractor") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfEMDHistogramCostExtractor = core::Ptr; ptr_extern! { crate::shape::EMDHistogramCostExtractor, cv_PtrLcv_EMDHistogramCostExtractorG_new_null_const, cv_PtrLcv_EMDHistogramCostExtractorG_delete, cv_PtrLcv_EMDHistogramCostExtractorG_getInnerPtr_const, cv_PtrLcv_EMDHistogramCostExtractorG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfEMDHistogramCostExtractor(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfEMDHistogramCostExtractor(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::shape::EMDHistogramCostExtractorTraitConst for core::Ptr { #[inline] fn as_raw_EMDHistogramCostExtractor(&self) -> *const c_void { self.inner_as_raw() } } impl crate::shape::EMDHistogramCostExtractorTrait for core::Ptr { #[inline] fn as_raw_mut_EMDHistogramCostExtractor(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_EMDHistogramCostExtractorG_to_PtrOfAlgorithm } impl crate::shape::HistogramCostExtractorTraitConst for core::Ptr { #[inline] fn as_raw_HistogramCostExtractor(&self) -> *const c_void { self.inner_as_raw() } } impl crate::shape::HistogramCostExtractorTrait for core::Ptr { #[inline] fn as_raw_mut_HistogramCostExtractor(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_EMDHistogramCostExtractorG_to_PtrOfHistogramCostExtractor } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfEMDHistogramCostExtractor") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfEMDL1HistogramCostExtractor = core::Ptr; ptr_extern! { crate::shape::EMDL1HistogramCostExtractor, cv_PtrLcv_EMDL1HistogramCostExtractorG_new_null_const, cv_PtrLcv_EMDL1HistogramCostExtractorG_delete, cv_PtrLcv_EMDL1HistogramCostExtractorG_getInnerPtr_const, cv_PtrLcv_EMDL1HistogramCostExtractorG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfEMDL1HistogramCostExtractor(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfEMDL1HistogramCostExtractor(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::shape::EMDL1HistogramCostExtractorTraitConst for core::Ptr { #[inline] fn as_raw_EMDL1HistogramCostExtractor(&self) -> *const c_void { self.inner_as_raw() } } impl crate::shape::EMDL1HistogramCostExtractorTrait for core::Ptr { #[inline] fn as_raw_mut_EMDL1HistogramCostExtractor(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_EMDL1HistogramCostExtractorG_to_PtrOfAlgorithm } impl crate::shape::HistogramCostExtractorTraitConst for core::Ptr { #[inline] fn as_raw_HistogramCostExtractor(&self) -> *const c_void { self.inner_as_raw() } } impl crate::shape::HistogramCostExtractorTrait for core::Ptr { #[inline] fn as_raw_mut_HistogramCostExtractor(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_EMDL1HistogramCostExtractorG_to_PtrOfHistogramCostExtractor } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfEMDL1HistogramCostExtractor") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfHausdorffDistanceExtractor = core::Ptr; ptr_extern! { crate::shape::HausdorffDistanceExtractor, cv_PtrLcv_HausdorffDistanceExtractorG_new_null_const, cv_PtrLcv_HausdorffDistanceExtractorG_delete, cv_PtrLcv_HausdorffDistanceExtractorG_getInnerPtr_const, cv_PtrLcv_HausdorffDistanceExtractorG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfHausdorffDistanceExtractor(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfHausdorffDistanceExtractor(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::shape::HausdorffDistanceExtractorTraitConst for core::Ptr { #[inline] fn as_raw_HausdorffDistanceExtractor(&self) -> *const c_void { self.inner_as_raw() } } impl crate::shape::HausdorffDistanceExtractorTrait for core::Ptr { #[inline] fn as_raw_mut_HausdorffDistanceExtractor(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_HausdorffDistanceExtractorG_to_PtrOfAlgorithm } impl crate::shape::ShapeDistanceExtractorTraitConst for core::Ptr { #[inline] fn as_raw_ShapeDistanceExtractor(&self) -> *const c_void { self.inner_as_raw() } } impl crate::shape::ShapeDistanceExtractorTrait for core::Ptr { #[inline] fn as_raw_mut_ShapeDistanceExtractor(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_HausdorffDistanceExtractorG_to_PtrOfShapeDistanceExtractor } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfHausdorffDistanceExtractor") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfHistogramCostExtractor = core::Ptr; ptr_extern! { crate::shape::HistogramCostExtractor, cv_PtrLcv_HistogramCostExtractorG_new_null_const, cv_PtrLcv_HistogramCostExtractorG_delete, cv_PtrLcv_HistogramCostExtractorG_getInnerPtr_const, cv_PtrLcv_HistogramCostExtractorG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfHistogramCostExtractor(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfHistogramCostExtractor(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::shape::HistogramCostExtractorTraitConst for core::Ptr { #[inline] fn as_raw_HistogramCostExtractor(&self) -> *const c_void { self.inner_as_raw() } } impl crate::shape::HistogramCostExtractorTrait for core::Ptr { #[inline] fn as_raw_mut_HistogramCostExtractor(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_HistogramCostExtractorG_to_PtrOfAlgorithm } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfHistogramCostExtractor") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfNormHistogramCostExtractor = core::Ptr; ptr_extern! { crate::shape::NormHistogramCostExtractor, cv_PtrLcv_NormHistogramCostExtractorG_new_null_const, cv_PtrLcv_NormHistogramCostExtractorG_delete, cv_PtrLcv_NormHistogramCostExtractorG_getInnerPtr_const, cv_PtrLcv_NormHistogramCostExtractorG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfNormHistogramCostExtractor(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfNormHistogramCostExtractor(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::shape::NormHistogramCostExtractorTraitConst for core::Ptr { #[inline] fn as_raw_NormHistogramCostExtractor(&self) -> *const c_void { self.inner_as_raw() } } impl crate::shape::NormHistogramCostExtractorTrait for core::Ptr { #[inline] fn as_raw_mut_NormHistogramCostExtractor(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_NormHistogramCostExtractorG_to_PtrOfAlgorithm } impl crate::shape::HistogramCostExtractorTraitConst for core::Ptr { #[inline] fn as_raw_HistogramCostExtractor(&self) -> *const c_void { self.inner_as_raw() } } impl crate::shape::HistogramCostExtractorTrait for core::Ptr { #[inline] fn as_raw_mut_HistogramCostExtractor(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_NormHistogramCostExtractorG_to_PtrOfHistogramCostExtractor } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfNormHistogramCostExtractor") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfShapeContextDistanceExtractor = core::Ptr; ptr_extern! { crate::shape::ShapeContextDistanceExtractor, cv_PtrLcv_ShapeContextDistanceExtractorG_new_null_const, cv_PtrLcv_ShapeContextDistanceExtractorG_delete, cv_PtrLcv_ShapeContextDistanceExtractorG_getInnerPtr_const, cv_PtrLcv_ShapeContextDistanceExtractorG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfShapeContextDistanceExtractor(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfShapeContextDistanceExtractor(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::shape::ShapeContextDistanceExtractorTraitConst for core::Ptr { #[inline] fn as_raw_ShapeContextDistanceExtractor(&self) -> *const c_void { self.inner_as_raw() } } impl crate::shape::ShapeContextDistanceExtractorTrait for core::Ptr { #[inline] fn as_raw_mut_ShapeContextDistanceExtractor(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_ShapeContextDistanceExtractorG_to_PtrOfAlgorithm } impl crate::shape::ShapeDistanceExtractorTraitConst for core::Ptr { #[inline] fn as_raw_ShapeDistanceExtractor(&self) -> *const c_void { self.inner_as_raw() } } impl crate::shape::ShapeDistanceExtractorTrait for core::Ptr { #[inline] fn as_raw_mut_ShapeDistanceExtractor(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_ShapeContextDistanceExtractorG_to_PtrOfShapeDistanceExtractor } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfShapeContextDistanceExtractor") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfShapeDistanceExtractor = core::Ptr; ptr_extern! { crate::shape::ShapeDistanceExtractor, cv_PtrLcv_ShapeDistanceExtractorG_new_null_const, cv_PtrLcv_ShapeDistanceExtractorG_delete, cv_PtrLcv_ShapeDistanceExtractorG_getInnerPtr_const, cv_PtrLcv_ShapeDistanceExtractorG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfShapeDistanceExtractor(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfShapeDistanceExtractor(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::shape::ShapeDistanceExtractorTraitConst for core::Ptr { #[inline] fn as_raw_ShapeDistanceExtractor(&self) -> *const c_void { self.inner_as_raw() } } impl crate::shape::ShapeDistanceExtractorTrait for core::Ptr { #[inline] fn as_raw_mut_ShapeDistanceExtractor(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_ShapeDistanceExtractorG_to_PtrOfAlgorithm } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfShapeDistanceExtractor") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfShapeTransformer = core::Ptr; ptr_extern! { crate::shape::ShapeTransformer, cv_PtrLcv_ShapeTransformerG_new_null_const, cv_PtrLcv_ShapeTransformerG_delete, cv_PtrLcv_ShapeTransformerG_getInnerPtr_const, cv_PtrLcv_ShapeTransformerG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfShapeTransformer(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfShapeTransformer(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::shape::ShapeTransformerTraitConst for core::Ptr { #[inline] fn as_raw_ShapeTransformer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::shape::ShapeTransformerTrait for core::Ptr { #[inline] fn as_raw_mut_ShapeTransformer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_ShapeTransformerG_to_PtrOfAlgorithm } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfShapeTransformer") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfThinPlateSplineShapeTransformer = core::Ptr; ptr_extern! { crate::shape::ThinPlateSplineShapeTransformer, cv_PtrLcv_ThinPlateSplineShapeTransformerG_new_null_const, cv_PtrLcv_ThinPlateSplineShapeTransformerG_delete, cv_PtrLcv_ThinPlateSplineShapeTransformerG_getInnerPtr_const, cv_PtrLcv_ThinPlateSplineShapeTransformerG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfThinPlateSplineShapeTransformer(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfThinPlateSplineShapeTransformer(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::shape::ThinPlateSplineShapeTransformerTraitConst for core::Ptr { #[inline] fn as_raw_ThinPlateSplineShapeTransformer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::shape::ThinPlateSplineShapeTransformerTrait for core::Ptr { #[inline] fn as_raw_mut_ThinPlateSplineShapeTransformer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_ThinPlateSplineShapeTransformerG_to_PtrOfAlgorithm } impl crate::shape::ShapeTransformerTraitConst for core::Ptr { #[inline] fn as_raw_ShapeTransformer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::shape::ShapeTransformerTrait for core::Ptr { #[inline] fn as_raw_mut_ShapeTransformer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_ThinPlateSplineShapeTransformerG_to_PtrOfShapeTransformer } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfThinPlateSplineShapeTransformer") .finish() } } } #[cfg(ocvrs_has_module_shape)] pub use shape_types::*; #[cfg(ocvrs_has_module_stereo)] mod stereo_types { use crate::{mod_prelude::*, core, types, sys}; #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfQuasiDenseStereo = core::Ptr; ptr_extern! { crate::stereo::QuasiDenseStereo, cv_PtrLcv_stereo_QuasiDenseStereoG_new_null_const, cv_PtrLcv_stereo_QuasiDenseStereoG_delete, cv_PtrLcv_stereo_QuasiDenseStereoG_getInnerPtr_const, cv_PtrLcv_stereo_QuasiDenseStereoG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfQuasiDenseStereo(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfQuasiDenseStereo(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::stereo::QuasiDenseStereoTraitConst for core::Ptr { #[inline] fn as_raw_QuasiDenseStereo(&self) -> *const c_void { self.inner_as_raw() } } impl crate::stereo::QuasiDenseStereoTrait for core::Ptr { #[inline] fn as_raw_mut_QuasiDenseStereo(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfQuasiDenseStereo") .field("param", &crate::stereo::QuasiDenseStereoTraitConst::param(self)) .finish() } } #[deprecated = "Use the the non-alias form `core::Vector` instead, removal in Nov 2024"] pub type VectorOfMatchQuasiDense = core::Vector; impl core::Vector { pub fn as_raw_VectorOfMatchQuasiDense(&self) -> extern_send!(Self) { self.as_raw() } pub fn as_raw_mut_VectorOfMatchQuasiDense(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } vector_extern! { crate::stereo::MatchQuasiDense, std_vectorLcv_stereo_MatchQuasiDenseG_new_const, std_vectorLcv_stereo_MatchQuasiDenseG_delete, std_vectorLcv_stereo_MatchQuasiDenseG_len_const, std_vectorLcv_stereo_MatchQuasiDenseG_isEmpty_const, std_vectorLcv_stereo_MatchQuasiDenseG_capacity_const, std_vectorLcv_stereo_MatchQuasiDenseG_shrinkToFit, std_vectorLcv_stereo_MatchQuasiDenseG_reserve_size_t, std_vectorLcv_stereo_MatchQuasiDenseG_remove_size_t, std_vectorLcv_stereo_MatchQuasiDenseG_swap_size_t_size_t, std_vectorLcv_stereo_MatchQuasiDenseG_clear, std_vectorLcv_stereo_MatchQuasiDenseG_get_const_size_t, std_vectorLcv_stereo_MatchQuasiDenseG_set_size_t_const_MatchQuasiDense, std_vectorLcv_stereo_MatchQuasiDenseG_push_const_MatchQuasiDense, std_vectorLcv_stereo_MatchQuasiDenseG_insert_size_t_const_MatchQuasiDense, } vector_copy_non_bool! { crate::stereo::MatchQuasiDense, std_vectorLcv_stereo_MatchQuasiDenseG_data_const, std_vectorLcv_stereo_MatchQuasiDenseG_dataMut, cv_fromSlice_const_const_MatchQuasiDenseX_size_t, std_vectorLcv_stereo_MatchQuasiDenseG_clone_const, } } #[cfg(ocvrs_has_module_stereo)] pub use stereo_types::*; #[cfg(ocvrs_has_module_stitching)] mod stitching_types { use crate::{mod_prelude::*, core, types, sys}; #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfAffineWarper = core::Ptr; ptr_extern! { crate::stitching::AffineWarper, cv_PtrLcv_AffineWarperG_new_null_const, cv_PtrLcv_AffineWarperG_delete, cv_PtrLcv_AffineWarperG_getInnerPtr_const, cv_PtrLcv_AffineWarperG_getInnerPtrMut } ptr_extern_ctor! { crate::stitching::AffineWarper, cv_PtrLcv_AffineWarperG_new_const_AffineWarper } impl core::Ptr { #[inline] pub fn as_raw_PtrOfAffineWarper(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfAffineWarper(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::stitching::AffineWarperTraitConst for core::Ptr { #[inline] fn as_raw_AffineWarper(&self) -> *const c_void { self.inner_as_raw() } } impl crate::stitching::AffineWarperTrait for core::Ptr { #[inline] fn as_raw_mut_AffineWarper(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl crate::stitching::WarperCreatorTraitConst for core::Ptr { #[inline] fn as_raw_WarperCreator(&self) -> *const c_void { self.inner_as_raw() } } impl crate::stitching::WarperCreatorTrait for core::Ptr { #[inline] fn as_raw_mut_WarperCreator(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_AffineWarperG_to_PtrOfWarperCreator } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfAffineWarper") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfCompressedRectilinearPortraitWarper = core::Ptr; ptr_extern! { crate::stitching::CompressedRectilinearPortraitWarper, cv_PtrLcv_CompressedRectilinearPortraitWarperG_new_null_const, cv_PtrLcv_CompressedRectilinearPortraitWarperG_delete, cv_PtrLcv_CompressedRectilinearPortraitWarperG_getInnerPtr_const, cv_PtrLcv_CompressedRectilinearPortraitWarperG_getInnerPtrMut } ptr_extern_ctor! { crate::stitching::CompressedRectilinearPortraitWarper, cv_PtrLcv_CompressedRectilinearPortraitWarperG_new_const_CompressedRectilinearPortraitWarper } impl core::Ptr { #[inline] pub fn as_raw_PtrOfCompressedRectilinearPortraitWarper(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfCompressedRectilinearPortraitWarper(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::stitching::CompressedRectilinearPortraitWarperTraitConst for core::Ptr { #[inline] fn as_raw_CompressedRectilinearPortraitWarper(&self) -> *const c_void { self.inner_as_raw() } } impl crate::stitching::CompressedRectilinearPortraitWarperTrait for core::Ptr { #[inline] fn as_raw_mut_CompressedRectilinearPortraitWarper(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl crate::stitching::WarperCreatorTraitConst for core::Ptr { #[inline] fn as_raw_WarperCreator(&self) -> *const c_void { self.inner_as_raw() } } impl crate::stitching::WarperCreatorTrait for core::Ptr { #[inline] fn as_raw_mut_WarperCreator(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_CompressedRectilinearPortraitWarperG_to_PtrOfWarperCreator } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfCompressedRectilinearPortraitWarper") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfCompressedRectilinearWarper = core::Ptr; ptr_extern! { crate::stitching::CompressedRectilinearWarper, cv_PtrLcv_CompressedRectilinearWarperG_new_null_const, cv_PtrLcv_CompressedRectilinearWarperG_delete, cv_PtrLcv_CompressedRectilinearWarperG_getInnerPtr_const, cv_PtrLcv_CompressedRectilinearWarperG_getInnerPtrMut } ptr_extern_ctor! { crate::stitching::CompressedRectilinearWarper, cv_PtrLcv_CompressedRectilinearWarperG_new_const_CompressedRectilinearWarper } impl core::Ptr { #[inline] pub fn as_raw_PtrOfCompressedRectilinearWarper(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfCompressedRectilinearWarper(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::stitching::CompressedRectilinearWarperTraitConst for core::Ptr { #[inline] fn as_raw_CompressedRectilinearWarper(&self) -> *const c_void { self.inner_as_raw() } } impl crate::stitching::CompressedRectilinearWarperTrait for core::Ptr { #[inline] fn as_raw_mut_CompressedRectilinearWarper(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl crate::stitching::WarperCreatorTraitConst for core::Ptr { #[inline] fn as_raw_WarperCreator(&self) -> *const c_void { self.inner_as_raw() } } impl crate::stitching::WarperCreatorTrait for core::Ptr { #[inline] fn as_raw_mut_WarperCreator(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_CompressedRectilinearWarperG_to_PtrOfWarperCreator } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfCompressedRectilinearWarper") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfCylindricalWarper = core::Ptr; ptr_extern! { crate::stitching::CylindricalWarper, cv_PtrLcv_CylindricalWarperG_new_null_const, cv_PtrLcv_CylindricalWarperG_delete, cv_PtrLcv_CylindricalWarperG_getInnerPtr_const, cv_PtrLcv_CylindricalWarperG_getInnerPtrMut } ptr_extern_ctor! { crate::stitching::CylindricalWarper, cv_PtrLcv_CylindricalWarperG_new_const_CylindricalWarper } impl core::Ptr { #[inline] pub fn as_raw_PtrOfCylindricalWarper(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfCylindricalWarper(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::stitching::CylindricalWarperTraitConst for core::Ptr { #[inline] fn as_raw_CylindricalWarper(&self) -> *const c_void { self.inner_as_raw() } } impl crate::stitching::CylindricalWarperTrait for core::Ptr { #[inline] fn as_raw_mut_CylindricalWarper(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl crate::stitching::WarperCreatorTraitConst for core::Ptr { #[inline] fn as_raw_WarperCreator(&self) -> *const c_void { self.inner_as_raw() } } impl crate::stitching::WarperCreatorTrait for core::Ptr { #[inline] fn as_raw_mut_WarperCreator(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_CylindricalWarperG_to_PtrOfWarperCreator } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfCylindricalWarper") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfCylindricalWarperGpu = core::Ptr; ptr_extern! { crate::stitching::CylindricalWarperGpu, cv_PtrLcv_CylindricalWarperGpuG_new_null_const, cv_PtrLcv_CylindricalWarperGpuG_delete, cv_PtrLcv_CylindricalWarperGpuG_getInnerPtr_const, cv_PtrLcv_CylindricalWarperGpuG_getInnerPtrMut } ptr_extern_ctor! { crate::stitching::CylindricalWarperGpu, cv_PtrLcv_CylindricalWarperGpuG_new_const_CylindricalWarperGpu } impl core::Ptr { #[inline] pub fn as_raw_PtrOfCylindricalWarperGpu(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfCylindricalWarperGpu(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::stitching::CylindricalWarperGpuTraitConst for core::Ptr { #[inline] fn as_raw_CylindricalWarperGpu(&self) -> *const c_void { self.inner_as_raw() } } impl crate::stitching::CylindricalWarperGpuTrait for core::Ptr { #[inline] fn as_raw_mut_CylindricalWarperGpu(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl crate::stitching::WarperCreatorTraitConst for core::Ptr { #[inline] fn as_raw_WarperCreator(&self) -> *const c_void { self.inner_as_raw() } } impl crate::stitching::WarperCreatorTrait for core::Ptr { #[inline] fn as_raw_mut_WarperCreator(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_CylindricalWarperGpuG_to_PtrOfWarperCreator } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfCylindricalWarperGpu") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfDetail_AffineBasedEstimator = core::Ptr; ptr_extern! { crate::stitching::Detail_AffineBasedEstimator, cv_PtrLcv_detail_AffineBasedEstimatorG_new_null_const, cv_PtrLcv_detail_AffineBasedEstimatorG_delete, cv_PtrLcv_detail_AffineBasedEstimatorG_getInnerPtr_const, cv_PtrLcv_detail_AffineBasedEstimatorG_getInnerPtrMut } ptr_extern_ctor! { crate::stitching::Detail_AffineBasedEstimator, cv_PtrLcv_detail_AffineBasedEstimatorG_new_const_AffineBasedEstimator } impl core::Ptr { #[inline] pub fn as_raw_PtrOfDetail_AffineBasedEstimator(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfDetail_AffineBasedEstimator(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::stitching::Detail_AffineBasedEstimatorTraitConst for core::Ptr { #[inline] fn as_raw_Detail_AffineBasedEstimator(&self) -> *const c_void { self.inner_as_raw() } } impl crate::stitching::Detail_AffineBasedEstimatorTrait for core::Ptr { #[inline] fn as_raw_mut_Detail_AffineBasedEstimator(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl crate::stitching::Detail_EstimatorTraitConst for core::Ptr { #[inline] fn as_raw_Detail_Estimator(&self) -> *const c_void { self.inner_as_raw() } } impl crate::stitching::Detail_EstimatorTrait for core::Ptr { #[inline] fn as_raw_mut_Detail_Estimator(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_detail_AffineBasedEstimatorG_to_PtrOfDetail_Estimator } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfDetail_AffineBasedEstimator") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfDetail_AffineBestOf2NearestMatcher = core::Ptr; ptr_extern! { crate::stitching::Detail_AffineBestOf2NearestMatcher, cv_PtrLcv_detail_AffineBestOf2NearestMatcherG_new_null_const, cv_PtrLcv_detail_AffineBestOf2NearestMatcherG_delete, cv_PtrLcv_detail_AffineBestOf2NearestMatcherG_getInnerPtr_const, cv_PtrLcv_detail_AffineBestOf2NearestMatcherG_getInnerPtrMut } ptr_extern_ctor! { crate::stitching::Detail_AffineBestOf2NearestMatcher, cv_PtrLcv_detail_AffineBestOf2NearestMatcherG_new_const_AffineBestOf2NearestMatcher } impl core::Ptr { #[inline] pub fn as_raw_PtrOfDetail_AffineBestOf2NearestMatcher(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfDetail_AffineBestOf2NearestMatcher(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::stitching::Detail_AffineBestOf2NearestMatcherTraitConst for core::Ptr { #[inline] fn as_raw_Detail_AffineBestOf2NearestMatcher(&self) -> *const c_void { self.inner_as_raw() } } impl crate::stitching::Detail_AffineBestOf2NearestMatcherTrait for core::Ptr { #[inline] fn as_raw_mut_Detail_AffineBestOf2NearestMatcher(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl crate::stitching::Detail_BestOf2NearestMatcherTraitConst for core::Ptr { #[inline] fn as_raw_Detail_BestOf2NearestMatcher(&self) -> *const c_void { self.inner_as_raw() } } impl crate::stitching::Detail_BestOf2NearestMatcherTrait for core::Ptr { #[inline] fn as_raw_mut_Detail_BestOf2NearestMatcher(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_detail_AffineBestOf2NearestMatcherG_to_PtrOfDetail_BestOf2NearestMatcher } impl crate::stitching::Detail_FeaturesMatcherTraitConst for core::Ptr { #[inline] fn as_raw_Detail_FeaturesMatcher(&self) -> *const c_void { self.inner_as_raw() } } impl crate::stitching::Detail_FeaturesMatcherTrait for core::Ptr { #[inline] fn as_raw_mut_Detail_FeaturesMatcher(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_detail_AffineBestOf2NearestMatcherG_to_PtrOfDetail_FeaturesMatcher } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfDetail_AffineBestOf2NearestMatcher") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfDetail_BestOf2NearestMatcher = core::Ptr; ptr_extern! { crate::stitching::Detail_BestOf2NearestMatcher, cv_PtrLcv_detail_BestOf2NearestMatcherG_new_null_const, cv_PtrLcv_detail_BestOf2NearestMatcherG_delete, cv_PtrLcv_detail_BestOf2NearestMatcherG_getInnerPtr_const, cv_PtrLcv_detail_BestOf2NearestMatcherG_getInnerPtrMut } ptr_extern_ctor! { crate::stitching::Detail_BestOf2NearestMatcher, cv_PtrLcv_detail_BestOf2NearestMatcherG_new_const_BestOf2NearestMatcher } impl core::Ptr { #[inline] pub fn as_raw_PtrOfDetail_BestOf2NearestMatcher(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfDetail_BestOf2NearestMatcher(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::stitching::Detail_BestOf2NearestMatcherTraitConst for core::Ptr { #[inline] fn as_raw_Detail_BestOf2NearestMatcher(&self) -> *const c_void { self.inner_as_raw() } } impl crate::stitching::Detail_BestOf2NearestMatcherTrait for core::Ptr { #[inline] fn as_raw_mut_Detail_BestOf2NearestMatcher(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl crate::stitching::Detail_FeaturesMatcherTraitConst for core::Ptr { #[inline] fn as_raw_Detail_FeaturesMatcher(&self) -> *const c_void { self.inner_as_raw() } } impl crate::stitching::Detail_FeaturesMatcherTrait for core::Ptr { #[inline] fn as_raw_mut_Detail_FeaturesMatcher(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_detail_BestOf2NearestMatcherG_to_PtrOfDetail_FeaturesMatcher } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfDetail_BestOf2NearestMatcher") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfDetail_BestOf2NearestRangeMatcher = core::Ptr; ptr_extern! { crate::stitching::Detail_BestOf2NearestRangeMatcher, cv_PtrLcv_detail_BestOf2NearestRangeMatcherG_new_null_const, cv_PtrLcv_detail_BestOf2NearestRangeMatcherG_delete, cv_PtrLcv_detail_BestOf2NearestRangeMatcherG_getInnerPtr_const, cv_PtrLcv_detail_BestOf2NearestRangeMatcherG_getInnerPtrMut } ptr_extern_ctor! { crate::stitching::Detail_BestOf2NearestRangeMatcher, cv_PtrLcv_detail_BestOf2NearestRangeMatcherG_new_const_BestOf2NearestRangeMatcher } impl core::Ptr { #[inline] pub fn as_raw_PtrOfDetail_BestOf2NearestRangeMatcher(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfDetail_BestOf2NearestRangeMatcher(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::stitching::Detail_BestOf2NearestRangeMatcherTraitConst for core::Ptr { #[inline] fn as_raw_Detail_BestOf2NearestRangeMatcher(&self) -> *const c_void { self.inner_as_raw() } } impl crate::stitching::Detail_BestOf2NearestRangeMatcherTrait for core::Ptr { #[inline] fn as_raw_mut_Detail_BestOf2NearestRangeMatcher(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl crate::stitching::Detail_BestOf2NearestMatcherTraitConst for core::Ptr { #[inline] fn as_raw_Detail_BestOf2NearestMatcher(&self) -> *const c_void { self.inner_as_raw() } } impl crate::stitching::Detail_BestOf2NearestMatcherTrait for core::Ptr { #[inline] fn as_raw_mut_Detail_BestOf2NearestMatcher(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_detail_BestOf2NearestRangeMatcherG_to_PtrOfDetail_BestOf2NearestMatcher } impl crate::stitching::Detail_FeaturesMatcherTraitConst for core::Ptr { #[inline] fn as_raw_Detail_FeaturesMatcher(&self) -> *const c_void { self.inner_as_raw() } } impl crate::stitching::Detail_FeaturesMatcherTrait for core::Ptr { #[inline] fn as_raw_mut_Detail_FeaturesMatcher(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_detail_BestOf2NearestRangeMatcherG_to_PtrOfDetail_FeaturesMatcher } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfDetail_BestOf2NearestRangeMatcher") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfDetail_Blender = core::Ptr; ptr_extern! { crate::stitching::Detail_Blender, cv_PtrLcv_detail_BlenderG_new_null_const, cv_PtrLcv_detail_BlenderG_delete, cv_PtrLcv_detail_BlenderG_getInnerPtr_const, cv_PtrLcv_detail_BlenderG_getInnerPtrMut } ptr_extern_ctor! { crate::stitching::Detail_Blender, cv_PtrLcv_detail_BlenderG_new_const_Blender } impl core::Ptr { #[inline] pub fn as_raw_PtrOfDetail_Blender(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfDetail_Blender(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::stitching::Detail_BlenderTraitConst for core::Ptr { #[inline] fn as_raw_Detail_Blender(&self) -> *const c_void { self.inner_as_raw() } } impl crate::stitching::Detail_BlenderTrait for core::Ptr { #[inline] fn as_raw_mut_Detail_Blender(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfDetail_Blender") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfDetail_BlocksChannelsCompensator = core::Ptr; ptr_extern! { crate::stitching::Detail_BlocksChannelsCompensator, cv_PtrLcv_detail_BlocksChannelsCompensatorG_new_null_const, cv_PtrLcv_detail_BlocksChannelsCompensatorG_delete, cv_PtrLcv_detail_BlocksChannelsCompensatorG_getInnerPtr_const, cv_PtrLcv_detail_BlocksChannelsCompensatorG_getInnerPtrMut } ptr_extern_ctor! { crate::stitching::Detail_BlocksChannelsCompensator, cv_PtrLcv_detail_BlocksChannelsCompensatorG_new_const_BlocksChannelsCompensator } impl core::Ptr { #[inline] pub fn as_raw_PtrOfDetail_BlocksChannelsCompensator(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfDetail_BlocksChannelsCompensator(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::stitching::Detail_BlocksChannelsCompensatorTraitConst for core::Ptr { #[inline] fn as_raw_Detail_BlocksChannelsCompensator(&self) -> *const c_void { self.inner_as_raw() } } impl crate::stitching::Detail_BlocksChannelsCompensatorTrait for core::Ptr { #[inline] fn as_raw_mut_Detail_BlocksChannelsCompensator(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl crate::stitching::Detail_BlocksCompensatorTraitConst for core::Ptr { #[inline] fn as_raw_Detail_BlocksCompensator(&self) -> *const c_void { self.inner_as_raw() } } impl crate::stitching::Detail_BlocksCompensatorTrait for core::Ptr { #[inline] fn as_raw_mut_Detail_BlocksCompensator(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_detail_BlocksChannelsCompensatorG_to_PtrOfDetail_BlocksCompensator } impl crate::stitching::Detail_ExposureCompensatorTraitConst for core::Ptr { #[inline] fn as_raw_Detail_ExposureCompensator(&self) -> *const c_void { self.inner_as_raw() } } impl crate::stitching::Detail_ExposureCompensatorTrait for core::Ptr { #[inline] fn as_raw_mut_Detail_ExposureCompensator(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_detail_BlocksChannelsCompensatorG_to_PtrOfDetail_ExposureCompensator } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfDetail_BlocksChannelsCompensator") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfDetail_BlocksCompensator = core::Ptr; ptr_extern! { crate::stitching::Detail_BlocksCompensator, cv_PtrLcv_detail_BlocksCompensatorG_new_null_const, cv_PtrLcv_detail_BlocksCompensatorG_delete, cv_PtrLcv_detail_BlocksCompensatorG_getInnerPtr_const, cv_PtrLcv_detail_BlocksCompensatorG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfDetail_BlocksCompensator(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfDetail_BlocksCompensator(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::stitching::Detail_BlocksCompensatorTraitConst for core::Ptr { #[inline] fn as_raw_Detail_BlocksCompensator(&self) -> *const c_void { self.inner_as_raw() } } impl crate::stitching::Detail_BlocksCompensatorTrait for core::Ptr { #[inline] fn as_raw_mut_Detail_BlocksCompensator(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl crate::stitching::Detail_ExposureCompensatorTraitConst for core::Ptr { #[inline] fn as_raw_Detail_ExposureCompensator(&self) -> *const c_void { self.inner_as_raw() } } impl crate::stitching::Detail_ExposureCompensatorTrait for core::Ptr { #[inline] fn as_raw_mut_Detail_ExposureCompensator(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_detail_BlocksCompensatorG_to_PtrOfDetail_ExposureCompensator } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfDetail_BlocksCompensator") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfDetail_BlocksGainCompensator = core::Ptr; ptr_extern! { crate::stitching::Detail_BlocksGainCompensator, cv_PtrLcv_detail_BlocksGainCompensatorG_new_null_const, cv_PtrLcv_detail_BlocksGainCompensatorG_delete, cv_PtrLcv_detail_BlocksGainCompensatorG_getInnerPtr_const, cv_PtrLcv_detail_BlocksGainCompensatorG_getInnerPtrMut } ptr_extern_ctor! { crate::stitching::Detail_BlocksGainCompensator, cv_PtrLcv_detail_BlocksGainCompensatorG_new_const_BlocksGainCompensator } impl core::Ptr { #[inline] pub fn as_raw_PtrOfDetail_BlocksGainCompensator(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfDetail_BlocksGainCompensator(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::stitching::Detail_BlocksGainCompensatorTraitConst for core::Ptr { #[inline] fn as_raw_Detail_BlocksGainCompensator(&self) -> *const c_void { self.inner_as_raw() } } impl crate::stitching::Detail_BlocksGainCompensatorTrait for core::Ptr { #[inline] fn as_raw_mut_Detail_BlocksGainCompensator(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl crate::stitching::Detail_BlocksCompensatorTraitConst for core::Ptr { #[inline] fn as_raw_Detail_BlocksCompensator(&self) -> *const c_void { self.inner_as_raw() } } impl crate::stitching::Detail_BlocksCompensatorTrait for core::Ptr { #[inline] fn as_raw_mut_Detail_BlocksCompensator(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_detail_BlocksGainCompensatorG_to_PtrOfDetail_BlocksCompensator } impl crate::stitching::Detail_ExposureCompensatorTraitConst for core::Ptr { #[inline] fn as_raw_Detail_ExposureCompensator(&self) -> *const c_void { self.inner_as_raw() } } impl crate::stitching::Detail_ExposureCompensatorTrait for core::Ptr { #[inline] fn as_raw_mut_Detail_ExposureCompensator(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_detail_BlocksGainCompensatorG_to_PtrOfDetail_ExposureCompensator } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfDetail_BlocksGainCompensator") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfDetail_BundleAdjusterAffine = core::Ptr; ptr_extern! { crate::stitching::Detail_BundleAdjusterAffine, cv_PtrLcv_detail_BundleAdjusterAffineG_new_null_const, cv_PtrLcv_detail_BundleAdjusterAffineG_delete, cv_PtrLcv_detail_BundleAdjusterAffineG_getInnerPtr_const, cv_PtrLcv_detail_BundleAdjusterAffineG_getInnerPtrMut } ptr_extern_ctor! { crate::stitching::Detail_BundleAdjusterAffine, cv_PtrLcv_detail_BundleAdjusterAffineG_new_const_BundleAdjusterAffine } impl core::Ptr { #[inline] pub fn as_raw_PtrOfDetail_BundleAdjusterAffine(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfDetail_BundleAdjusterAffine(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::stitching::Detail_BundleAdjusterAffineTraitConst for core::Ptr { #[inline] fn as_raw_Detail_BundleAdjusterAffine(&self) -> *const c_void { self.inner_as_raw() } } impl crate::stitching::Detail_BundleAdjusterAffineTrait for core::Ptr { #[inline] fn as_raw_mut_Detail_BundleAdjusterAffine(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl crate::stitching::Detail_BundleAdjusterBaseTraitConst for core::Ptr { #[inline] fn as_raw_Detail_BundleAdjusterBase(&self) -> *const c_void { self.inner_as_raw() } } impl crate::stitching::Detail_BundleAdjusterBaseTrait for core::Ptr { #[inline] fn as_raw_mut_Detail_BundleAdjusterBase(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_detail_BundleAdjusterAffineG_to_PtrOfDetail_BundleAdjusterBase } impl crate::stitching::Detail_EstimatorTraitConst for core::Ptr { #[inline] fn as_raw_Detail_Estimator(&self) -> *const c_void { self.inner_as_raw() } } impl crate::stitching::Detail_EstimatorTrait for core::Ptr { #[inline] fn as_raw_mut_Detail_Estimator(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_detail_BundleAdjusterAffineG_to_PtrOfDetail_Estimator } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfDetail_BundleAdjusterAffine") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfDetail_BundleAdjusterAffinePartial = core::Ptr; ptr_extern! { crate::stitching::Detail_BundleAdjusterAffinePartial, cv_PtrLcv_detail_BundleAdjusterAffinePartialG_new_null_const, cv_PtrLcv_detail_BundleAdjusterAffinePartialG_delete, cv_PtrLcv_detail_BundleAdjusterAffinePartialG_getInnerPtr_const, cv_PtrLcv_detail_BundleAdjusterAffinePartialG_getInnerPtrMut } ptr_extern_ctor! { crate::stitching::Detail_BundleAdjusterAffinePartial, cv_PtrLcv_detail_BundleAdjusterAffinePartialG_new_const_BundleAdjusterAffinePartial } impl core::Ptr { #[inline] pub fn as_raw_PtrOfDetail_BundleAdjusterAffinePartial(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfDetail_BundleAdjusterAffinePartial(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::stitching::Detail_BundleAdjusterAffinePartialTraitConst for core::Ptr { #[inline] fn as_raw_Detail_BundleAdjusterAffinePartial(&self) -> *const c_void { self.inner_as_raw() } } impl crate::stitching::Detail_BundleAdjusterAffinePartialTrait for core::Ptr { #[inline] fn as_raw_mut_Detail_BundleAdjusterAffinePartial(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl crate::stitching::Detail_BundleAdjusterBaseTraitConst for core::Ptr { #[inline] fn as_raw_Detail_BundleAdjusterBase(&self) -> *const c_void { self.inner_as_raw() } } impl crate::stitching::Detail_BundleAdjusterBaseTrait for core::Ptr { #[inline] fn as_raw_mut_Detail_BundleAdjusterBase(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_detail_BundleAdjusterAffinePartialG_to_PtrOfDetail_BundleAdjusterBase } impl crate::stitching::Detail_EstimatorTraitConst for core::Ptr { #[inline] fn as_raw_Detail_Estimator(&self) -> *const c_void { self.inner_as_raw() } } impl crate::stitching::Detail_EstimatorTrait for core::Ptr { #[inline] fn as_raw_mut_Detail_Estimator(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_detail_BundleAdjusterAffinePartialG_to_PtrOfDetail_Estimator } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfDetail_BundleAdjusterAffinePartial") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfDetail_BundleAdjusterBase = core::Ptr; ptr_extern! { crate::stitching::Detail_BundleAdjusterBase, cv_PtrLcv_detail_BundleAdjusterBaseG_new_null_const, cv_PtrLcv_detail_BundleAdjusterBaseG_delete, cv_PtrLcv_detail_BundleAdjusterBaseG_getInnerPtr_const, cv_PtrLcv_detail_BundleAdjusterBaseG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfDetail_BundleAdjusterBase(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfDetail_BundleAdjusterBase(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::stitching::Detail_BundleAdjusterBaseTraitConst for core::Ptr { #[inline] fn as_raw_Detail_BundleAdjusterBase(&self) -> *const c_void { self.inner_as_raw() } } impl crate::stitching::Detail_BundleAdjusterBaseTrait for core::Ptr { #[inline] fn as_raw_mut_Detail_BundleAdjusterBase(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl crate::stitching::Detail_EstimatorTraitConst for core::Ptr { #[inline] fn as_raw_Detail_Estimator(&self) -> *const c_void { self.inner_as_raw() } } impl crate::stitching::Detail_EstimatorTrait for core::Ptr { #[inline] fn as_raw_mut_Detail_Estimator(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_detail_BundleAdjusterBaseG_to_PtrOfDetail_Estimator } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfDetail_BundleAdjusterBase") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfDetail_BundleAdjusterRay = core::Ptr; ptr_extern! { crate::stitching::Detail_BundleAdjusterRay, cv_PtrLcv_detail_BundleAdjusterRayG_new_null_const, cv_PtrLcv_detail_BundleAdjusterRayG_delete, cv_PtrLcv_detail_BundleAdjusterRayG_getInnerPtr_const, cv_PtrLcv_detail_BundleAdjusterRayG_getInnerPtrMut } ptr_extern_ctor! { crate::stitching::Detail_BundleAdjusterRay, cv_PtrLcv_detail_BundleAdjusterRayG_new_const_BundleAdjusterRay } impl core::Ptr { #[inline] pub fn as_raw_PtrOfDetail_BundleAdjusterRay(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfDetail_BundleAdjusterRay(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::stitching::Detail_BundleAdjusterRayTraitConst for core::Ptr { #[inline] fn as_raw_Detail_BundleAdjusterRay(&self) -> *const c_void { self.inner_as_raw() } } impl crate::stitching::Detail_BundleAdjusterRayTrait for core::Ptr { #[inline] fn as_raw_mut_Detail_BundleAdjusterRay(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl crate::stitching::Detail_BundleAdjusterBaseTraitConst for core::Ptr { #[inline] fn as_raw_Detail_BundleAdjusterBase(&self) -> *const c_void { self.inner_as_raw() } } impl crate::stitching::Detail_BundleAdjusterBaseTrait for core::Ptr { #[inline] fn as_raw_mut_Detail_BundleAdjusterBase(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_detail_BundleAdjusterRayG_to_PtrOfDetail_BundleAdjusterBase } impl crate::stitching::Detail_EstimatorTraitConst for core::Ptr { #[inline] fn as_raw_Detail_Estimator(&self) -> *const c_void { self.inner_as_raw() } } impl crate::stitching::Detail_EstimatorTrait for core::Ptr { #[inline] fn as_raw_mut_Detail_Estimator(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_detail_BundleAdjusterRayG_to_PtrOfDetail_Estimator } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfDetail_BundleAdjusterRay") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfDetail_BundleAdjusterReproj = core::Ptr; ptr_extern! { crate::stitching::Detail_BundleAdjusterReproj, cv_PtrLcv_detail_BundleAdjusterReprojG_new_null_const, cv_PtrLcv_detail_BundleAdjusterReprojG_delete, cv_PtrLcv_detail_BundleAdjusterReprojG_getInnerPtr_const, cv_PtrLcv_detail_BundleAdjusterReprojG_getInnerPtrMut } ptr_extern_ctor! { crate::stitching::Detail_BundleAdjusterReproj, cv_PtrLcv_detail_BundleAdjusterReprojG_new_const_BundleAdjusterReproj } impl core::Ptr { #[inline] pub fn as_raw_PtrOfDetail_BundleAdjusterReproj(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfDetail_BundleAdjusterReproj(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::stitching::Detail_BundleAdjusterReprojTraitConst for core::Ptr { #[inline] fn as_raw_Detail_BundleAdjusterReproj(&self) -> *const c_void { self.inner_as_raw() } } impl crate::stitching::Detail_BundleAdjusterReprojTrait for core::Ptr { #[inline] fn as_raw_mut_Detail_BundleAdjusterReproj(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl crate::stitching::Detail_BundleAdjusterBaseTraitConst for core::Ptr { #[inline] fn as_raw_Detail_BundleAdjusterBase(&self) -> *const c_void { self.inner_as_raw() } } impl crate::stitching::Detail_BundleAdjusterBaseTrait for core::Ptr { #[inline] fn as_raw_mut_Detail_BundleAdjusterBase(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_detail_BundleAdjusterReprojG_to_PtrOfDetail_BundleAdjusterBase } impl crate::stitching::Detail_EstimatorTraitConst for core::Ptr { #[inline] fn as_raw_Detail_Estimator(&self) -> *const c_void { self.inner_as_raw() } } impl crate::stitching::Detail_EstimatorTrait for core::Ptr { #[inline] fn as_raw_mut_Detail_Estimator(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_detail_BundleAdjusterReprojG_to_PtrOfDetail_Estimator } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfDetail_BundleAdjusterReproj") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfDetail_ChannelsCompensator = core::Ptr; ptr_extern! { crate::stitching::Detail_ChannelsCompensator, cv_PtrLcv_detail_ChannelsCompensatorG_new_null_const, cv_PtrLcv_detail_ChannelsCompensatorG_delete, cv_PtrLcv_detail_ChannelsCompensatorG_getInnerPtr_const, cv_PtrLcv_detail_ChannelsCompensatorG_getInnerPtrMut } ptr_extern_ctor! { crate::stitching::Detail_ChannelsCompensator, cv_PtrLcv_detail_ChannelsCompensatorG_new_const_ChannelsCompensator } impl core::Ptr { #[inline] pub fn as_raw_PtrOfDetail_ChannelsCompensator(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfDetail_ChannelsCompensator(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::stitching::Detail_ChannelsCompensatorTraitConst for core::Ptr { #[inline] fn as_raw_Detail_ChannelsCompensator(&self) -> *const c_void { self.inner_as_raw() } } impl crate::stitching::Detail_ChannelsCompensatorTrait for core::Ptr { #[inline] fn as_raw_mut_Detail_ChannelsCompensator(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl crate::stitching::Detail_ExposureCompensatorTraitConst for core::Ptr { #[inline] fn as_raw_Detail_ExposureCompensator(&self) -> *const c_void { self.inner_as_raw() } } impl crate::stitching::Detail_ExposureCompensatorTrait for core::Ptr { #[inline] fn as_raw_mut_Detail_ExposureCompensator(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_detail_ChannelsCompensatorG_to_PtrOfDetail_ExposureCompensator } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfDetail_ChannelsCompensator") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfDetail_DpSeamFinder = core::Ptr; ptr_extern! { crate::stitching::Detail_DpSeamFinder, cv_PtrLcv_detail_DpSeamFinderG_new_null_const, cv_PtrLcv_detail_DpSeamFinderG_delete, cv_PtrLcv_detail_DpSeamFinderG_getInnerPtr_const, cv_PtrLcv_detail_DpSeamFinderG_getInnerPtrMut } ptr_extern_ctor! { crate::stitching::Detail_DpSeamFinder, cv_PtrLcv_detail_DpSeamFinderG_new_const_DpSeamFinder } impl core::Ptr { #[inline] pub fn as_raw_PtrOfDetail_DpSeamFinder(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfDetail_DpSeamFinder(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::stitching::Detail_DpSeamFinderTraitConst for core::Ptr { #[inline] fn as_raw_Detail_DpSeamFinder(&self) -> *const c_void { self.inner_as_raw() } } impl crate::stitching::Detail_DpSeamFinderTrait for core::Ptr { #[inline] fn as_raw_mut_Detail_DpSeamFinder(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl crate::stitching::Detail_SeamFinderTraitConst for core::Ptr { #[inline] fn as_raw_Detail_SeamFinder(&self) -> *const c_void { self.inner_as_raw() } } impl crate::stitching::Detail_SeamFinderTrait for core::Ptr { #[inline] fn as_raw_mut_Detail_SeamFinder(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_detail_DpSeamFinderG_to_PtrOfDetail_SeamFinder } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfDetail_DpSeamFinder") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfDetail_Estimator = core::Ptr; ptr_extern! { crate::stitching::Detail_Estimator, cv_PtrLcv_detail_EstimatorG_new_null_const, cv_PtrLcv_detail_EstimatorG_delete, cv_PtrLcv_detail_EstimatorG_getInnerPtr_const, cv_PtrLcv_detail_EstimatorG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfDetail_Estimator(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfDetail_Estimator(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::stitching::Detail_EstimatorTraitConst for core::Ptr { #[inline] fn as_raw_Detail_Estimator(&self) -> *const c_void { self.inner_as_raw() } } impl crate::stitching::Detail_EstimatorTrait for core::Ptr { #[inline] fn as_raw_mut_Detail_Estimator(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfDetail_Estimator") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfDetail_ExposureCompensator = core::Ptr; ptr_extern! { crate::stitching::Detail_ExposureCompensator, cv_PtrLcv_detail_ExposureCompensatorG_new_null_const, cv_PtrLcv_detail_ExposureCompensatorG_delete, cv_PtrLcv_detail_ExposureCompensatorG_getInnerPtr_const, cv_PtrLcv_detail_ExposureCompensatorG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfDetail_ExposureCompensator(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfDetail_ExposureCompensator(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::stitching::Detail_ExposureCompensatorTraitConst for core::Ptr { #[inline] fn as_raw_Detail_ExposureCompensator(&self) -> *const c_void { self.inner_as_raw() } } impl crate::stitching::Detail_ExposureCompensatorTrait for core::Ptr { #[inline] fn as_raw_mut_Detail_ExposureCompensator(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfDetail_ExposureCompensator") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfDetail_FeatherBlender = core::Ptr; ptr_extern! { crate::stitching::Detail_FeatherBlender, cv_PtrLcv_detail_FeatherBlenderG_new_null_const, cv_PtrLcv_detail_FeatherBlenderG_delete, cv_PtrLcv_detail_FeatherBlenderG_getInnerPtr_const, cv_PtrLcv_detail_FeatherBlenderG_getInnerPtrMut } ptr_extern_ctor! { crate::stitching::Detail_FeatherBlender, cv_PtrLcv_detail_FeatherBlenderG_new_const_FeatherBlender } impl core::Ptr { #[inline] pub fn as_raw_PtrOfDetail_FeatherBlender(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfDetail_FeatherBlender(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::stitching::Detail_FeatherBlenderTraitConst for core::Ptr { #[inline] fn as_raw_Detail_FeatherBlender(&self) -> *const c_void { self.inner_as_raw() } } impl crate::stitching::Detail_FeatherBlenderTrait for core::Ptr { #[inline] fn as_raw_mut_Detail_FeatherBlender(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl crate::stitching::Detail_BlenderTraitConst for core::Ptr { #[inline] fn as_raw_Detail_Blender(&self) -> *const c_void { self.inner_as_raw() } } impl crate::stitching::Detail_BlenderTrait for core::Ptr { #[inline] fn as_raw_mut_Detail_Blender(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_detail_FeatherBlenderG_to_PtrOfDetail_Blender } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfDetail_FeatherBlender") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfDetail_FeaturesMatcher = core::Ptr; ptr_extern! { crate::stitching::Detail_FeaturesMatcher, cv_PtrLcv_detail_FeaturesMatcherG_new_null_const, cv_PtrLcv_detail_FeaturesMatcherG_delete, cv_PtrLcv_detail_FeaturesMatcherG_getInnerPtr_const, cv_PtrLcv_detail_FeaturesMatcherG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfDetail_FeaturesMatcher(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfDetail_FeaturesMatcher(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::stitching::Detail_FeaturesMatcherTraitConst for core::Ptr { #[inline] fn as_raw_Detail_FeaturesMatcher(&self) -> *const c_void { self.inner_as_raw() } } impl crate::stitching::Detail_FeaturesMatcherTrait for core::Ptr { #[inline] fn as_raw_mut_Detail_FeaturesMatcher(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfDetail_FeaturesMatcher") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfDetail_GainCompensator = core::Ptr; ptr_extern! { crate::stitching::Detail_GainCompensator, cv_PtrLcv_detail_GainCompensatorG_new_null_const, cv_PtrLcv_detail_GainCompensatorG_delete, cv_PtrLcv_detail_GainCompensatorG_getInnerPtr_const, cv_PtrLcv_detail_GainCompensatorG_getInnerPtrMut } ptr_extern_ctor! { crate::stitching::Detail_GainCompensator, cv_PtrLcv_detail_GainCompensatorG_new_const_GainCompensator } impl core::Ptr { #[inline] pub fn as_raw_PtrOfDetail_GainCompensator(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfDetail_GainCompensator(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::stitching::Detail_GainCompensatorTraitConst for core::Ptr { #[inline] fn as_raw_Detail_GainCompensator(&self) -> *const c_void { self.inner_as_raw() } } impl crate::stitching::Detail_GainCompensatorTrait for core::Ptr { #[inline] fn as_raw_mut_Detail_GainCompensator(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl crate::stitching::Detail_ExposureCompensatorTraitConst for core::Ptr { #[inline] fn as_raw_Detail_ExposureCompensator(&self) -> *const c_void { self.inner_as_raw() } } impl crate::stitching::Detail_ExposureCompensatorTrait for core::Ptr { #[inline] fn as_raw_mut_Detail_ExposureCompensator(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_detail_GainCompensatorG_to_PtrOfDetail_ExposureCompensator } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfDetail_GainCompensator") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfDetail_GraphCutSeamFinder = core::Ptr; ptr_extern! { crate::stitching::Detail_GraphCutSeamFinder, cv_PtrLcv_detail_GraphCutSeamFinderG_new_null_const, cv_PtrLcv_detail_GraphCutSeamFinderG_delete, cv_PtrLcv_detail_GraphCutSeamFinderG_getInnerPtr_const, cv_PtrLcv_detail_GraphCutSeamFinderG_getInnerPtrMut } ptr_extern_ctor! { crate::stitching::Detail_GraphCutSeamFinder, cv_PtrLcv_detail_GraphCutSeamFinderG_new_const_GraphCutSeamFinder } impl core::Ptr { #[inline] pub fn as_raw_PtrOfDetail_GraphCutSeamFinder(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfDetail_GraphCutSeamFinder(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::stitching::Detail_GraphCutSeamFinderTraitConst for core::Ptr { #[inline] fn as_raw_Detail_GraphCutSeamFinder(&self) -> *const c_void { self.inner_as_raw() } } impl crate::stitching::Detail_GraphCutSeamFinderTrait for core::Ptr { #[inline] fn as_raw_mut_Detail_GraphCutSeamFinder(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl crate::stitching::Detail_GraphCutSeamFinderBaseTraitConst for core::Ptr { #[inline] fn as_raw_Detail_GraphCutSeamFinderBase(&self) -> *const c_void { self.inner_as_raw() } } impl crate::stitching::Detail_GraphCutSeamFinderBaseTrait for core::Ptr { #[inline] fn as_raw_mut_Detail_GraphCutSeamFinderBase(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_detail_GraphCutSeamFinderG_to_PtrOfDetail_GraphCutSeamFinderBase } impl crate::stitching::Detail_SeamFinderTraitConst for core::Ptr { #[inline] fn as_raw_Detail_SeamFinder(&self) -> *const c_void { self.inner_as_raw() } } impl crate::stitching::Detail_SeamFinderTrait for core::Ptr { #[inline] fn as_raw_mut_Detail_SeamFinder(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_detail_GraphCutSeamFinderG_to_PtrOfDetail_SeamFinder } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfDetail_GraphCutSeamFinder") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfDetail_GraphCutSeamFinderBase = core::Ptr; ptr_extern! { crate::stitching::Detail_GraphCutSeamFinderBase, cv_PtrLcv_detail_GraphCutSeamFinderBaseG_new_null_const, cv_PtrLcv_detail_GraphCutSeamFinderBaseG_delete, cv_PtrLcv_detail_GraphCutSeamFinderBaseG_getInnerPtr_const, cv_PtrLcv_detail_GraphCutSeamFinderBaseG_getInnerPtrMut } ptr_extern_ctor! { crate::stitching::Detail_GraphCutSeamFinderBase, cv_PtrLcv_detail_GraphCutSeamFinderBaseG_new_const_GraphCutSeamFinderBase } impl core::Ptr { #[inline] pub fn as_raw_PtrOfDetail_GraphCutSeamFinderBase(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfDetail_GraphCutSeamFinderBase(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::stitching::Detail_GraphCutSeamFinderBaseTraitConst for core::Ptr { #[inline] fn as_raw_Detail_GraphCutSeamFinderBase(&self) -> *const c_void { self.inner_as_raw() } } impl crate::stitching::Detail_GraphCutSeamFinderBaseTrait for core::Ptr { #[inline] fn as_raw_mut_Detail_GraphCutSeamFinderBase(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfDetail_GraphCutSeamFinderBase") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfDetail_GraphCutSeamFinderGpu = core::Ptr; ptr_extern! { crate::stitching::Detail_GraphCutSeamFinderGpu, cv_PtrLcv_detail_GraphCutSeamFinderGpuG_new_null_const, cv_PtrLcv_detail_GraphCutSeamFinderGpuG_delete, cv_PtrLcv_detail_GraphCutSeamFinderGpuG_getInnerPtr_const, cv_PtrLcv_detail_GraphCutSeamFinderGpuG_getInnerPtrMut } ptr_extern_ctor! { crate::stitching::Detail_GraphCutSeamFinderGpu, cv_PtrLcv_detail_GraphCutSeamFinderGpuG_new_const_GraphCutSeamFinderGpu } impl core::Ptr { #[inline] pub fn as_raw_PtrOfDetail_GraphCutSeamFinderGpu(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfDetail_GraphCutSeamFinderGpu(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::stitching::Detail_GraphCutSeamFinderGpuTraitConst for core::Ptr { #[inline] fn as_raw_Detail_GraphCutSeamFinderGpu(&self) -> *const c_void { self.inner_as_raw() } } impl crate::stitching::Detail_GraphCutSeamFinderGpuTrait for core::Ptr { #[inline] fn as_raw_mut_Detail_GraphCutSeamFinderGpu(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl crate::stitching::Detail_GraphCutSeamFinderBaseTraitConst for core::Ptr { #[inline] fn as_raw_Detail_GraphCutSeamFinderBase(&self) -> *const c_void { self.inner_as_raw() } } impl crate::stitching::Detail_GraphCutSeamFinderBaseTrait for core::Ptr { #[inline] fn as_raw_mut_Detail_GraphCutSeamFinderBase(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_detail_GraphCutSeamFinderGpuG_to_PtrOfDetail_GraphCutSeamFinderBase } impl crate::stitching::Detail_PairwiseSeamFinderTraitConst for core::Ptr { #[inline] fn as_raw_Detail_PairwiseSeamFinder(&self) -> *const c_void { self.inner_as_raw() } } impl crate::stitching::Detail_PairwiseSeamFinderTrait for core::Ptr { #[inline] fn as_raw_mut_Detail_PairwiseSeamFinder(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_detail_GraphCutSeamFinderGpuG_to_PtrOfDetail_PairwiseSeamFinder } impl crate::stitching::Detail_SeamFinderTraitConst for core::Ptr { #[inline] fn as_raw_Detail_SeamFinder(&self) -> *const c_void { self.inner_as_raw() } } impl crate::stitching::Detail_SeamFinderTrait for core::Ptr { #[inline] fn as_raw_mut_Detail_SeamFinder(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_detail_GraphCutSeamFinderGpuG_to_PtrOfDetail_SeamFinder } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfDetail_GraphCutSeamFinderGpu") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfDetail_HomographyBasedEstimator = core::Ptr; ptr_extern! { crate::stitching::Detail_HomographyBasedEstimator, cv_PtrLcv_detail_HomographyBasedEstimatorG_new_null_const, cv_PtrLcv_detail_HomographyBasedEstimatorG_delete, cv_PtrLcv_detail_HomographyBasedEstimatorG_getInnerPtr_const, cv_PtrLcv_detail_HomographyBasedEstimatorG_getInnerPtrMut } ptr_extern_ctor! { crate::stitching::Detail_HomographyBasedEstimator, cv_PtrLcv_detail_HomographyBasedEstimatorG_new_const_HomographyBasedEstimator } impl core::Ptr { #[inline] pub fn as_raw_PtrOfDetail_HomographyBasedEstimator(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfDetail_HomographyBasedEstimator(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::stitching::Detail_HomographyBasedEstimatorTraitConst for core::Ptr { #[inline] fn as_raw_Detail_HomographyBasedEstimator(&self) -> *const c_void { self.inner_as_raw() } } impl crate::stitching::Detail_HomographyBasedEstimatorTrait for core::Ptr { #[inline] fn as_raw_mut_Detail_HomographyBasedEstimator(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl crate::stitching::Detail_EstimatorTraitConst for core::Ptr { #[inline] fn as_raw_Detail_Estimator(&self) -> *const c_void { self.inner_as_raw() } } impl crate::stitching::Detail_EstimatorTrait for core::Ptr { #[inline] fn as_raw_mut_Detail_Estimator(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_detail_HomographyBasedEstimatorG_to_PtrOfDetail_Estimator } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfDetail_HomographyBasedEstimator") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfDetail_MultiBandBlender = core::Ptr; ptr_extern! { crate::stitching::Detail_MultiBandBlender, cv_PtrLcv_detail_MultiBandBlenderG_new_null_const, cv_PtrLcv_detail_MultiBandBlenderG_delete, cv_PtrLcv_detail_MultiBandBlenderG_getInnerPtr_const, cv_PtrLcv_detail_MultiBandBlenderG_getInnerPtrMut } ptr_extern_ctor! { crate::stitching::Detail_MultiBandBlender, cv_PtrLcv_detail_MultiBandBlenderG_new_const_MultiBandBlender } impl core::Ptr { #[inline] pub fn as_raw_PtrOfDetail_MultiBandBlender(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfDetail_MultiBandBlender(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::stitching::Detail_MultiBandBlenderTraitConst for core::Ptr { #[inline] fn as_raw_Detail_MultiBandBlender(&self) -> *const c_void { self.inner_as_raw() } } impl crate::stitching::Detail_MultiBandBlenderTrait for core::Ptr { #[inline] fn as_raw_mut_Detail_MultiBandBlender(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl crate::stitching::Detail_BlenderTraitConst for core::Ptr { #[inline] fn as_raw_Detail_Blender(&self) -> *const c_void { self.inner_as_raw() } } impl crate::stitching::Detail_BlenderTrait for core::Ptr { #[inline] fn as_raw_mut_Detail_Blender(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_detail_MultiBandBlenderG_to_PtrOfDetail_Blender } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfDetail_MultiBandBlender") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfDetail_NoBundleAdjuster = core::Ptr; ptr_extern! { crate::stitching::Detail_NoBundleAdjuster, cv_PtrLcv_detail_NoBundleAdjusterG_new_null_const, cv_PtrLcv_detail_NoBundleAdjusterG_delete, cv_PtrLcv_detail_NoBundleAdjusterG_getInnerPtr_const, cv_PtrLcv_detail_NoBundleAdjusterG_getInnerPtrMut } ptr_extern_ctor! { crate::stitching::Detail_NoBundleAdjuster, cv_PtrLcv_detail_NoBundleAdjusterG_new_const_NoBundleAdjuster } impl core::Ptr { #[inline] pub fn as_raw_PtrOfDetail_NoBundleAdjuster(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfDetail_NoBundleAdjuster(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::stitching::Detail_NoBundleAdjusterTraitConst for core::Ptr { #[inline] fn as_raw_Detail_NoBundleAdjuster(&self) -> *const c_void { self.inner_as_raw() } } impl crate::stitching::Detail_NoBundleAdjusterTrait for core::Ptr { #[inline] fn as_raw_mut_Detail_NoBundleAdjuster(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl crate::stitching::Detail_BundleAdjusterBaseTraitConst for core::Ptr { #[inline] fn as_raw_Detail_BundleAdjusterBase(&self) -> *const c_void { self.inner_as_raw() } } impl crate::stitching::Detail_BundleAdjusterBaseTrait for core::Ptr { #[inline] fn as_raw_mut_Detail_BundleAdjusterBase(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_detail_NoBundleAdjusterG_to_PtrOfDetail_BundleAdjusterBase } impl crate::stitching::Detail_EstimatorTraitConst for core::Ptr { #[inline] fn as_raw_Detail_Estimator(&self) -> *const c_void { self.inner_as_raw() } } impl crate::stitching::Detail_EstimatorTrait for core::Ptr { #[inline] fn as_raw_mut_Detail_Estimator(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_detail_NoBundleAdjusterG_to_PtrOfDetail_Estimator } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfDetail_NoBundleAdjuster") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfDetail_NoExposureCompensator = core::Ptr; ptr_extern! { crate::stitching::Detail_NoExposureCompensator, cv_PtrLcv_detail_NoExposureCompensatorG_new_null_const, cv_PtrLcv_detail_NoExposureCompensatorG_delete, cv_PtrLcv_detail_NoExposureCompensatorG_getInnerPtr_const, cv_PtrLcv_detail_NoExposureCompensatorG_getInnerPtrMut } ptr_extern_ctor! { crate::stitching::Detail_NoExposureCompensator, cv_PtrLcv_detail_NoExposureCompensatorG_new_const_NoExposureCompensator } impl core::Ptr { #[inline] pub fn as_raw_PtrOfDetail_NoExposureCompensator(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfDetail_NoExposureCompensator(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::stitching::Detail_NoExposureCompensatorTraitConst for core::Ptr { #[inline] fn as_raw_Detail_NoExposureCompensator(&self) -> *const c_void { self.inner_as_raw() } } impl crate::stitching::Detail_NoExposureCompensatorTrait for core::Ptr { #[inline] fn as_raw_mut_Detail_NoExposureCompensator(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl crate::stitching::Detail_ExposureCompensatorTraitConst for core::Ptr { #[inline] fn as_raw_Detail_ExposureCompensator(&self) -> *const c_void { self.inner_as_raw() } } impl crate::stitching::Detail_ExposureCompensatorTrait for core::Ptr { #[inline] fn as_raw_mut_Detail_ExposureCompensator(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_detail_NoExposureCompensatorG_to_PtrOfDetail_ExposureCompensator } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfDetail_NoExposureCompensator") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfDetail_NoSeamFinder = core::Ptr; ptr_extern! { crate::stitching::Detail_NoSeamFinder, cv_PtrLcv_detail_NoSeamFinderG_new_null_const, cv_PtrLcv_detail_NoSeamFinderG_delete, cv_PtrLcv_detail_NoSeamFinderG_getInnerPtr_const, cv_PtrLcv_detail_NoSeamFinderG_getInnerPtrMut } ptr_extern_ctor! { crate::stitching::Detail_NoSeamFinder, cv_PtrLcv_detail_NoSeamFinderG_new_const_NoSeamFinder } impl core::Ptr { #[inline] pub fn as_raw_PtrOfDetail_NoSeamFinder(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfDetail_NoSeamFinder(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::stitching::Detail_NoSeamFinderTraitConst for core::Ptr { #[inline] fn as_raw_Detail_NoSeamFinder(&self) -> *const c_void { self.inner_as_raw() } } impl crate::stitching::Detail_NoSeamFinderTrait for core::Ptr { #[inline] fn as_raw_mut_Detail_NoSeamFinder(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl crate::stitching::Detail_SeamFinderTraitConst for core::Ptr { #[inline] fn as_raw_Detail_SeamFinder(&self) -> *const c_void { self.inner_as_raw() } } impl crate::stitching::Detail_SeamFinderTrait for core::Ptr { #[inline] fn as_raw_mut_Detail_SeamFinder(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_detail_NoSeamFinderG_to_PtrOfDetail_SeamFinder } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfDetail_NoSeamFinder") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfDetail_PairwiseSeamFinder = core::Ptr; ptr_extern! { crate::stitching::Detail_PairwiseSeamFinder, cv_PtrLcv_detail_PairwiseSeamFinderG_new_null_const, cv_PtrLcv_detail_PairwiseSeamFinderG_delete, cv_PtrLcv_detail_PairwiseSeamFinderG_getInnerPtr_const, cv_PtrLcv_detail_PairwiseSeamFinderG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfDetail_PairwiseSeamFinder(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfDetail_PairwiseSeamFinder(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::stitching::Detail_PairwiseSeamFinderTraitConst for core::Ptr { #[inline] fn as_raw_Detail_PairwiseSeamFinder(&self) -> *const c_void { self.inner_as_raw() } } impl crate::stitching::Detail_PairwiseSeamFinderTrait for core::Ptr { #[inline] fn as_raw_mut_Detail_PairwiseSeamFinder(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl crate::stitching::Detail_SeamFinderTraitConst for core::Ptr { #[inline] fn as_raw_Detail_SeamFinder(&self) -> *const c_void { self.inner_as_raw() } } impl crate::stitching::Detail_SeamFinderTrait for core::Ptr { #[inline] fn as_raw_mut_Detail_SeamFinder(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_detail_PairwiseSeamFinderG_to_PtrOfDetail_SeamFinder } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfDetail_PairwiseSeamFinder") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfDetail_RotationWarper = core::Ptr; ptr_extern! { crate::stitching::Detail_RotationWarper, cv_PtrLcv_detail_RotationWarperG_new_null_const, cv_PtrLcv_detail_RotationWarperG_delete, cv_PtrLcv_detail_RotationWarperG_getInnerPtr_const, cv_PtrLcv_detail_RotationWarperG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfDetail_RotationWarper(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfDetail_RotationWarper(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::stitching::Detail_RotationWarperTraitConst for core::Ptr { #[inline] fn as_raw_Detail_RotationWarper(&self) -> *const c_void { self.inner_as_raw() } } impl crate::stitching::Detail_RotationWarperTrait for core::Ptr { #[inline] fn as_raw_mut_Detail_RotationWarper(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfDetail_RotationWarper") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfDetail_SeamFinder = core::Ptr; ptr_extern! { crate::stitching::Detail_SeamFinder, cv_PtrLcv_detail_SeamFinderG_new_null_const, cv_PtrLcv_detail_SeamFinderG_delete, cv_PtrLcv_detail_SeamFinderG_getInnerPtr_const, cv_PtrLcv_detail_SeamFinderG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfDetail_SeamFinder(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfDetail_SeamFinder(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::stitching::Detail_SeamFinderTraitConst for core::Ptr { #[inline] fn as_raw_Detail_SeamFinder(&self) -> *const c_void { self.inner_as_raw() } } impl crate::stitching::Detail_SeamFinderTrait for core::Ptr { #[inline] fn as_raw_mut_Detail_SeamFinder(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfDetail_SeamFinder") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfDetail_VoronoiSeamFinder = core::Ptr; ptr_extern! { crate::stitching::Detail_VoronoiSeamFinder, cv_PtrLcv_detail_VoronoiSeamFinderG_new_null_const, cv_PtrLcv_detail_VoronoiSeamFinderG_delete, cv_PtrLcv_detail_VoronoiSeamFinderG_getInnerPtr_const, cv_PtrLcv_detail_VoronoiSeamFinderG_getInnerPtrMut } ptr_extern_ctor! { crate::stitching::Detail_VoronoiSeamFinder, cv_PtrLcv_detail_VoronoiSeamFinderG_new_const_VoronoiSeamFinder } impl core::Ptr { #[inline] pub fn as_raw_PtrOfDetail_VoronoiSeamFinder(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfDetail_VoronoiSeamFinder(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::stitching::Detail_VoronoiSeamFinderTraitConst for core::Ptr { #[inline] fn as_raw_Detail_VoronoiSeamFinder(&self) -> *const c_void { self.inner_as_raw() } } impl crate::stitching::Detail_VoronoiSeamFinderTrait for core::Ptr { #[inline] fn as_raw_mut_Detail_VoronoiSeamFinder(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl crate::stitching::Detail_PairwiseSeamFinderTraitConst for core::Ptr { #[inline] fn as_raw_Detail_PairwiseSeamFinder(&self) -> *const c_void { self.inner_as_raw() } } impl crate::stitching::Detail_PairwiseSeamFinderTrait for core::Ptr { #[inline] fn as_raw_mut_Detail_PairwiseSeamFinder(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_detail_VoronoiSeamFinderG_to_PtrOfDetail_PairwiseSeamFinder } impl crate::stitching::Detail_SeamFinderTraitConst for core::Ptr { #[inline] fn as_raw_Detail_SeamFinder(&self) -> *const c_void { self.inner_as_raw() } } impl crate::stitching::Detail_SeamFinderTrait for core::Ptr { #[inline] fn as_raw_mut_Detail_SeamFinder(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_detail_VoronoiSeamFinderG_to_PtrOfDetail_SeamFinder } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfDetail_VoronoiSeamFinder") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfFisheyeWarper = core::Ptr; ptr_extern! { crate::stitching::FisheyeWarper, cv_PtrLcv_FisheyeWarperG_new_null_const, cv_PtrLcv_FisheyeWarperG_delete, cv_PtrLcv_FisheyeWarperG_getInnerPtr_const, cv_PtrLcv_FisheyeWarperG_getInnerPtrMut } ptr_extern_ctor! { crate::stitching::FisheyeWarper, cv_PtrLcv_FisheyeWarperG_new_const_FisheyeWarper } impl core::Ptr { #[inline] pub fn as_raw_PtrOfFisheyeWarper(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfFisheyeWarper(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::stitching::FisheyeWarperTraitConst for core::Ptr { #[inline] fn as_raw_FisheyeWarper(&self) -> *const c_void { self.inner_as_raw() } } impl crate::stitching::FisheyeWarperTrait for core::Ptr { #[inline] fn as_raw_mut_FisheyeWarper(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl crate::stitching::WarperCreatorTraitConst for core::Ptr { #[inline] fn as_raw_WarperCreator(&self) -> *const c_void { self.inner_as_raw() } } impl crate::stitching::WarperCreatorTrait for core::Ptr { #[inline] fn as_raw_mut_WarperCreator(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_FisheyeWarperG_to_PtrOfWarperCreator } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfFisheyeWarper") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfMercatorWarper = core::Ptr; ptr_extern! { crate::stitching::MercatorWarper, cv_PtrLcv_MercatorWarperG_new_null_const, cv_PtrLcv_MercatorWarperG_delete, cv_PtrLcv_MercatorWarperG_getInnerPtr_const, cv_PtrLcv_MercatorWarperG_getInnerPtrMut } ptr_extern_ctor! { crate::stitching::MercatorWarper, cv_PtrLcv_MercatorWarperG_new_const_MercatorWarper } impl core::Ptr { #[inline] pub fn as_raw_PtrOfMercatorWarper(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfMercatorWarper(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::stitching::MercatorWarperTraitConst for core::Ptr { #[inline] fn as_raw_MercatorWarper(&self) -> *const c_void { self.inner_as_raw() } } impl crate::stitching::MercatorWarperTrait for core::Ptr { #[inline] fn as_raw_mut_MercatorWarper(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl crate::stitching::WarperCreatorTraitConst for core::Ptr { #[inline] fn as_raw_WarperCreator(&self) -> *const c_void { self.inner_as_raw() } } impl crate::stitching::WarperCreatorTrait for core::Ptr { #[inline] fn as_raw_mut_WarperCreator(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_MercatorWarperG_to_PtrOfWarperCreator } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfMercatorWarper") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfPaniniPortraitWarper = core::Ptr; ptr_extern! { crate::stitching::PaniniPortraitWarper, cv_PtrLcv_PaniniPortraitWarperG_new_null_const, cv_PtrLcv_PaniniPortraitWarperG_delete, cv_PtrLcv_PaniniPortraitWarperG_getInnerPtr_const, cv_PtrLcv_PaniniPortraitWarperG_getInnerPtrMut } ptr_extern_ctor! { crate::stitching::PaniniPortraitWarper, cv_PtrLcv_PaniniPortraitWarperG_new_const_PaniniPortraitWarper } impl core::Ptr { #[inline] pub fn as_raw_PtrOfPaniniPortraitWarper(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfPaniniPortraitWarper(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::stitching::PaniniPortraitWarperTraitConst for core::Ptr { #[inline] fn as_raw_PaniniPortraitWarper(&self) -> *const c_void { self.inner_as_raw() } } impl crate::stitching::PaniniPortraitWarperTrait for core::Ptr { #[inline] fn as_raw_mut_PaniniPortraitWarper(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl crate::stitching::WarperCreatorTraitConst for core::Ptr { #[inline] fn as_raw_WarperCreator(&self) -> *const c_void { self.inner_as_raw() } } impl crate::stitching::WarperCreatorTrait for core::Ptr { #[inline] fn as_raw_mut_WarperCreator(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_PaniniPortraitWarperG_to_PtrOfWarperCreator } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfPaniniPortraitWarper") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfPaniniWarper = core::Ptr; ptr_extern! { crate::stitching::PaniniWarper, cv_PtrLcv_PaniniWarperG_new_null_const, cv_PtrLcv_PaniniWarperG_delete, cv_PtrLcv_PaniniWarperG_getInnerPtr_const, cv_PtrLcv_PaniniWarperG_getInnerPtrMut } ptr_extern_ctor! { crate::stitching::PaniniWarper, cv_PtrLcv_PaniniWarperG_new_const_PaniniWarper } impl core::Ptr { #[inline] pub fn as_raw_PtrOfPaniniWarper(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfPaniniWarper(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::stitching::PaniniWarperTraitConst for core::Ptr { #[inline] fn as_raw_PaniniWarper(&self) -> *const c_void { self.inner_as_raw() } } impl crate::stitching::PaniniWarperTrait for core::Ptr { #[inline] fn as_raw_mut_PaniniWarper(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl crate::stitching::WarperCreatorTraitConst for core::Ptr { #[inline] fn as_raw_WarperCreator(&self) -> *const c_void { self.inner_as_raw() } } impl crate::stitching::WarperCreatorTrait for core::Ptr { #[inline] fn as_raw_mut_WarperCreator(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_PaniniWarperG_to_PtrOfWarperCreator } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfPaniniWarper") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfPlaneWarper = core::Ptr; ptr_extern! { crate::stitching::PlaneWarper, cv_PtrLcv_PlaneWarperG_new_null_const, cv_PtrLcv_PlaneWarperG_delete, cv_PtrLcv_PlaneWarperG_getInnerPtr_const, cv_PtrLcv_PlaneWarperG_getInnerPtrMut } ptr_extern_ctor! { crate::stitching::PlaneWarper, cv_PtrLcv_PlaneWarperG_new_const_PlaneWarper } impl core::Ptr { #[inline] pub fn as_raw_PtrOfPlaneWarper(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfPlaneWarper(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::stitching::PlaneWarperTraitConst for core::Ptr { #[inline] fn as_raw_PlaneWarper(&self) -> *const c_void { self.inner_as_raw() } } impl crate::stitching::PlaneWarperTrait for core::Ptr { #[inline] fn as_raw_mut_PlaneWarper(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl crate::stitching::WarperCreatorTraitConst for core::Ptr { #[inline] fn as_raw_WarperCreator(&self) -> *const c_void { self.inner_as_raw() } } impl crate::stitching::WarperCreatorTrait for core::Ptr { #[inline] fn as_raw_mut_WarperCreator(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_PlaneWarperG_to_PtrOfWarperCreator } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfPlaneWarper") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfPlaneWarperGpu = core::Ptr; ptr_extern! { crate::stitching::PlaneWarperGpu, cv_PtrLcv_PlaneWarperGpuG_new_null_const, cv_PtrLcv_PlaneWarperGpuG_delete, cv_PtrLcv_PlaneWarperGpuG_getInnerPtr_const, cv_PtrLcv_PlaneWarperGpuG_getInnerPtrMut } ptr_extern_ctor! { crate::stitching::PlaneWarperGpu, cv_PtrLcv_PlaneWarperGpuG_new_const_PlaneWarperGpu } impl core::Ptr { #[inline] pub fn as_raw_PtrOfPlaneWarperGpu(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfPlaneWarperGpu(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::stitching::PlaneWarperGpuTraitConst for core::Ptr { #[inline] fn as_raw_PlaneWarperGpu(&self) -> *const c_void { self.inner_as_raw() } } impl crate::stitching::PlaneWarperGpuTrait for core::Ptr { #[inline] fn as_raw_mut_PlaneWarperGpu(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl crate::stitching::WarperCreatorTraitConst for core::Ptr { #[inline] fn as_raw_WarperCreator(&self) -> *const c_void { self.inner_as_raw() } } impl crate::stitching::WarperCreatorTrait for core::Ptr { #[inline] fn as_raw_mut_WarperCreator(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_PlaneWarperGpuG_to_PtrOfWarperCreator } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfPlaneWarperGpu") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfSphericalWarper = core::Ptr; ptr_extern! { crate::stitching::SphericalWarper, cv_PtrLcv_SphericalWarperG_new_null_const, cv_PtrLcv_SphericalWarperG_delete, cv_PtrLcv_SphericalWarperG_getInnerPtr_const, cv_PtrLcv_SphericalWarperG_getInnerPtrMut } ptr_extern_ctor! { crate::stitching::SphericalWarper, cv_PtrLcv_SphericalWarperG_new_const_SphericalWarper } impl core::Ptr { #[inline] pub fn as_raw_PtrOfSphericalWarper(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfSphericalWarper(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::stitching::SphericalWarperTraitConst for core::Ptr { #[inline] fn as_raw_SphericalWarper(&self) -> *const c_void { self.inner_as_raw() } } impl crate::stitching::SphericalWarperTrait for core::Ptr { #[inline] fn as_raw_mut_SphericalWarper(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl crate::stitching::WarperCreatorTraitConst for core::Ptr { #[inline] fn as_raw_WarperCreator(&self) -> *const c_void { self.inner_as_raw() } } impl crate::stitching::WarperCreatorTrait for core::Ptr { #[inline] fn as_raw_mut_WarperCreator(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_SphericalWarperG_to_PtrOfWarperCreator } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfSphericalWarper") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfSphericalWarperGpu = core::Ptr; ptr_extern! { crate::stitching::SphericalWarperGpu, cv_PtrLcv_SphericalWarperGpuG_new_null_const, cv_PtrLcv_SphericalWarperGpuG_delete, cv_PtrLcv_SphericalWarperGpuG_getInnerPtr_const, cv_PtrLcv_SphericalWarperGpuG_getInnerPtrMut } ptr_extern_ctor! { crate::stitching::SphericalWarperGpu, cv_PtrLcv_SphericalWarperGpuG_new_const_SphericalWarperGpu } impl core::Ptr { #[inline] pub fn as_raw_PtrOfSphericalWarperGpu(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfSphericalWarperGpu(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::stitching::SphericalWarperGpuTraitConst for core::Ptr { #[inline] fn as_raw_SphericalWarperGpu(&self) -> *const c_void { self.inner_as_raw() } } impl crate::stitching::SphericalWarperGpuTrait for core::Ptr { #[inline] fn as_raw_mut_SphericalWarperGpu(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl crate::stitching::WarperCreatorTraitConst for core::Ptr { #[inline] fn as_raw_WarperCreator(&self) -> *const c_void { self.inner_as_raw() } } impl crate::stitching::WarperCreatorTrait for core::Ptr { #[inline] fn as_raw_mut_WarperCreator(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_SphericalWarperGpuG_to_PtrOfWarperCreator } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfSphericalWarperGpu") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfStereographicWarper = core::Ptr; ptr_extern! { crate::stitching::StereographicWarper, cv_PtrLcv_StereographicWarperG_new_null_const, cv_PtrLcv_StereographicWarperG_delete, cv_PtrLcv_StereographicWarperG_getInnerPtr_const, cv_PtrLcv_StereographicWarperG_getInnerPtrMut } ptr_extern_ctor! { crate::stitching::StereographicWarper, cv_PtrLcv_StereographicWarperG_new_const_StereographicWarper } impl core::Ptr { #[inline] pub fn as_raw_PtrOfStereographicWarper(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfStereographicWarper(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::stitching::StereographicWarperTraitConst for core::Ptr { #[inline] fn as_raw_StereographicWarper(&self) -> *const c_void { self.inner_as_raw() } } impl crate::stitching::StereographicWarperTrait for core::Ptr { #[inline] fn as_raw_mut_StereographicWarper(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl crate::stitching::WarperCreatorTraitConst for core::Ptr { #[inline] fn as_raw_WarperCreator(&self) -> *const c_void { self.inner_as_raw() } } impl crate::stitching::WarperCreatorTrait for core::Ptr { #[inline] fn as_raw_mut_WarperCreator(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_StereographicWarperG_to_PtrOfWarperCreator } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfStereographicWarper") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfStitcher = core::Ptr; ptr_extern! { crate::stitching::Stitcher, cv_PtrLcv_StitcherG_new_null_const, cv_PtrLcv_StitcherG_delete, cv_PtrLcv_StitcherG_getInnerPtr_const, cv_PtrLcv_StitcherG_getInnerPtrMut } ptr_extern_ctor! { crate::stitching::Stitcher, cv_PtrLcv_StitcherG_new_const_Stitcher } impl core::Ptr { #[inline] pub fn as_raw_PtrOfStitcher(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfStitcher(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::stitching::StitcherTraitConst for core::Ptr { #[inline] fn as_raw_Stitcher(&self) -> *const c_void { self.inner_as_raw() } } impl crate::stitching::StitcherTrait for core::Ptr { #[inline] fn as_raw_mut_Stitcher(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfStitcher") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfTransverseMercatorWarper = core::Ptr; ptr_extern! { crate::stitching::TransverseMercatorWarper, cv_PtrLcv_TransverseMercatorWarperG_new_null_const, cv_PtrLcv_TransverseMercatorWarperG_delete, cv_PtrLcv_TransverseMercatorWarperG_getInnerPtr_const, cv_PtrLcv_TransverseMercatorWarperG_getInnerPtrMut } ptr_extern_ctor! { crate::stitching::TransverseMercatorWarper, cv_PtrLcv_TransverseMercatorWarperG_new_const_TransverseMercatorWarper } impl core::Ptr { #[inline] pub fn as_raw_PtrOfTransverseMercatorWarper(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfTransverseMercatorWarper(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::stitching::TransverseMercatorWarperTraitConst for core::Ptr { #[inline] fn as_raw_TransverseMercatorWarper(&self) -> *const c_void { self.inner_as_raw() } } impl crate::stitching::TransverseMercatorWarperTrait for core::Ptr { #[inline] fn as_raw_mut_TransverseMercatorWarper(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl crate::stitching::WarperCreatorTraitConst for core::Ptr { #[inline] fn as_raw_WarperCreator(&self) -> *const c_void { self.inner_as_raw() } } impl crate::stitching::WarperCreatorTrait for core::Ptr { #[inline] fn as_raw_mut_WarperCreator(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_TransverseMercatorWarperG_to_PtrOfWarperCreator } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfTransverseMercatorWarper") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfWarperCreator = core::Ptr; ptr_extern! { crate::stitching::WarperCreator, cv_PtrLcv_WarperCreatorG_new_null_const, cv_PtrLcv_WarperCreatorG_delete, cv_PtrLcv_WarperCreatorG_getInnerPtr_const, cv_PtrLcv_WarperCreatorG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfWarperCreator(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfWarperCreator(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::stitching::WarperCreatorTraitConst for core::Ptr { #[inline] fn as_raw_WarperCreator(&self) -> *const c_void { self.inner_as_raw() } } impl crate::stitching::WarperCreatorTrait for core::Ptr { #[inline] fn as_raw_mut_WarperCreator(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfWarperCreator") .finish() } } #[deprecated = "Use the the non-alias form `core::Vector` instead, removal in Nov 2024"] pub type VectorOfDetail_CameraParams = core::Vector; impl core::Vector { pub fn as_raw_VectorOfDetail_CameraParams(&self) -> extern_send!(Self) { self.as_raw() } pub fn as_raw_mut_VectorOfDetail_CameraParams(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } vector_extern! { crate::stitching::Detail_CameraParams, std_vectorLcv_detail_CameraParamsG_new_const, std_vectorLcv_detail_CameraParamsG_delete, std_vectorLcv_detail_CameraParamsG_len_const, std_vectorLcv_detail_CameraParamsG_isEmpty_const, std_vectorLcv_detail_CameraParamsG_capacity_const, std_vectorLcv_detail_CameraParamsG_shrinkToFit, std_vectorLcv_detail_CameraParamsG_reserve_size_t, std_vectorLcv_detail_CameraParamsG_remove_size_t, std_vectorLcv_detail_CameraParamsG_swap_size_t_size_t, std_vectorLcv_detail_CameraParamsG_clear, std_vectorLcv_detail_CameraParamsG_get_const_size_t, std_vectorLcv_detail_CameraParamsG_set_size_t_const_CameraParams, std_vectorLcv_detail_CameraParamsG_push_const_CameraParams, std_vectorLcv_detail_CameraParamsG_insert_size_t_const_CameraParams, } vector_non_copy_or_bool! { clone crate::stitching::Detail_CameraParams } vector_boxed_ref! { crate::stitching::Detail_CameraParams } vector_extern! { BoxedRef<'t, crate::stitching::Detail_CameraParams>, std_vectorLcv_detail_CameraParamsG_new_const, std_vectorLcv_detail_CameraParamsG_delete, std_vectorLcv_detail_CameraParamsG_len_const, std_vectorLcv_detail_CameraParamsG_isEmpty_const, std_vectorLcv_detail_CameraParamsG_capacity_const, std_vectorLcv_detail_CameraParamsG_shrinkToFit, std_vectorLcv_detail_CameraParamsG_reserve_size_t, std_vectorLcv_detail_CameraParamsG_remove_size_t, std_vectorLcv_detail_CameraParamsG_swap_size_t_size_t, std_vectorLcv_detail_CameraParamsG_clear, std_vectorLcv_detail_CameraParamsG_get_const_size_t, std_vectorLcv_detail_CameraParamsG_set_size_t_const_CameraParams, std_vectorLcv_detail_CameraParamsG_push_const_CameraParams, std_vectorLcv_detail_CameraParamsG_insert_size_t_const_CameraParams, } #[deprecated = "Use the the non-alias form `core::Vector` instead, removal in Nov 2024"] pub type VectorOfDetail_ImageFeatures = core::Vector; impl core::Vector { pub fn as_raw_VectorOfDetail_ImageFeatures(&self) -> extern_send!(Self) { self.as_raw() } pub fn as_raw_mut_VectorOfDetail_ImageFeatures(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } vector_extern! { crate::stitching::Detail_ImageFeatures, std_vectorLcv_detail_ImageFeaturesG_new_const, std_vectorLcv_detail_ImageFeaturesG_delete, std_vectorLcv_detail_ImageFeaturesG_len_const, std_vectorLcv_detail_ImageFeaturesG_isEmpty_const, std_vectorLcv_detail_ImageFeaturesG_capacity_const, std_vectorLcv_detail_ImageFeaturesG_shrinkToFit, std_vectorLcv_detail_ImageFeaturesG_reserve_size_t, std_vectorLcv_detail_ImageFeaturesG_remove_size_t, std_vectorLcv_detail_ImageFeaturesG_swap_size_t_size_t, std_vectorLcv_detail_ImageFeaturesG_clear, std_vectorLcv_detail_ImageFeaturesG_get_const_size_t, std_vectorLcv_detail_ImageFeaturesG_set_size_t_const_ImageFeatures, std_vectorLcv_detail_ImageFeaturesG_push_const_ImageFeatures, std_vectorLcv_detail_ImageFeaturesG_insert_size_t_const_ImageFeatures, } vector_non_copy_or_bool! { clone crate::stitching::Detail_ImageFeatures } vector_boxed_ref! { crate::stitching::Detail_ImageFeatures } vector_extern! { BoxedRef<'t, crate::stitching::Detail_ImageFeatures>, std_vectorLcv_detail_ImageFeaturesG_new_const, std_vectorLcv_detail_ImageFeaturesG_delete, std_vectorLcv_detail_ImageFeaturesG_len_const, std_vectorLcv_detail_ImageFeaturesG_isEmpty_const, std_vectorLcv_detail_ImageFeaturesG_capacity_const, std_vectorLcv_detail_ImageFeaturesG_shrinkToFit, std_vectorLcv_detail_ImageFeaturesG_reserve_size_t, std_vectorLcv_detail_ImageFeaturesG_remove_size_t, std_vectorLcv_detail_ImageFeaturesG_swap_size_t_size_t, std_vectorLcv_detail_ImageFeaturesG_clear, std_vectorLcv_detail_ImageFeaturesG_get_const_size_t, std_vectorLcv_detail_ImageFeaturesG_set_size_t_const_ImageFeatures, std_vectorLcv_detail_ImageFeaturesG_push_const_ImageFeatures, std_vectorLcv_detail_ImageFeaturesG_insert_size_t_const_ImageFeatures, } #[deprecated = "Use the the non-alias form `core::Vector` instead, removal in Nov 2024"] pub type VectorOfDetail_MatchesInfo = core::Vector; impl core::Vector { pub fn as_raw_VectorOfDetail_MatchesInfo(&self) -> extern_send!(Self) { self.as_raw() } pub fn as_raw_mut_VectorOfDetail_MatchesInfo(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } vector_extern! { crate::stitching::Detail_MatchesInfo, std_vectorLcv_detail_MatchesInfoG_new_const, std_vectorLcv_detail_MatchesInfoG_delete, std_vectorLcv_detail_MatchesInfoG_len_const, std_vectorLcv_detail_MatchesInfoG_isEmpty_const, std_vectorLcv_detail_MatchesInfoG_capacity_const, std_vectorLcv_detail_MatchesInfoG_shrinkToFit, std_vectorLcv_detail_MatchesInfoG_reserve_size_t, std_vectorLcv_detail_MatchesInfoG_remove_size_t, std_vectorLcv_detail_MatchesInfoG_swap_size_t_size_t, std_vectorLcv_detail_MatchesInfoG_clear, std_vectorLcv_detail_MatchesInfoG_get_const_size_t, std_vectorLcv_detail_MatchesInfoG_set_size_t_const_MatchesInfo, std_vectorLcv_detail_MatchesInfoG_push_const_MatchesInfo, std_vectorLcv_detail_MatchesInfoG_insert_size_t_const_MatchesInfo, } vector_non_copy_or_bool! { clone crate::stitching::Detail_MatchesInfo } vector_boxed_ref! { crate::stitching::Detail_MatchesInfo } vector_extern! { BoxedRef<'t, crate::stitching::Detail_MatchesInfo>, std_vectorLcv_detail_MatchesInfoG_new_const, std_vectorLcv_detail_MatchesInfoG_delete, std_vectorLcv_detail_MatchesInfoG_len_const, std_vectorLcv_detail_MatchesInfoG_isEmpty_const, std_vectorLcv_detail_MatchesInfoG_capacity_const, std_vectorLcv_detail_MatchesInfoG_shrinkToFit, std_vectorLcv_detail_MatchesInfoG_reserve_size_t, std_vectorLcv_detail_MatchesInfoG_remove_size_t, std_vectorLcv_detail_MatchesInfoG_swap_size_t_size_t, std_vectorLcv_detail_MatchesInfoG_clear, std_vectorLcv_detail_MatchesInfoG_get_const_size_t, std_vectorLcv_detail_MatchesInfoG_set_size_t_const_MatchesInfo, std_vectorLcv_detail_MatchesInfoG_push_const_MatchesInfo, std_vectorLcv_detail_MatchesInfoG_insert_size_t_const_MatchesInfo, } } #[cfg(ocvrs_has_module_stitching)] pub use stitching_types::*; #[cfg(ocvrs_has_module_structured_light)] mod structured_light_types { use crate::{mod_prelude::*, core, types, sys}; #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfGrayCodePattern = core::Ptr; ptr_extern! { crate::structured_light::GrayCodePattern, cv_PtrLcv_structured_light_GrayCodePatternG_new_null_const, cv_PtrLcv_structured_light_GrayCodePatternG_delete, cv_PtrLcv_structured_light_GrayCodePatternG_getInnerPtr_const, cv_PtrLcv_structured_light_GrayCodePatternG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfGrayCodePattern(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfGrayCodePattern(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::structured_light::GrayCodePatternTraitConst for core::Ptr { #[inline] fn as_raw_GrayCodePattern(&self) -> *const c_void { self.inner_as_raw() } } impl crate::structured_light::GrayCodePatternTrait for core::Ptr { #[inline] fn as_raw_mut_GrayCodePattern(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_structured_light_GrayCodePatternG_to_PtrOfAlgorithm } impl crate::structured_light::StructuredLightPatternTraitConst for core::Ptr { #[inline] fn as_raw_StructuredLightPattern(&self) -> *const c_void { self.inner_as_raw() } } impl crate::structured_light::StructuredLightPatternTrait for core::Ptr { #[inline] fn as_raw_mut_StructuredLightPattern(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_structured_light_GrayCodePatternG_to_PtrOfStructuredLightPattern } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfGrayCodePattern") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfSinusoidalPattern = core::Ptr; ptr_extern! { crate::structured_light::SinusoidalPattern, cv_PtrLcv_structured_light_SinusoidalPatternG_new_null_const, cv_PtrLcv_structured_light_SinusoidalPatternG_delete, cv_PtrLcv_structured_light_SinusoidalPatternG_getInnerPtr_const, cv_PtrLcv_structured_light_SinusoidalPatternG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfSinusoidalPattern(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfSinusoidalPattern(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::structured_light::SinusoidalPatternTraitConst for core::Ptr { #[inline] fn as_raw_SinusoidalPattern(&self) -> *const c_void { self.inner_as_raw() } } impl crate::structured_light::SinusoidalPatternTrait for core::Ptr { #[inline] fn as_raw_mut_SinusoidalPattern(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_structured_light_SinusoidalPatternG_to_PtrOfAlgorithm } impl crate::structured_light::StructuredLightPatternTraitConst for core::Ptr { #[inline] fn as_raw_StructuredLightPattern(&self) -> *const c_void { self.inner_as_raw() } } impl crate::structured_light::StructuredLightPatternTrait for core::Ptr { #[inline] fn as_raw_mut_StructuredLightPattern(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_structured_light_SinusoidalPatternG_to_PtrOfStructuredLightPattern } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfSinusoidalPattern") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfSinusoidalPattern_Params = core::Ptr; ptr_extern! { crate::structured_light::SinusoidalPattern_Params, cv_PtrLcv_structured_light_SinusoidalPattern_ParamsG_new_null_const, cv_PtrLcv_structured_light_SinusoidalPattern_ParamsG_delete, cv_PtrLcv_structured_light_SinusoidalPattern_ParamsG_getInnerPtr_const, cv_PtrLcv_structured_light_SinusoidalPattern_ParamsG_getInnerPtrMut } ptr_extern_ctor! { crate::structured_light::SinusoidalPattern_Params, cv_PtrLcv_structured_light_SinusoidalPattern_ParamsG_new_const_Params } impl core::Ptr { #[inline] pub fn as_raw_PtrOfSinusoidalPattern_Params(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfSinusoidalPattern_Params(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::structured_light::SinusoidalPattern_ParamsTraitConst for core::Ptr { #[inline] fn as_raw_SinusoidalPattern_Params(&self) -> *const c_void { self.inner_as_raw() } } impl crate::structured_light::SinusoidalPattern_ParamsTrait for core::Ptr { #[inline] fn as_raw_mut_SinusoidalPattern_Params(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfSinusoidalPattern_Params") .field("width", &crate::structured_light::SinusoidalPattern_ParamsTraitConst::width(self)) .field("height", &crate::structured_light::SinusoidalPattern_ParamsTraitConst::height(self)) .field("nbr_of_periods", &crate::structured_light::SinusoidalPattern_ParamsTraitConst::nbr_of_periods(self)) .field("shift_value", &crate::structured_light::SinusoidalPattern_ParamsTraitConst::shift_value(self)) .field("method_id", &crate::structured_light::SinusoidalPattern_ParamsTraitConst::method_id(self)) .field("nbr_of_pixels_between_markers", &crate::structured_light::SinusoidalPattern_ParamsTraitConst::nbr_of_pixels_between_markers(self)) .field("horizontal", &crate::structured_light::SinusoidalPattern_ParamsTraitConst::horizontal(self)) .field("set_markers", &crate::structured_light::SinusoidalPattern_ParamsTraitConst::set_markers(self)) .field("markers_location", &crate::structured_light::SinusoidalPattern_ParamsTraitConst::markers_location(self)) .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfStructuredLightPattern = core::Ptr; ptr_extern! { crate::structured_light::StructuredLightPattern, cv_PtrLcv_structured_light_StructuredLightPatternG_new_null_const, cv_PtrLcv_structured_light_StructuredLightPatternG_delete, cv_PtrLcv_structured_light_StructuredLightPatternG_getInnerPtr_const, cv_PtrLcv_structured_light_StructuredLightPatternG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfStructuredLightPattern(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfStructuredLightPattern(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::structured_light::StructuredLightPatternTraitConst for core::Ptr { #[inline] fn as_raw_StructuredLightPattern(&self) -> *const c_void { self.inner_as_raw() } } impl crate::structured_light::StructuredLightPatternTrait for core::Ptr { #[inline] fn as_raw_mut_StructuredLightPattern(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_structured_light_StructuredLightPatternG_to_PtrOfAlgorithm } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfStructuredLightPattern") .finish() } } } #[cfg(ocvrs_has_module_structured_light)] pub use structured_light_types::*; #[cfg(ocvrs_has_module_superres)] mod superres_types { use crate::{mod_prelude::*, core, types, sys}; #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfSuperRes_BroxOpticalFlow = core::Ptr; ptr_extern! { crate::superres::SuperRes_BroxOpticalFlow, cv_PtrLcv_superres_BroxOpticalFlowG_new_null_const, cv_PtrLcv_superres_BroxOpticalFlowG_delete, cv_PtrLcv_superres_BroxOpticalFlowG_getInnerPtr_const, cv_PtrLcv_superres_BroxOpticalFlowG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfSuperRes_BroxOpticalFlow(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfSuperRes_BroxOpticalFlow(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::superres::SuperRes_BroxOpticalFlowTraitConst for core::Ptr { #[inline] fn as_raw_SuperRes_BroxOpticalFlow(&self) -> *const c_void { self.inner_as_raw() } } impl crate::superres::SuperRes_BroxOpticalFlowTrait for core::Ptr { #[inline] fn as_raw_mut_SuperRes_BroxOpticalFlow(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_superres_BroxOpticalFlowG_to_PtrOfAlgorithm } impl crate::superres::SuperRes_DenseOpticalFlowExtTraitConst for core::Ptr { #[inline] fn as_raw_SuperRes_DenseOpticalFlowExt(&self) -> *const c_void { self.inner_as_raw() } } impl crate::superres::SuperRes_DenseOpticalFlowExtTrait for core::Ptr { #[inline] fn as_raw_mut_SuperRes_DenseOpticalFlowExt(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_superres_BroxOpticalFlowG_to_PtrOfSuperRes_DenseOpticalFlowExt } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfSuperRes_BroxOpticalFlow") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfSuperRes_DenseOpticalFlowExt = core::Ptr; ptr_extern! { crate::superres::SuperRes_DenseOpticalFlowExt, cv_PtrLcv_superres_DenseOpticalFlowExtG_new_null_const, cv_PtrLcv_superres_DenseOpticalFlowExtG_delete, cv_PtrLcv_superres_DenseOpticalFlowExtG_getInnerPtr_const, cv_PtrLcv_superres_DenseOpticalFlowExtG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfSuperRes_DenseOpticalFlowExt(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfSuperRes_DenseOpticalFlowExt(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::superres::SuperRes_DenseOpticalFlowExtTraitConst for core::Ptr { #[inline] fn as_raw_SuperRes_DenseOpticalFlowExt(&self) -> *const c_void { self.inner_as_raw() } } impl crate::superres::SuperRes_DenseOpticalFlowExtTrait for core::Ptr { #[inline] fn as_raw_mut_SuperRes_DenseOpticalFlowExt(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_superres_DenseOpticalFlowExtG_to_PtrOfAlgorithm } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfSuperRes_DenseOpticalFlowExt") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfSuperRes_DualTVL1OpticalFlow = core::Ptr; ptr_extern! { crate::superres::SuperRes_DualTVL1OpticalFlow, cv_PtrLcv_superres_DualTVL1OpticalFlowG_new_null_const, cv_PtrLcv_superres_DualTVL1OpticalFlowG_delete, cv_PtrLcv_superres_DualTVL1OpticalFlowG_getInnerPtr_const, cv_PtrLcv_superres_DualTVL1OpticalFlowG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfSuperRes_DualTVL1OpticalFlow(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfSuperRes_DualTVL1OpticalFlow(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::superres::SuperRes_DualTVL1OpticalFlowTraitConst for core::Ptr { #[inline] fn as_raw_SuperRes_DualTVL1OpticalFlow(&self) -> *const c_void { self.inner_as_raw() } } impl crate::superres::SuperRes_DualTVL1OpticalFlowTrait for core::Ptr { #[inline] fn as_raw_mut_SuperRes_DualTVL1OpticalFlow(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_superres_DualTVL1OpticalFlowG_to_PtrOfAlgorithm } impl crate::superres::SuperRes_DenseOpticalFlowExtTraitConst for core::Ptr { #[inline] fn as_raw_SuperRes_DenseOpticalFlowExt(&self) -> *const c_void { self.inner_as_raw() } } impl crate::superres::SuperRes_DenseOpticalFlowExtTrait for core::Ptr { #[inline] fn as_raw_mut_SuperRes_DenseOpticalFlowExt(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_superres_DualTVL1OpticalFlowG_to_PtrOfSuperRes_DenseOpticalFlowExt } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfSuperRes_DualTVL1OpticalFlow") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfSuperRes_FarnebackOpticalFlow = core::Ptr; ptr_extern! { crate::superres::SuperRes_FarnebackOpticalFlow, cv_PtrLcv_superres_FarnebackOpticalFlowG_new_null_const, cv_PtrLcv_superres_FarnebackOpticalFlowG_delete, cv_PtrLcv_superres_FarnebackOpticalFlowG_getInnerPtr_const, cv_PtrLcv_superres_FarnebackOpticalFlowG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfSuperRes_FarnebackOpticalFlow(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfSuperRes_FarnebackOpticalFlow(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::superres::SuperRes_FarnebackOpticalFlowTraitConst for core::Ptr { #[inline] fn as_raw_SuperRes_FarnebackOpticalFlow(&self) -> *const c_void { self.inner_as_raw() } } impl crate::superres::SuperRes_FarnebackOpticalFlowTrait for core::Ptr { #[inline] fn as_raw_mut_SuperRes_FarnebackOpticalFlow(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_superres_FarnebackOpticalFlowG_to_PtrOfAlgorithm } impl crate::superres::SuperRes_DenseOpticalFlowExtTraitConst for core::Ptr { #[inline] fn as_raw_SuperRes_DenseOpticalFlowExt(&self) -> *const c_void { self.inner_as_raw() } } impl crate::superres::SuperRes_DenseOpticalFlowExtTrait for core::Ptr { #[inline] fn as_raw_mut_SuperRes_DenseOpticalFlowExt(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_superres_FarnebackOpticalFlowG_to_PtrOfSuperRes_DenseOpticalFlowExt } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfSuperRes_FarnebackOpticalFlow") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfSuperRes_FrameSource = core::Ptr; ptr_extern! { crate::superres::SuperRes_FrameSource, cv_PtrLcv_superres_FrameSourceG_new_null_const, cv_PtrLcv_superres_FrameSourceG_delete, cv_PtrLcv_superres_FrameSourceG_getInnerPtr_const, cv_PtrLcv_superres_FrameSourceG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfSuperRes_FrameSource(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfSuperRes_FrameSource(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::superres::SuperRes_FrameSourceTraitConst for core::Ptr { #[inline] fn as_raw_SuperRes_FrameSource(&self) -> *const c_void { self.inner_as_raw() } } impl crate::superres::SuperRes_FrameSourceTrait for core::Ptr { #[inline] fn as_raw_mut_SuperRes_FrameSource(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfSuperRes_FrameSource") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfSuperRes_PyrLKOpticalFlow = core::Ptr; ptr_extern! { crate::superres::SuperRes_PyrLKOpticalFlow, cv_PtrLcv_superres_PyrLKOpticalFlowG_new_null_const, cv_PtrLcv_superres_PyrLKOpticalFlowG_delete, cv_PtrLcv_superres_PyrLKOpticalFlowG_getInnerPtr_const, cv_PtrLcv_superres_PyrLKOpticalFlowG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfSuperRes_PyrLKOpticalFlow(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfSuperRes_PyrLKOpticalFlow(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::superres::SuperRes_PyrLKOpticalFlowTraitConst for core::Ptr { #[inline] fn as_raw_SuperRes_PyrLKOpticalFlow(&self) -> *const c_void { self.inner_as_raw() } } impl crate::superres::SuperRes_PyrLKOpticalFlowTrait for core::Ptr { #[inline] fn as_raw_mut_SuperRes_PyrLKOpticalFlow(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_superres_PyrLKOpticalFlowG_to_PtrOfAlgorithm } impl crate::superres::SuperRes_DenseOpticalFlowExtTraitConst for core::Ptr { #[inline] fn as_raw_SuperRes_DenseOpticalFlowExt(&self) -> *const c_void { self.inner_as_raw() } } impl crate::superres::SuperRes_DenseOpticalFlowExtTrait for core::Ptr { #[inline] fn as_raw_mut_SuperRes_DenseOpticalFlowExt(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_superres_PyrLKOpticalFlowG_to_PtrOfSuperRes_DenseOpticalFlowExt } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfSuperRes_PyrLKOpticalFlow") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfSuperRes_SuperResolution = core::Ptr; ptr_extern! { crate::superres::SuperRes_SuperResolution, cv_PtrLcv_superres_SuperResolutionG_new_null_const, cv_PtrLcv_superres_SuperResolutionG_delete, cv_PtrLcv_superres_SuperResolutionG_getInnerPtr_const, cv_PtrLcv_superres_SuperResolutionG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfSuperRes_SuperResolution(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfSuperRes_SuperResolution(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::superres::SuperRes_SuperResolutionTraitConst for core::Ptr { #[inline] fn as_raw_SuperRes_SuperResolution(&self) -> *const c_void { self.inner_as_raw() } } impl crate::superres::SuperRes_SuperResolutionTrait for core::Ptr { #[inline] fn as_raw_mut_SuperRes_SuperResolution(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_superres_SuperResolutionG_to_PtrOfAlgorithm } impl crate::superres::SuperRes_FrameSourceTraitConst for core::Ptr { #[inline] fn as_raw_SuperRes_FrameSource(&self) -> *const c_void { self.inner_as_raw() } } impl crate::superres::SuperRes_FrameSourceTrait for core::Ptr { #[inline] fn as_raw_mut_SuperRes_FrameSource(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_superres_SuperResolutionG_to_PtrOfSuperRes_FrameSource } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfSuperRes_SuperResolution") .finish() } } } #[cfg(ocvrs_has_module_superres)] pub use superres_types::*; #[cfg(ocvrs_has_module_surface_matching)] mod surface_matching_types { use crate::{mod_prelude::*, core, types, sys}; #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfPose3D = core::Ptr; ptr_extern! { crate::surface_matching::Pose3D, cv_PtrLcv_ppf_match_3d_Pose3DG_new_null_const, cv_PtrLcv_ppf_match_3d_Pose3DG_delete, cv_PtrLcv_ppf_match_3d_Pose3DG_getInnerPtr_const, cv_PtrLcv_ppf_match_3d_Pose3DG_getInnerPtrMut } ptr_extern_ctor! { crate::surface_matching::Pose3D, cv_PtrLcv_ppf_match_3d_Pose3DG_new_const_Pose3D } impl core::Ptr { #[inline] pub fn as_raw_PtrOfPose3D(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfPose3D(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::surface_matching::Pose3DTraitConst for core::Ptr { #[inline] fn as_raw_Pose3D(&self) -> *const c_void { self.inner_as_raw() } } impl crate::surface_matching::Pose3DTrait for core::Ptr { #[inline] fn as_raw_mut_Pose3D(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfPose3D") .field("alpha", &crate::surface_matching::Pose3DTraitConst::alpha(self)) .field("residual", &crate::surface_matching::Pose3DTraitConst::residual(self)) .field("model_index", &crate::surface_matching::Pose3DTraitConst::model_index(self)) .field("num_votes", &crate::surface_matching::Pose3DTraitConst::num_votes(self)) .field("pose", &crate::surface_matching::Pose3DTraitConst::pose(self)) .field("angle", &crate::surface_matching::Pose3DTraitConst::angle(self)) .field("t", &crate::surface_matching::Pose3DTraitConst::t(self)) .field("q", &crate::surface_matching::Pose3DTraitConst::q(self)) .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfPoseCluster3D = core::Ptr; ptr_extern! { crate::surface_matching::PoseCluster3D, cv_PtrLcv_ppf_match_3d_PoseCluster3DG_new_null_const, cv_PtrLcv_ppf_match_3d_PoseCluster3DG_delete, cv_PtrLcv_ppf_match_3d_PoseCluster3DG_getInnerPtr_const, cv_PtrLcv_ppf_match_3d_PoseCluster3DG_getInnerPtrMut } ptr_extern_ctor! { crate::surface_matching::PoseCluster3D, cv_PtrLcv_ppf_match_3d_PoseCluster3DG_new_const_PoseCluster3D } impl core::Ptr { #[inline] pub fn as_raw_PtrOfPoseCluster3D(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfPoseCluster3D(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::surface_matching::PoseCluster3DTraitConst for core::Ptr { #[inline] fn as_raw_PoseCluster3D(&self) -> *const c_void { self.inner_as_raw() } } impl crate::surface_matching::PoseCluster3DTrait for core::Ptr { #[inline] fn as_raw_mut_PoseCluster3D(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfPoseCluster3D") .field("pose_list", &crate::surface_matching::PoseCluster3DTraitConst::pose_list(self)) .field("num_votes", &crate::surface_matching::PoseCluster3DTraitConst::num_votes(self)) .field("id", &crate::surface_matching::PoseCluster3DTraitConst::id(self)) .finish() } } #[deprecated = "Use the the non-alias form `core::Vector` instead, removal in Nov 2024"] pub type VectorOfPose3DPtr = core::Vector; impl core::Vector { pub fn as_raw_VectorOfPose3DPtr(&self) -> extern_send!(Self) { self.as_raw() } pub fn as_raw_mut_VectorOfPose3DPtr(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } vector_extern! { crate::surface_matching::Pose3DPtr, std_vectorLcv_ppf_match_3d_Pose3DPtrG_new_const, std_vectorLcv_ppf_match_3d_Pose3DPtrG_delete, std_vectorLcv_ppf_match_3d_Pose3DPtrG_len_const, std_vectorLcv_ppf_match_3d_Pose3DPtrG_isEmpty_const, std_vectorLcv_ppf_match_3d_Pose3DPtrG_capacity_const, std_vectorLcv_ppf_match_3d_Pose3DPtrG_shrinkToFit, std_vectorLcv_ppf_match_3d_Pose3DPtrG_reserve_size_t, std_vectorLcv_ppf_match_3d_Pose3DPtrG_remove_size_t, std_vectorLcv_ppf_match_3d_Pose3DPtrG_swap_size_t_size_t, std_vectorLcv_ppf_match_3d_Pose3DPtrG_clear, std_vectorLcv_ppf_match_3d_Pose3DPtrG_get_const_size_t, std_vectorLcv_ppf_match_3d_Pose3DPtrG_set_size_t_const_Pose3DPtr, std_vectorLcv_ppf_match_3d_Pose3DPtrG_push_const_Pose3DPtr, std_vectorLcv_ppf_match_3d_Pose3DPtrG_insert_size_t_const_Pose3DPtr, } vector_non_copy_or_bool! { crate::surface_matching::Pose3DPtr } } #[cfg(ocvrs_has_module_surface_matching)] pub use surface_matching_types::*; #[cfg(ocvrs_has_module_text)] mod text_types { use crate::{mod_prelude::*, core, types, sys}; #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfBaseOCR = core::Ptr; ptr_extern! { crate::text::BaseOCR, cv_PtrLcv_text_BaseOCRG_new_null_const, cv_PtrLcv_text_BaseOCRG_delete, cv_PtrLcv_text_BaseOCRG_getInnerPtr_const, cv_PtrLcv_text_BaseOCRG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfBaseOCR(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfBaseOCR(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::text::BaseOCRTraitConst for core::Ptr { #[inline] fn as_raw_BaseOCR(&self) -> *const c_void { self.inner_as_raw() } } impl crate::text::BaseOCRTrait for core::Ptr { #[inline] fn as_raw_mut_BaseOCR(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfBaseOCR") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfERFilter = core::Ptr; ptr_extern! { crate::text::ERFilter, cv_PtrLcv_text_ERFilterG_new_null_const, cv_PtrLcv_text_ERFilterG_delete, cv_PtrLcv_text_ERFilterG_getInnerPtr_const, cv_PtrLcv_text_ERFilterG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfERFilter(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfERFilter(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::text::ERFilterTraitConst for core::Ptr { #[inline] fn as_raw_ERFilter(&self) -> *const c_void { self.inner_as_raw() } } impl crate::text::ERFilterTrait for core::Ptr { #[inline] fn as_raw_mut_ERFilter(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_text_ERFilterG_to_PtrOfAlgorithm } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfERFilter") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfERFilter_Callback = core::Ptr; ptr_extern! { crate::text::ERFilter_Callback, cv_PtrLcv_text_ERFilter_CallbackG_new_null_const, cv_PtrLcv_text_ERFilter_CallbackG_delete, cv_PtrLcv_text_ERFilter_CallbackG_getInnerPtr_const, cv_PtrLcv_text_ERFilter_CallbackG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfERFilter_Callback(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfERFilter_Callback(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::text::ERFilter_CallbackTraitConst for core::Ptr { #[inline] fn as_raw_ERFilter_Callback(&self) -> *const c_void { self.inner_as_raw() } } impl crate::text::ERFilter_CallbackTrait for core::Ptr { #[inline] fn as_raw_mut_ERFilter_Callback(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfERFilter_Callback") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfOCRBeamSearchDecoder = core::Ptr; ptr_extern! { crate::text::OCRBeamSearchDecoder, cv_PtrLcv_text_OCRBeamSearchDecoderG_new_null_const, cv_PtrLcv_text_OCRBeamSearchDecoderG_delete, cv_PtrLcv_text_OCRBeamSearchDecoderG_getInnerPtr_const, cv_PtrLcv_text_OCRBeamSearchDecoderG_getInnerPtrMut } ptr_extern_ctor! { crate::text::OCRBeamSearchDecoder, cv_PtrLcv_text_OCRBeamSearchDecoderG_new_const_OCRBeamSearchDecoder } impl core::Ptr { #[inline] pub fn as_raw_PtrOfOCRBeamSearchDecoder(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfOCRBeamSearchDecoder(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::text::OCRBeamSearchDecoderTraitConst for core::Ptr { #[inline] fn as_raw_OCRBeamSearchDecoder(&self) -> *const c_void { self.inner_as_raw() } } impl crate::text::OCRBeamSearchDecoderTrait for core::Ptr { #[inline] fn as_raw_mut_OCRBeamSearchDecoder(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl crate::text::BaseOCRTraitConst for core::Ptr { #[inline] fn as_raw_BaseOCR(&self) -> *const c_void { self.inner_as_raw() } } impl crate::text::BaseOCRTrait for core::Ptr { #[inline] fn as_raw_mut_BaseOCR(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_text_OCRBeamSearchDecoderG_to_PtrOfBaseOCR } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfOCRBeamSearchDecoder") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfOCRBeamSearchDecoder_ClassifierCallback = core::Ptr; ptr_extern! { crate::text::OCRBeamSearchDecoder_ClassifierCallback, cv_PtrLcv_text_OCRBeamSearchDecoder_ClassifierCallbackG_new_null_const, cv_PtrLcv_text_OCRBeamSearchDecoder_ClassifierCallbackG_delete, cv_PtrLcv_text_OCRBeamSearchDecoder_ClassifierCallbackG_getInnerPtr_const, cv_PtrLcv_text_OCRBeamSearchDecoder_ClassifierCallbackG_getInnerPtrMut } ptr_extern_ctor! { crate::text::OCRBeamSearchDecoder_ClassifierCallback, cv_PtrLcv_text_OCRBeamSearchDecoder_ClassifierCallbackG_new_const_ClassifierCallback } impl core::Ptr { #[inline] pub fn as_raw_PtrOfOCRBeamSearchDecoder_ClassifierCallback(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfOCRBeamSearchDecoder_ClassifierCallback(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::text::OCRBeamSearchDecoder_ClassifierCallbackTraitConst for core::Ptr { #[inline] fn as_raw_OCRBeamSearchDecoder_ClassifierCallback(&self) -> *const c_void { self.inner_as_raw() } } impl crate::text::OCRBeamSearchDecoder_ClassifierCallbackTrait for core::Ptr { #[inline] fn as_raw_mut_OCRBeamSearchDecoder_ClassifierCallback(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfOCRBeamSearchDecoder_ClassifierCallback") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfOCRHMMDecoder = core::Ptr; ptr_extern! { crate::text::OCRHMMDecoder, cv_PtrLcv_text_OCRHMMDecoderG_new_null_const, cv_PtrLcv_text_OCRHMMDecoderG_delete, cv_PtrLcv_text_OCRHMMDecoderG_getInnerPtr_const, cv_PtrLcv_text_OCRHMMDecoderG_getInnerPtrMut } ptr_extern_ctor! { crate::text::OCRHMMDecoder, cv_PtrLcv_text_OCRHMMDecoderG_new_const_OCRHMMDecoder } impl core::Ptr { #[inline] pub fn as_raw_PtrOfOCRHMMDecoder(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfOCRHMMDecoder(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::text::OCRHMMDecoderTraitConst for core::Ptr { #[inline] fn as_raw_OCRHMMDecoder(&self) -> *const c_void { self.inner_as_raw() } } impl crate::text::OCRHMMDecoderTrait for core::Ptr { #[inline] fn as_raw_mut_OCRHMMDecoder(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl crate::text::BaseOCRTraitConst for core::Ptr { #[inline] fn as_raw_BaseOCR(&self) -> *const c_void { self.inner_as_raw() } } impl crate::text::BaseOCRTrait for core::Ptr { #[inline] fn as_raw_mut_BaseOCR(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_text_OCRHMMDecoderG_to_PtrOfBaseOCR } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfOCRHMMDecoder") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfOCRHMMDecoder_ClassifierCallback = core::Ptr; ptr_extern! { crate::text::OCRHMMDecoder_ClassifierCallback, cv_PtrLcv_text_OCRHMMDecoder_ClassifierCallbackG_new_null_const, cv_PtrLcv_text_OCRHMMDecoder_ClassifierCallbackG_delete, cv_PtrLcv_text_OCRHMMDecoder_ClassifierCallbackG_getInnerPtr_const, cv_PtrLcv_text_OCRHMMDecoder_ClassifierCallbackG_getInnerPtrMut } ptr_extern_ctor! { crate::text::OCRHMMDecoder_ClassifierCallback, cv_PtrLcv_text_OCRHMMDecoder_ClassifierCallbackG_new_const_ClassifierCallback } impl core::Ptr { #[inline] pub fn as_raw_PtrOfOCRHMMDecoder_ClassifierCallback(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfOCRHMMDecoder_ClassifierCallback(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::text::OCRHMMDecoder_ClassifierCallbackTraitConst for core::Ptr { #[inline] fn as_raw_OCRHMMDecoder_ClassifierCallback(&self) -> *const c_void { self.inner_as_raw() } } impl crate::text::OCRHMMDecoder_ClassifierCallbackTrait for core::Ptr { #[inline] fn as_raw_mut_OCRHMMDecoder_ClassifierCallback(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfOCRHMMDecoder_ClassifierCallback") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfOCRHolisticWordRecognizer = core::Ptr; ptr_extern! { crate::text::OCRHolisticWordRecognizer, cv_PtrLcv_text_OCRHolisticWordRecognizerG_new_null_const, cv_PtrLcv_text_OCRHolisticWordRecognizerG_delete, cv_PtrLcv_text_OCRHolisticWordRecognizerG_getInnerPtr_const, cv_PtrLcv_text_OCRHolisticWordRecognizerG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfOCRHolisticWordRecognizer(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfOCRHolisticWordRecognizer(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::text::OCRHolisticWordRecognizerTraitConst for core::Ptr { #[inline] fn as_raw_OCRHolisticWordRecognizer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::text::OCRHolisticWordRecognizerTrait for core::Ptr { #[inline] fn as_raw_mut_OCRHolisticWordRecognizer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl crate::text::BaseOCRTraitConst for core::Ptr { #[inline] fn as_raw_BaseOCR(&self) -> *const c_void { self.inner_as_raw() } } impl crate::text::BaseOCRTrait for core::Ptr { #[inline] fn as_raw_mut_BaseOCR(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_text_OCRHolisticWordRecognizerG_to_PtrOfBaseOCR } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfOCRHolisticWordRecognizer") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfOCRTesseract = core::Ptr; ptr_extern! { crate::text::OCRTesseract, cv_PtrLcv_text_OCRTesseractG_new_null_const, cv_PtrLcv_text_OCRTesseractG_delete, cv_PtrLcv_text_OCRTesseractG_getInnerPtr_const, cv_PtrLcv_text_OCRTesseractG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfOCRTesseract(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfOCRTesseract(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::text::OCRTesseractTraitConst for core::Ptr { #[inline] fn as_raw_OCRTesseract(&self) -> *const c_void { self.inner_as_raw() } } impl crate::text::OCRTesseractTrait for core::Ptr { #[inline] fn as_raw_mut_OCRTesseract(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl crate::text::BaseOCRTraitConst for core::Ptr { #[inline] fn as_raw_BaseOCR(&self) -> *const c_void { self.inner_as_raw() } } impl crate::text::BaseOCRTrait for core::Ptr { #[inline] fn as_raw_mut_BaseOCR(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_text_OCRTesseractG_to_PtrOfBaseOCR } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfOCRTesseract") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfTextDetector = core::Ptr; ptr_extern! { crate::text::TextDetector, cv_PtrLcv_text_TextDetectorG_new_null_const, cv_PtrLcv_text_TextDetectorG_delete, cv_PtrLcv_text_TextDetectorG_getInnerPtr_const, cv_PtrLcv_text_TextDetectorG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfTextDetector(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfTextDetector(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::text::TextDetectorTraitConst for core::Ptr { #[inline] fn as_raw_TextDetector(&self) -> *const c_void { self.inner_as_raw() } } impl crate::text::TextDetectorTrait for core::Ptr { #[inline] fn as_raw_mut_TextDetector(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfTextDetector") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfTextDetectorCNN = core::Ptr; ptr_extern! { crate::text::TextDetectorCNN, cv_PtrLcv_text_TextDetectorCNNG_new_null_const, cv_PtrLcv_text_TextDetectorCNNG_delete, cv_PtrLcv_text_TextDetectorCNNG_getInnerPtr_const, cv_PtrLcv_text_TextDetectorCNNG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfTextDetectorCNN(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfTextDetectorCNN(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::text::TextDetectorCNNTraitConst for core::Ptr { #[inline] fn as_raw_TextDetectorCNN(&self) -> *const c_void { self.inner_as_raw() } } impl crate::text::TextDetectorCNNTrait for core::Ptr { #[inline] fn as_raw_mut_TextDetectorCNN(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl crate::text::TextDetectorTraitConst for core::Ptr { #[inline] fn as_raw_TextDetector(&self) -> *const c_void { self.inner_as_raw() } } impl crate::text::TextDetectorTrait for core::Ptr { #[inline] fn as_raw_mut_TextDetector(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_text_TextDetectorCNNG_to_PtrOfTextDetector } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfTextDetectorCNN") .finish() } } #[deprecated = "Use the the non-alias form `core::Vector` instead, removal in Nov 2024"] pub type VectorOfERStat = core::Vector; impl core::Vector { pub fn as_raw_VectorOfERStat(&self) -> extern_send!(Self) { self.as_raw() } pub fn as_raw_mut_VectorOfERStat(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } vector_extern! { crate::text::ERStat, std_vectorLcv_text_ERStatG_new_const, std_vectorLcv_text_ERStatG_delete, std_vectorLcv_text_ERStatG_len_const, std_vectorLcv_text_ERStatG_isEmpty_const, std_vectorLcv_text_ERStatG_capacity_const, std_vectorLcv_text_ERStatG_shrinkToFit, std_vectorLcv_text_ERStatG_reserve_size_t, std_vectorLcv_text_ERStatG_remove_size_t, std_vectorLcv_text_ERStatG_swap_size_t_size_t, std_vectorLcv_text_ERStatG_clear, std_vectorLcv_text_ERStatG_get_const_size_t, std_vectorLcv_text_ERStatG_set_size_t_const_ERStat, std_vectorLcv_text_ERStatG_push_const_ERStat, std_vectorLcv_text_ERStatG_insert_size_t_const_ERStat, } vector_non_copy_or_bool! { crate::text::ERStat } vector_boxed_ref! { crate::text::ERStat } vector_extern! { BoxedRef<'t, crate::text::ERStat>, std_vectorLcv_text_ERStatG_new_const, std_vectorLcv_text_ERStatG_delete, std_vectorLcv_text_ERStatG_len_const, std_vectorLcv_text_ERStatG_isEmpty_const, std_vectorLcv_text_ERStatG_capacity_const, std_vectorLcv_text_ERStatG_shrinkToFit, std_vectorLcv_text_ERStatG_reserve_size_t, std_vectorLcv_text_ERStatG_remove_size_t, std_vectorLcv_text_ERStatG_swap_size_t_size_t, std_vectorLcv_text_ERStatG_clear, std_vectorLcv_text_ERStatG_get_const_size_t, std_vectorLcv_text_ERStatG_set_size_t_const_ERStat, std_vectorLcv_text_ERStatG_push_const_ERStat, std_vectorLcv_text_ERStatG_insert_size_t_const_ERStat, } #[deprecated = "Use the the non-alias form `core::Vector>` instead, removal in Nov 2024"] pub type VectorOfVectorOfERStat = core::Vector>; impl core::Vector> { pub fn as_raw_VectorOfVectorOfERStat(&self) -> extern_send!(Self) { self.as_raw() } pub fn as_raw_mut_VectorOfVectorOfERStat(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } vector_extern! { core::Vector, std_vectorLstd_vectorLcv_text_ERStatGG_new_const, std_vectorLstd_vectorLcv_text_ERStatGG_delete, std_vectorLstd_vectorLcv_text_ERStatGG_len_const, std_vectorLstd_vectorLcv_text_ERStatGG_isEmpty_const, std_vectorLstd_vectorLcv_text_ERStatGG_capacity_const, std_vectorLstd_vectorLcv_text_ERStatGG_shrinkToFit, std_vectorLstd_vectorLcv_text_ERStatGG_reserve_size_t, std_vectorLstd_vectorLcv_text_ERStatGG_remove_size_t, std_vectorLstd_vectorLcv_text_ERStatGG_swap_size_t_size_t, std_vectorLstd_vectorLcv_text_ERStatGG_clear, std_vectorLstd_vectorLcv_text_ERStatGG_get_const_size_t, std_vectorLstd_vectorLcv_text_ERStatGG_set_size_t_const_vectorLERStatG, std_vectorLstd_vectorLcv_text_ERStatGG_push_const_vectorLERStatG, std_vectorLstd_vectorLcv_text_ERStatGG_insert_size_t_const_vectorLERStatG, } vector_non_copy_or_bool! { core::Vector } } #[cfg(ocvrs_has_module_text)] pub use text_types::*; #[cfg(ocvrs_has_module_tracking)] mod tracking_types { use crate::{mod_prelude::*, core, types, sys}; #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfTrackerCSRT = core::Ptr; ptr_extern! { crate::tracking::TrackerCSRT, cv_PtrLcv_tracking_TrackerCSRTG_new_null_const, cv_PtrLcv_tracking_TrackerCSRTG_delete, cv_PtrLcv_tracking_TrackerCSRTG_getInnerPtr_const, cv_PtrLcv_tracking_TrackerCSRTG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfTrackerCSRT(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfTrackerCSRT(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::tracking::TrackerCSRTTraitConst for core::Ptr { #[inline] fn as_raw_TrackerCSRT(&self) -> *const c_void { self.inner_as_raw() } } impl crate::tracking::TrackerCSRTTrait for core::Ptr { #[inline] fn as_raw_mut_TrackerCSRT(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl crate::video::TrackerTraitConst for core::Ptr { #[inline] fn as_raw_Tracker(&self) -> *const c_void { self.inner_as_raw() } } impl crate::video::TrackerTrait for core::Ptr { #[inline] fn as_raw_mut_Tracker(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_tracking_TrackerCSRTG_to_PtrOfTracker } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfTrackerCSRT") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfTrackerKCF = core::Ptr; ptr_extern! { crate::tracking::TrackerKCF, cv_PtrLcv_tracking_TrackerKCFG_new_null_const, cv_PtrLcv_tracking_TrackerKCFG_delete, cv_PtrLcv_tracking_TrackerKCFG_getInnerPtr_const, cv_PtrLcv_tracking_TrackerKCFG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfTrackerKCF(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfTrackerKCF(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::tracking::TrackerKCFTraitConst for core::Ptr { #[inline] fn as_raw_TrackerKCF(&self) -> *const c_void { self.inner_as_raw() } } impl crate::tracking::TrackerKCFTrait for core::Ptr { #[inline] fn as_raw_mut_TrackerKCF(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl crate::video::TrackerTraitConst for core::Ptr { #[inline] fn as_raw_Tracker(&self) -> *const c_void { self.inner_as_raw() } } impl crate::video::TrackerTrait for core::Ptr { #[inline] fn as_raw_mut_Tracker(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_tracking_TrackerKCFG_to_PtrOfTracker } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfTrackerKCF") .finish() } } } #[cfg(ocvrs_has_module_tracking)] pub use tracking_types::*; #[cfg(ocvrs_has_module_video)] mod video_types { use crate::{mod_prelude::*, core, types, sys}; #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfBackgroundSubtractor = core::Ptr; ptr_extern! { crate::video::BackgroundSubtractor, cv_PtrLcv_BackgroundSubtractorG_new_null_const, cv_PtrLcv_BackgroundSubtractorG_delete, cv_PtrLcv_BackgroundSubtractorG_getInnerPtr_const, cv_PtrLcv_BackgroundSubtractorG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfBackgroundSubtractor(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfBackgroundSubtractor(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::video::BackgroundSubtractorTraitConst for core::Ptr { #[inline] fn as_raw_BackgroundSubtractor(&self) -> *const c_void { self.inner_as_raw() } } impl crate::video::BackgroundSubtractorTrait for core::Ptr { #[inline] fn as_raw_mut_BackgroundSubtractor(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_BackgroundSubtractorG_to_PtrOfAlgorithm } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfBackgroundSubtractor") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfBackgroundSubtractorKNN = core::Ptr; ptr_extern! { crate::video::BackgroundSubtractorKNN, cv_PtrLcv_BackgroundSubtractorKNNG_new_null_const, cv_PtrLcv_BackgroundSubtractorKNNG_delete, cv_PtrLcv_BackgroundSubtractorKNNG_getInnerPtr_const, cv_PtrLcv_BackgroundSubtractorKNNG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfBackgroundSubtractorKNN(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfBackgroundSubtractorKNN(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::video::BackgroundSubtractorKNNTraitConst for core::Ptr { #[inline] fn as_raw_BackgroundSubtractorKNN(&self) -> *const c_void { self.inner_as_raw() } } impl crate::video::BackgroundSubtractorKNNTrait for core::Ptr { #[inline] fn as_raw_mut_BackgroundSubtractorKNN(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_BackgroundSubtractorKNNG_to_PtrOfAlgorithm } impl crate::video::BackgroundSubtractorTraitConst for core::Ptr { #[inline] fn as_raw_BackgroundSubtractor(&self) -> *const c_void { self.inner_as_raw() } } impl crate::video::BackgroundSubtractorTrait for core::Ptr { #[inline] fn as_raw_mut_BackgroundSubtractor(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_BackgroundSubtractorKNNG_to_PtrOfBackgroundSubtractor } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfBackgroundSubtractorKNN") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfBackgroundSubtractorMOG2 = core::Ptr; ptr_extern! { crate::video::BackgroundSubtractorMOG2, cv_PtrLcv_BackgroundSubtractorMOG2G_new_null_const, cv_PtrLcv_BackgroundSubtractorMOG2G_delete, cv_PtrLcv_BackgroundSubtractorMOG2G_getInnerPtr_const, cv_PtrLcv_BackgroundSubtractorMOG2G_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfBackgroundSubtractorMOG2(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfBackgroundSubtractorMOG2(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::video::BackgroundSubtractorMOG2TraitConst for core::Ptr { #[inline] fn as_raw_BackgroundSubtractorMOG2(&self) -> *const c_void { self.inner_as_raw() } } impl crate::video::BackgroundSubtractorMOG2Trait for core::Ptr { #[inline] fn as_raw_mut_BackgroundSubtractorMOG2(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_BackgroundSubtractorMOG2G_to_PtrOfAlgorithm } impl crate::video::BackgroundSubtractorTraitConst for core::Ptr { #[inline] fn as_raw_BackgroundSubtractor(&self) -> *const c_void { self.inner_as_raw() } } impl crate::video::BackgroundSubtractorTrait for core::Ptr { #[inline] fn as_raw_mut_BackgroundSubtractor(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_BackgroundSubtractorMOG2G_to_PtrOfBackgroundSubtractor } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfBackgroundSubtractorMOG2") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfDISOpticalFlow = core::Ptr; ptr_extern! { crate::video::DISOpticalFlow, cv_PtrLcv_DISOpticalFlowG_new_null_const, cv_PtrLcv_DISOpticalFlowG_delete, cv_PtrLcv_DISOpticalFlowG_getInnerPtr_const, cv_PtrLcv_DISOpticalFlowG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfDISOpticalFlow(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfDISOpticalFlow(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::video::DISOpticalFlowTraitConst for core::Ptr { #[inline] fn as_raw_DISOpticalFlow(&self) -> *const c_void { self.inner_as_raw() } } impl crate::video::DISOpticalFlowTrait for core::Ptr { #[inline] fn as_raw_mut_DISOpticalFlow(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_DISOpticalFlowG_to_PtrOfAlgorithm } impl crate::video::DenseOpticalFlowTraitConst for core::Ptr { #[inline] fn as_raw_DenseOpticalFlow(&self) -> *const c_void { self.inner_as_raw() } } impl crate::video::DenseOpticalFlowTrait for core::Ptr { #[inline] fn as_raw_mut_DenseOpticalFlow(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_DISOpticalFlowG_to_PtrOfDenseOpticalFlow } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfDISOpticalFlow") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfDenseOpticalFlow = core::Ptr; ptr_extern! { crate::video::DenseOpticalFlow, cv_PtrLcv_DenseOpticalFlowG_new_null_const, cv_PtrLcv_DenseOpticalFlowG_delete, cv_PtrLcv_DenseOpticalFlowG_getInnerPtr_const, cv_PtrLcv_DenseOpticalFlowG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfDenseOpticalFlow(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfDenseOpticalFlow(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::video::DenseOpticalFlowTraitConst for core::Ptr { #[inline] fn as_raw_DenseOpticalFlow(&self) -> *const c_void { self.inner_as_raw() } } impl crate::video::DenseOpticalFlowTrait for core::Ptr { #[inline] fn as_raw_mut_DenseOpticalFlow(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_DenseOpticalFlowG_to_PtrOfAlgorithm } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfDenseOpticalFlow") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfFarnebackOpticalFlow = core::Ptr; ptr_extern! { crate::video::FarnebackOpticalFlow, cv_PtrLcv_FarnebackOpticalFlowG_new_null_const, cv_PtrLcv_FarnebackOpticalFlowG_delete, cv_PtrLcv_FarnebackOpticalFlowG_getInnerPtr_const, cv_PtrLcv_FarnebackOpticalFlowG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfFarnebackOpticalFlow(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfFarnebackOpticalFlow(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::video::FarnebackOpticalFlowTraitConst for core::Ptr { #[inline] fn as_raw_FarnebackOpticalFlow(&self) -> *const c_void { self.inner_as_raw() } } impl crate::video::FarnebackOpticalFlowTrait for core::Ptr { #[inline] fn as_raw_mut_FarnebackOpticalFlow(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_FarnebackOpticalFlowG_to_PtrOfAlgorithm } impl crate::video::DenseOpticalFlowTraitConst for core::Ptr { #[inline] fn as_raw_DenseOpticalFlow(&self) -> *const c_void { self.inner_as_raw() } } impl crate::video::DenseOpticalFlowTrait for core::Ptr { #[inline] fn as_raw_mut_DenseOpticalFlow(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_FarnebackOpticalFlowG_to_PtrOfDenseOpticalFlow } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfFarnebackOpticalFlow") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfSparseOpticalFlow = core::Ptr; ptr_extern! { crate::video::SparseOpticalFlow, cv_PtrLcv_SparseOpticalFlowG_new_null_const, cv_PtrLcv_SparseOpticalFlowG_delete, cv_PtrLcv_SparseOpticalFlowG_getInnerPtr_const, cv_PtrLcv_SparseOpticalFlowG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfSparseOpticalFlow(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfSparseOpticalFlow(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::video::SparseOpticalFlowTraitConst for core::Ptr { #[inline] fn as_raw_SparseOpticalFlow(&self) -> *const c_void { self.inner_as_raw() } } impl crate::video::SparseOpticalFlowTrait for core::Ptr { #[inline] fn as_raw_mut_SparseOpticalFlow(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_SparseOpticalFlowG_to_PtrOfAlgorithm } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfSparseOpticalFlow") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfSparsePyrLKOpticalFlow = core::Ptr; ptr_extern! { crate::video::SparsePyrLKOpticalFlow, cv_PtrLcv_SparsePyrLKOpticalFlowG_new_null_const, cv_PtrLcv_SparsePyrLKOpticalFlowG_delete, cv_PtrLcv_SparsePyrLKOpticalFlowG_getInnerPtr_const, cv_PtrLcv_SparsePyrLKOpticalFlowG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfSparsePyrLKOpticalFlow(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfSparsePyrLKOpticalFlow(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::video::SparsePyrLKOpticalFlowTraitConst for core::Ptr { #[inline] fn as_raw_SparsePyrLKOpticalFlow(&self) -> *const c_void { self.inner_as_raw() } } impl crate::video::SparsePyrLKOpticalFlowTrait for core::Ptr { #[inline] fn as_raw_mut_SparsePyrLKOpticalFlow(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_SparsePyrLKOpticalFlowG_to_PtrOfAlgorithm } impl crate::video::SparseOpticalFlowTraitConst for core::Ptr { #[inline] fn as_raw_SparseOpticalFlow(&self) -> *const c_void { self.inner_as_raw() } } impl crate::video::SparseOpticalFlowTrait for core::Ptr { #[inline] fn as_raw_mut_SparseOpticalFlow(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_SparsePyrLKOpticalFlowG_to_PtrOfSparseOpticalFlow } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfSparsePyrLKOpticalFlow") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfTracker = core::Ptr; ptr_extern! { crate::video::Tracker, cv_PtrLcv_TrackerG_new_null_const, cv_PtrLcv_TrackerG_delete, cv_PtrLcv_TrackerG_getInnerPtr_const, cv_PtrLcv_TrackerG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfTracker(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfTracker(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::video::TrackerTraitConst for core::Ptr { #[inline] fn as_raw_Tracker(&self) -> *const c_void { self.inner_as_raw() } } impl crate::video::TrackerTrait for core::Ptr { #[inline] fn as_raw_mut_Tracker(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfTracker") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfTrackerDaSiamRPN = core::Ptr; ptr_extern! { crate::video::TrackerDaSiamRPN, cv_PtrLcv_TrackerDaSiamRPNG_new_null_const, cv_PtrLcv_TrackerDaSiamRPNG_delete, cv_PtrLcv_TrackerDaSiamRPNG_getInnerPtr_const, cv_PtrLcv_TrackerDaSiamRPNG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfTrackerDaSiamRPN(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfTrackerDaSiamRPN(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::video::TrackerDaSiamRPNTraitConst for core::Ptr { #[inline] fn as_raw_TrackerDaSiamRPN(&self) -> *const c_void { self.inner_as_raw() } } impl crate::video::TrackerDaSiamRPNTrait for core::Ptr { #[inline] fn as_raw_mut_TrackerDaSiamRPN(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl crate::video::TrackerTraitConst for core::Ptr { #[inline] fn as_raw_Tracker(&self) -> *const c_void { self.inner_as_raw() } } impl crate::video::TrackerTrait for core::Ptr { #[inline] fn as_raw_mut_Tracker(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_TrackerDaSiamRPNG_to_PtrOfTracker } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfTrackerDaSiamRPN") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfTrackerGOTURN = core::Ptr; ptr_extern! { crate::video::TrackerGOTURN, cv_PtrLcv_TrackerGOTURNG_new_null_const, cv_PtrLcv_TrackerGOTURNG_delete, cv_PtrLcv_TrackerGOTURNG_getInnerPtr_const, cv_PtrLcv_TrackerGOTURNG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfTrackerGOTURN(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfTrackerGOTURN(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::video::TrackerGOTURNTraitConst for core::Ptr { #[inline] fn as_raw_TrackerGOTURN(&self) -> *const c_void { self.inner_as_raw() } } impl crate::video::TrackerGOTURNTrait for core::Ptr { #[inline] fn as_raw_mut_TrackerGOTURN(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl crate::video::TrackerTraitConst for core::Ptr { #[inline] fn as_raw_Tracker(&self) -> *const c_void { self.inner_as_raw() } } impl crate::video::TrackerTrait for core::Ptr { #[inline] fn as_raw_mut_Tracker(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_TrackerGOTURNG_to_PtrOfTracker } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfTrackerGOTURN") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfTrackerMIL = core::Ptr; ptr_extern! { crate::video::TrackerMIL, cv_PtrLcv_TrackerMILG_new_null_const, cv_PtrLcv_TrackerMILG_delete, cv_PtrLcv_TrackerMILG_getInnerPtr_const, cv_PtrLcv_TrackerMILG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfTrackerMIL(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfTrackerMIL(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::video::TrackerMILTraitConst for core::Ptr { #[inline] fn as_raw_TrackerMIL(&self) -> *const c_void { self.inner_as_raw() } } impl crate::video::TrackerMILTrait for core::Ptr { #[inline] fn as_raw_mut_TrackerMIL(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl crate::video::TrackerTraitConst for core::Ptr { #[inline] fn as_raw_Tracker(&self) -> *const c_void { self.inner_as_raw() } } impl crate::video::TrackerTrait for core::Ptr { #[inline] fn as_raw_mut_Tracker(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_TrackerMILG_to_PtrOfTracker } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfTrackerMIL") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfTrackerNano = core::Ptr; ptr_extern! { crate::video::TrackerNano, cv_PtrLcv_TrackerNanoG_new_null_const, cv_PtrLcv_TrackerNanoG_delete, cv_PtrLcv_TrackerNanoG_getInnerPtr_const, cv_PtrLcv_TrackerNanoG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfTrackerNano(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfTrackerNano(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::video::TrackerNanoTraitConst for core::Ptr { #[inline] fn as_raw_TrackerNano(&self) -> *const c_void { self.inner_as_raw() } } impl crate::video::TrackerNanoTrait for core::Ptr { #[inline] fn as_raw_mut_TrackerNano(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl crate::video::TrackerTraitConst for core::Ptr { #[inline] fn as_raw_Tracker(&self) -> *const c_void { self.inner_as_raw() } } impl crate::video::TrackerTrait for core::Ptr { #[inline] fn as_raw_mut_Tracker(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_TrackerNanoG_to_PtrOfTracker } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfTrackerNano") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfTrackerVit = core::Ptr; ptr_extern! { crate::video::TrackerVit, cv_PtrLcv_TrackerVitG_new_null_const, cv_PtrLcv_TrackerVitG_delete, cv_PtrLcv_TrackerVitG_getInnerPtr_const, cv_PtrLcv_TrackerVitG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfTrackerVit(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfTrackerVit(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::video::TrackerVitTraitConst for core::Ptr { #[inline] fn as_raw_TrackerVit(&self) -> *const c_void { self.inner_as_raw() } } impl crate::video::TrackerVitTrait for core::Ptr { #[inline] fn as_raw_mut_TrackerVit(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl crate::video::TrackerTraitConst for core::Ptr { #[inline] fn as_raw_Tracker(&self) -> *const c_void { self.inner_as_raw() } } impl crate::video::TrackerTrait for core::Ptr { #[inline] fn as_raw_mut_Tracker(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_TrackerVitG_to_PtrOfTracker } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfTrackerVit") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfVariationalRefinement = core::Ptr; ptr_extern! { crate::video::VariationalRefinement, cv_PtrLcv_VariationalRefinementG_new_null_const, cv_PtrLcv_VariationalRefinementG_delete, cv_PtrLcv_VariationalRefinementG_getInnerPtr_const, cv_PtrLcv_VariationalRefinementG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfVariationalRefinement(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfVariationalRefinement(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::video::VariationalRefinementTraitConst for core::Ptr { #[inline] fn as_raw_VariationalRefinement(&self) -> *const c_void { self.inner_as_raw() } } impl crate::video::VariationalRefinementTrait for core::Ptr { #[inline] fn as_raw_mut_VariationalRefinement(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_VariationalRefinementG_to_PtrOfAlgorithm } impl crate::video::DenseOpticalFlowTraitConst for core::Ptr { #[inline] fn as_raw_DenseOpticalFlow(&self) -> *const c_void { self.inner_as_raw() } } impl crate::video::DenseOpticalFlowTrait for core::Ptr { #[inline] fn as_raw_mut_DenseOpticalFlow(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_VariationalRefinementG_to_PtrOfDenseOpticalFlow } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfVariationalRefinement") .finish() } } } #[cfg(ocvrs_has_module_video)] pub use video_types::*; #[cfg(ocvrs_has_module_videoio)] mod videoio_types { use crate::{mod_prelude::*, core, types, sys}; #[deprecated = "Use the the non-alias form `core::Vector` instead, removal in Nov 2024"] pub type VectorOfVideoCapture = core::Vector; impl core::Vector { pub fn as_raw_VectorOfVideoCapture(&self) -> extern_send!(Self) { self.as_raw() } pub fn as_raw_mut_VectorOfVideoCapture(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } vector_extern! { crate::videoio::VideoCapture, std_vectorLcv_VideoCaptureG_new_const, std_vectorLcv_VideoCaptureG_delete, std_vectorLcv_VideoCaptureG_len_const, std_vectorLcv_VideoCaptureG_isEmpty_const, std_vectorLcv_VideoCaptureG_capacity_const, std_vectorLcv_VideoCaptureG_shrinkToFit, std_vectorLcv_VideoCaptureG_reserve_size_t, std_vectorLcv_VideoCaptureG_remove_size_t, std_vectorLcv_VideoCaptureG_swap_size_t_size_t, std_vectorLcv_VideoCaptureG_clear, std_vectorLcv_VideoCaptureG_get_const_size_t, std_vectorLcv_VideoCaptureG_set_size_t_const_VideoCapture, std_vectorLcv_VideoCaptureG_push_const_VideoCapture, std_vectorLcv_VideoCaptureG_insert_size_t_const_VideoCapture, } vector_non_copy_or_bool! { crate::videoio::VideoCapture } vector_boxed_ref! { crate::videoio::VideoCapture } vector_extern! { BoxedRef<'t, crate::videoio::VideoCapture>, std_vectorLcv_VideoCaptureG_new_const, std_vectorLcv_VideoCaptureG_delete, std_vectorLcv_VideoCaptureG_len_const, std_vectorLcv_VideoCaptureG_isEmpty_const, std_vectorLcv_VideoCaptureG_capacity_const, std_vectorLcv_VideoCaptureG_shrinkToFit, std_vectorLcv_VideoCaptureG_reserve_size_t, std_vectorLcv_VideoCaptureG_remove_size_t, std_vectorLcv_VideoCaptureG_swap_size_t_size_t, std_vectorLcv_VideoCaptureG_clear, std_vectorLcv_VideoCaptureG_get_const_size_t, std_vectorLcv_VideoCaptureG_set_size_t_const_VideoCapture, std_vectorLcv_VideoCaptureG_push_const_VideoCapture, std_vectorLcv_VideoCaptureG_insert_size_t_const_VideoCapture, } #[deprecated = "Use the the non-alias form `core::Vector` instead, removal in Nov 2024"] pub type VectorOfVideoCaptureAPIs = core::Vector; impl core::Vector { pub fn as_raw_VectorOfVideoCaptureAPIs(&self) -> extern_send!(Self) { self.as_raw() } pub fn as_raw_mut_VectorOfVideoCaptureAPIs(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } vector_extern! { crate::videoio::VideoCaptureAPIs, std_vectorLcv_VideoCaptureAPIsG_new_const, std_vectorLcv_VideoCaptureAPIsG_delete, std_vectorLcv_VideoCaptureAPIsG_len_const, std_vectorLcv_VideoCaptureAPIsG_isEmpty_const, std_vectorLcv_VideoCaptureAPIsG_capacity_const, std_vectorLcv_VideoCaptureAPIsG_shrinkToFit, std_vectorLcv_VideoCaptureAPIsG_reserve_size_t, std_vectorLcv_VideoCaptureAPIsG_remove_size_t, std_vectorLcv_VideoCaptureAPIsG_swap_size_t_size_t, std_vectorLcv_VideoCaptureAPIsG_clear, std_vectorLcv_VideoCaptureAPIsG_get_const_size_t, std_vectorLcv_VideoCaptureAPIsG_set_size_t_const_VideoCaptureAPIs, std_vectorLcv_VideoCaptureAPIsG_push_const_VideoCaptureAPIs, std_vectorLcv_VideoCaptureAPIsG_insert_size_t_const_VideoCaptureAPIs, } vector_copy_non_bool! { crate::videoio::VideoCaptureAPIs, std_vectorLcv_VideoCaptureAPIsG_data_const, std_vectorLcv_VideoCaptureAPIsG_dataMut, cv_fromSlice_const_const_VideoCaptureAPIsX_size_t, std_vectorLcv_VideoCaptureAPIsG_clone_const, } } #[cfg(ocvrs_has_module_videoio)] pub use videoio_types::*; #[cfg(ocvrs_has_module_videostab)] mod videostab_types { use crate::{mod_prelude::*, core, types, sys}; #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfColorAverageInpainter = core::Ptr; ptr_extern! { crate::videostab::ColorAverageInpainter, cv_PtrLcv_videostab_ColorAverageInpainterG_new_null_const, cv_PtrLcv_videostab_ColorAverageInpainterG_delete, cv_PtrLcv_videostab_ColorAverageInpainterG_getInnerPtr_const, cv_PtrLcv_videostab_ColorAverageInpainterG_getInnerPtrMut } ptr_extern_ctor! { crate::videostab::ColorAverageInpainter, cv_PtrLcv_videostab_ColorAverageInpainterG_new_const_ColorAverageInpainter } impl core::Ptr { #[inline] pub fn as_raw_PtrOfColorAverageInpainter(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfColorAverageInpainter(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::videostab::ColorAverageInpainterTraitConst for core::Ptr { #[inline] fn as_raw_ColorAverageInpainter(&self) -> *const c_void { self.inner_as_raw() } } impl crate::videostab::ColorAverageInpainterTrait for core::Ptr { #[inline] fn as_raw_mut_ColorAverageInpainter(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl crate::videostab::InpainterBaseTraitConst for core::Ptr { #[inline] fn as_raw_InpainterBase(&self) -> *const c_void { self.inner_as_raw() } } impl crate::videostab::InpainterBaseTrait for core::Ptr { #[inline] fn as_raw_mut_InpainterBase(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_videostab_ColorAverageInpainterG_to_PtrOfInpainterBase } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfColorAverageInpainter") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfColorInpainter = core::Ptr; ptr_extern! { crate::videostab::ColorInpainter, cv_PtrLcv_videostab_ColorInpainterG_new_null_const, cv_PtrLcv_videostab_ColorInpainterG_delete, cv_PtrLcv_videostab_ColorInpainterG_getInnerPtr_const, cv_PtrLcv_videostab_ColorInpainterG_getInnerPtrMut } ptr_extern_ctor! { crate::videostab::ColorInpainter, cv_PtrLcv_videostab_ColorInpainterG_new_const_ColorInpainter } impl core::Ptr { #[inline] pub fn as_raw_PtrOfColorInpainter(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfColorInpainter(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::videostab::ColorInpainterTraitConst for core::Ptr { #[inline] fn as_raw_ColorInpainter(&self) -> *const c_void { self.inner_as_raw() } } impl crate::videostab::ColorInpainterTrait for core::Ptr { #[inline] fn as_raw_mut_ColorInpainter(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl crate::videostab::InpainterBaseTraitConst for core::Ptr { #[inline] fn as_raw_InpainterBase(&self) -> *const c_void { self.inner_as_raw() } } impl crate::videostab::InpainterBaseTrait for core::Ptr { #[inline] fn as_raw_mut_InpainterBase(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_videostab_ColorInpainterG_to_PtrOfInpainterBase } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfColorInpainter") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfConsistentMosaicInpainter = core::Ptr; ptr_extern! { crate::videostab::ConsistentMosaicInpainter, cv_PtrLcv_videostab_ConsistentMosaicInpainterG_new_null_const, cv_PtrLcv_videostab_ConsistentMosaicInpainterG_delete, cv_PtrLcv_videostab_ConsistentMosaicInpainterG_getInnerPtr_const, cv_PtrLcv_videostab_ConsistentMosaicInpainterG_getInnerPtrMut } ptr_extern_ctor! { crate::videostab::ConsistentMosaicInpainter, cv_PtrLcv_videostab_ConsistentMosaicInpainterG_new_const_ConsistentMosaicInpainter } impl core::Ptr { #[inline] pub fn as_raw_PtrOfConsistentMosaicInpainter(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfConsistentMosaicInpainter(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::videostab::ConsistentMosaicInpainterTraitConst for core::Ptr { #[inline] fn as_raw_ConsistentMosaicInpainter(&self) -> *const c_void { self.inner_as_raw() } } impl crate::videostab::ConsistentMosaicInpainterTrait for core::Ptr { #[inline] fn as_raw_mut_ConsistentMosaicInpainter(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl crate::videostab::InpainterBaseTraitConst for core::Ptr { #[inline] fn as_raw_InpainterBase(&self) -> *const c_void { self.inner_as_raw() } } impl crate::videostab::InpainterBaseTrait for core::Ptr { #[inline] fn as_raw_mut_InpainterBase(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_videostab_ConsistentMosaicInpainterG_to_PtrOfInpainterBase } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfConsistentMosaicInpainter") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfDeblurerBase = core::Ptr; ptr_extern! { crate::videostab::DeblurerBase, cv_PtrLcv_videostab_DeblurerBaseG_new_null_const, cv_PtrLcv_videostab_DeblurerBaseG_delete, cv_PtrLcv_videostab_DeblurerBaseG_getInnerPtr_const, cv_PtrLcv_videostab_DeblurerBaseG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfDeblurerBase(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfDeblurerBase(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::videostab::DeblurerBaseTraitConst for core::Ptr { #[inline] fn as_raw_DeblurerBase(&self) -> *const c_void { self.inner_as_raw() } } impl crate::videostab::DeblurerBaseTrait for core::Ptr { #[inline] fn as_raw_mut_DeblurerBase(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfDeblurerBase") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfDensePyrLkOptFlowEstimatorGpu = core::Ptr; ptr_extern! { crate::videostab::DensePyrLkOptFlowEstimatorGpu, cv_PtrLcv_videostab_DensePyrLkOptFlowEstimatorGpuG_new_null_const, cv_PtrLcv_videostab_DensePyrLkOptFlowEstimatorGpuG_delete, cv_PtrLcv_videostab_DensePyrLkOptFlowEstimatorGpuG_getInnerPtr_const, cv_PtrLcv_videostab_DensePyrLkOptFlowEstimatorGpuG_getInnerPtrMut } ptr_extern_ctor! { crate::videostab::DensePyrLkOptFlowEstimatorGpu, cv_PtrLcv_videostab_DensePyrLkOptFlowEstimatorGpuG_new_const_DensePyrLkOptFlowEstimatorGpu } impl core::Ptr { #[inline] pub fn as_raw_PtrOfDensePyrLkOptFlowEstimatorGpu(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfDensePyrLkOptFlowEstimatorGpu(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::videostab::DensePyrLkOptFlowEstimatorGpuTraitConst for core::Ptr { #[inline] fn as_raw_DensePyrLkOptFlowEstimatorGpu(&self) -> *const c_void { self.inner_as_raw() } } impl crate::videostab::DensePyrLkOptFlowEstimatorGpuTrait for core::Ptr { #[inline] fn as_raw_mut_DensePyrLkOptFlowEstimatorGpu(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl crate::videostab::IDenseOptFlowEstimatorTraitConst for core::Ptr { #[inline] fn as_raw_IDenseOptFlowEstimator(&self) -> *const c_void { self.inner_as_raw() } } impl crate::videostab::IDenseOptFlowEstimatorTrait for core::Ptr { #[inline] fn as_raw_mut_IDenseOptFlowEstimator(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_videostab_DensePyrLkOptFlowEstimatorGpuG_to_PtrOfIDenseOptFlowEstimator } impl crate::videostab::PyrLkOptFlowEstimatorBaseTraitConst for core::Ptr { #[inline] fn as_raw_PyrLkOptFlowEstimatorBase(&self) -> *const c_void { self.inner_as_raw() } } impl crate::videostab::PyrLkOptFlowEstimatorBaseTrait for core::Ptr { #[inline] fn as_raw_mut_PyrLkOptFlowEstimatorBase(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_videostab_DensePyrLkOptFlowEstimatorGpuG_to_PtrOfPyrLkOptFlowEstimatorBase } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfDensePyrLkOptFlowEstimatorGpu") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfFromFileMotionReader = core::Ptr; ptr_extern! { crate::videostab::FromFileMotionReader, cv_PtrLcv_videostab_FromFileMotionReaderG_new_null_const, cv_PtrLcv_videostab_FromFileMotionReaderG_delete, cv_PtrLcv_videostab_FromFileMotionReaderG_getInnerPtr_const, cv_PtrLcv_videostab_FromFileMotionReaderG_getInnerPtrMut } ptr_extern_ctor! { crate::videostab::FromFileMotionReader, cv_PtrLcv_videostab_FromFileMotionReaderG_new_const_FromFileMotionReader } impl core::Ptr { #[inline] pub fn as_raw_PtrOfFromFileMotionReader(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfFromFileMotionReader(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::videostab::FromFileMotionReaderTraitConst for core::Ptr { #[inline] fn as_raw_FromFileMotionReader(&self) -> *const c_void { self.inner_as_raw() } } impl crate::videostab::FromFileMotionReaderTrait for core::Ptr { #[inline] fn as_raw_mut_FromFileMotionReader(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl crate::videostab::ImageMotionEstimatorBaseTraitConst for core::Ptr { #[inline] fn as_raw_ImageMotionEstimatorBase(&self) -> *const c_void { self.inner_as_raw() } } impl crate::videostab::ImageMotionEstimatorBaseTrait for core::Ptr { #[inline] fn as_raw_mut_ImageMotionEstimatorBase(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_videostab_FromFileMotionReaderG_to_PtrOfImageMotionEstimatorBase } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfFromFileMotionReader") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfGaussianMotionFilter = core::Ptr; ptr_extern! { crate::videostab::GaussianMotionFilter, cv_PtrLcv_videostab_GaussianMotionFilterG_new_null_const, cv_PtrLcv_videostab_GaussianMotionFilterG_delete, cv_PtrLcv_videostab_GaussianMotionFilterG_getInnerPtr_const, cv_PtrLcv_videostab_GaussianMotionFilterG_getInnerPtrMut } ptr_extern_ctor! { crate::videostab::GaussianMotionFilter, cv_PtrLcv_videostab_GaussianMotionFilterG_new_const_GaussianMotionFilter } impl core::Ptr { #[inline] pub fn as_raw_PtrOfGaussianMotionFilter(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfGaussianMotionFilter(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::videostab::GaussianMotionFilterTraitConst for core::Ptr { #[inline] fn as_raw_GaussianMotionFilter(&self) -> *const c_void { self.inner_as_raw() } } impl crate::videostab::GaussianMotionFilterTrait for core::Ptr { #[inline] fn as_raw_mut_GaussianMotionFilter(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl crate::videostab::IMotionStabilizerTraitConst for core::Ptr { #[inline] fn as_raw_IMotionStabilizer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::videostab::IMotionStabilizerTrait for core::Ptr { #[inline] fn as_raw_mut_IMotionStabilizer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_videostab_GaussianMotionFilterG_to_PtrOfIMotionStabilizer } impl crate::videostab::MotionFilterBaseTraitConst for core::Ptr { #[inline] fn as_raw_MotionFilterBase(&self) -> *const c_void { self.inner_as_raw() } } impl crate::videostab::MotionFilterBaseTrait for core::Ptr { #[inline] fn as_raw_mut_MotionFilterBase(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_videostab_GaussianMotionFilterG_to_PtrOfMotionFilterBase } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfGaussianMotionFilter") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfIDenseOptFlowEstimator = core::Ptr; ptr_extern! { crate::videostab::IDenseOptFlowEstimator, cv_PtrLcv_videostab_IDenseOptFlowEstimatorG_new_null_const, cv_PtrLcv_videostab_IDenseOptFlowEstimatorG_delete, cv_PtrLcv_videostab_IDenseOptFlowEstimatorG_getInnerPtr_const, cv_PtrLcv_videostab_IDenseOptFlowEstimatorG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfIDenseOptFlowEstimator(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfIDenseOptFlowEstimator(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::videostab::IDenseOptFlowEstimatorTraitConst for core::Ptr { #[inline] fn as_raw_IDenseOptFlowEstimator(&self) -> *const c_void { self.inner_as_raw() } } impl crate::videostab::IDenseOptFlowEstimatorTrait for core::Ptr { #[inline] fn as_raw_mut_IDenseOptFlowEstimator(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfIDenseOptFlowEstimator") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfIFrameSource = core::Ptr; ptr_extern! { crate::videostab::IFrameSource, cv_PtrLcv_videostab_IFrameSourceG_new_null_const, cv_PtrLcv_videostab_IFrameSourceG_delete, cv_PtrLcv_videostab_IFrameSourceG_getInnerPtr_const, cv_PtrLcv_videostab_IFrameSourceG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfIFrameSource(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfIFrameSource(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::videostab::IFrameSourceTraitConst for core::Ptr { #[inline] fn as_raw_IFrameSource(&self) -> *const c_void { self.inner_as_raw() } } impl crate::videostab::IFrameSourceTrait for core::Ptr { #[inline] fn as_raw_mut_IFrameSource(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfIFrameSource") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfILog = core::Ptr; ptr_extern! { crate::videostab::ILog, cv_PtrLcv_videostab_ILogG_new_null_const, cv_PtrLcv_videostab_ILogG_delete, cv_PtrLcv_videostab_ILogG_getInnerPtr_const, cv_PtrLcv_videostab_ILogG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfILog(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfILog(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::videostab::ILogTraitConst for core::Ptr { #[inline] fn as_raw_ILog(&self) -> *const c_void { self.inner_as_raw() } } impl crate::videostab::ILogTrait for core::Ptr { #[inline] fn as_raw_mut_ILog(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfILog") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfIMotionStabilizer = core::Ptr; ptr_extern! { crate::videostab::IMotionStabilizer, cv_PtrLcv_videostab_IMotionStabilizerG_new_null_const, cv_PtrLcv_videostab_IMotionStabilizerG_delete, cv_PtrLcv_videostab_IMotionStabilizerG_getInnerPtr_const, cv_PtrLcv_videostab_IMotionStabilizerG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfIMotionStabilizer(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfIMotionStabilizer(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::videostab::IMotionStabilizerTraitConst for core::Ptr { #[inline] fn as_raw_IMotionStabilizer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::videostab::IMotionStabilizerTrait for core::Ptr { #[inline] fn as_raw_mut_IMotionStabilizer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfIMotionStabilizer") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfIOutlierRejector = core::Ptr; ptr_extern! { crate::videostab::IOutlierRejector, cv_PtrLcv_videostab_IOutlierRejectorG_new_null_const, cv_PtrLcv_videostab_IOutlierRejectorG_delete, cv_PtrLcv_videostab_IOutlierRejectorG_getInnerPtr_const, cv_PtrLcv_videostab_IOutlierRejectorG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfIOutlierRejector(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfIOutlierRejector(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::videostab::IOutlierRejectorTraitConst for core::Ptr { #[inline] fn as_raw_IOutlierRejector(&self) -> *const c_void { self.inner_as_raw() } } impl crate::videostab::IOutlierRejectorTrait for core::Ptr { #[inline] fn as_raw_mut_IOutlierRejector(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfIOutlierRejector") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfISparseOptFlowEstimator = core::Ptr; ptr_extern! { crate::videostab::ISparseOptFlowEstimator, cv_PtrLcv_videostab_ISparseOptFlowEstimatorG_new_null_const, cv_PtrLcv_videostab_ISparseOptFlowEstimatorG_delete, cv_PtrLcv_videostab_ISparseOptFlowEstimatorG_getInnerPtr_const, cv_PtrLcv_videostab_ISparseOptFlowEstimatorG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfISparseOptFlowEstimator(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfISparseOptFlowEstimator(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::videostab::ISparseOptFlowEstimatorTraitConst for core::Ptr { #[inline] fn as_raw_ISparseOptFlowEstimator(&self) -> *const c_void { self.inner_as_raw() } } impl crate::videostab::ISparseOptFlowEstimatorTrait for core::Ptr { #[inline] fn as_raw_mut_ISparseOptFlowEstimator(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfISparseOptFlowEstimator") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfImageMotionEstimatorBase = core::Ptr; ptr_extern! { crate::videostab::ImageMotionEstimatorBase, cv_PtrLcv_videostab_ImageMotionEstimatorBaseG_new_null_const, cv_PtrLcv_videostab_ImageMotionEstimatorBaseG_delete, cv_PtrLcv_videostab_ImageMotionEstimatorBaseG_getInnerPtr_const, cv_PtrLcv_videostab_ImageMotionEstimatorBaseG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfImageMotionEstimatorBase(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfImageMotionEstimatorBase(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::videostab::ImageMotionEstimatorBaseTraitConst for core::Ptr { #[inline] fn as_raw_ImageMotionEstimatorBase(&self) -> *const c_void { self.inner_as_raw() } } impl crate::videostab::ImageMotionEstimatorBaseTrait for core::Ptr { #[inline] fn as_raw_mut_ImageMotionEstimatorBase(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfImageMotionEstimatorBase") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfInpainterBase = core::Ptr; ptr_extern! { crate::videostab::InpainterBase, cv_PtrLcv_videostab_InpainterBaseG_new_null_const, cv_PtrLcv_videostab_InpainterBaseG_delete, cv_PtrLcv_videostab_InpainterBaseG_getInnerPtr_const, cv_PtrLcv_videostab_InpainterBaseG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfInpainterBase(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfInpainterBase(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::videostab::InpainterBaseTraitConst for core::Ptr { #[inline] fn as_raw_InpainterBase(&self) -> *const c_void { self.inner_as_raw() } } impl crate::videostab::InpainterBaseTrait for core::Ptr { #[inline] fn as_raw_mut_InpainterBase(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfInpainterBase") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfInpaintingPipeline = core::Ptr; ptr_extern! { crate::videostab::InpaintingPipeline, cv_PtrLcv_videostab_InpaintingPipelineG_new_null_const, cv_PtrLcv_videostab_InpaintingPipelineG_delete, cv_PtrLcv_videostab_InpaintingPipelineG_getInnerPtr_const, cv_PtrLcv_videostab_InpaintingPipelineG_getInnerPtrMut } ptr_extern_ctor! { crate::videostab::InpaintingPipeline, cv_PtrLcv_videostab_InpaintingPipelineG_new_const_InpaintingPipeline } impl core::Ptr { #[inline] pub fn as_raw_PtrOfInpaintingPipeline(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfInpaintingPipeline(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::videostab::InpaintingPipelineTraitConst for core::Ptr { #[inline] fn as_raw_InpaintingPipeline(&self) -> *const c_void { self.inner_as_raw() } } impl crate::videostab::InpaintingPipelineTrait for core::Ptr { #[inline] fn as_raw_mut_InpaintingPipeline(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl crate::videostab::InpainterBaseTraitConst for core::Ptr { #[inline] fn as_raw_InpainterBase(&self) -> *const c_void { self.inner_as_raw() } } impl crate::videostab::InpainterBaseTrait for core::Ptr { #[inline] fn as_raw_mut_InpainterBase(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_videostab_InpaintingPipelineG_to_PtrOfInpainterBase } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfInpaintingPipeline") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfKeypointBasedMotionEstimator = core::Ptr; ptr_extern! { crate::videostab::KeypointBasedMotionEstimator, cv_PtrLcv_videostab_KeypointBasedMotionEstimatorG_new_null_const, cv_PtrLcv_videostab_KeypointBasedMotionEstimatorG_delete, cv_PtrLcv_videostab_KeypointBasedMotionEstimatorG_getInnerPtr_const, cv_PtrLcv_videostab_KeypointBasedMotionEstimatorG_getInnerPtrMut } ptr_extern_ctor! { crate::videostab::KeypointBasedMotionEstimator, cv_PtrLcv_videostab_KeypointBasedMotionEstimatorG_new_const_KeypointBasedMotionEstimator } impl core::Ptr { #[inline] pub fn as_raw_PtrOfKeypointBasedMotionEstimator(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfKeypointBasedMotionEstimator(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::videostab::KeypointBasedMotionEstimatorTraitConst for core::Ptr { #[inline] fn as_raw_KeypointBasedMotionEstimator(&self) -> *const c_void { self.inner_as_raw() } } impl crate::videostab::KeypointBasedMotionEstimatorTrait for core::Ptr { #[inline] fn as_raw_mut_KeypointBasedMotionEstimator(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl crate::videostab::ImageMotionEstimatorBaseTraitConst for core::Ptr { #[inline] fn as_raw_ImageMotionEstimatorBase(&self) -> *const c_void { self.inner_as_raw() } } impl crate::videostab::ImageMotionEstimatorBaseTrait for core::Ptr { #[inline] fn as_raw_mut_ImageMotionEstimatorBase(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_videostab_KeypointBasedMotionEstimatorG_to_PtrOfImageMotionEstimatorBase } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfKeypointBasedMotionEstimator") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfKeypointBasedMotionEstimatorGpu = core::Ptr; ptr_extern! { crate::videostab::KeypointBasedMotionEstimatorGpu, cv_PtrLcv_videostab_KeypointBasedMotionEstimatorGpuG_new_null_const, cv_PtrLcv_videostab_KeypointBasedMotionEstimatorGpuG_delete, cv_PtrLcv_videostab_KeypointBasedMotionEstimatorGpuG_getInnerPtr_const, cv_PtrLcv_videostab_KeypointBasedMotionEstimatorGpuG_getInnerPtrMut } ptr_extern_ctor! { crate::videostab::KeypointBasedMotionEstimatorGpu, cv_PtrLcv_videostab_KeypointBasedMotionEstimatorGpuG_new_const_KeypointBasedMotionEstimatorGpu } impl core::Ptr { #[inline] pub fn as_raw_PtrOfKeypointBasedMotionEstimatorGpu(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfKeypointBasedMotionEstimatorGpu(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::videostab::KeypointBasedMotionEstimatorGpuTraitConst for core::Ptr { #[inline] fn as_raw_KeypointBasedMotionEstimatorGpu(&self) -> *const c_void { self.inner_as_raw() } } impl crate::videostab::KeypointBasedMotionEstimatorGpuTrait for core::Ptr { #[inline] fn as_raw_mut_KeypointBasedMotionEstimatorGpu(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl crate::videostab::ImageMotionEstimatorBaseTraitConst for core::Ptr { #[inline] fn as_raw_ImageMotionEstimatorBase(&self) -> *const c_void { self.inner_as_raw() } } impl crate::videostab::ImageMotionEstimatorBaseTrait for core::Ptr { #[inline] fn as_raw_mut_ImageMotionEstimatorBase(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_videostab_KeypointBasedMotionEstimatorGpuG_to_PtrOfImageMotionEstimatorBase } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfKeypointBasedMotionEstimatorGpu") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfLogToStdout = core::Ptr; ptr_extern! { crate::videostab::LogToStdout, cv_PtrLcv_videostab_LogToStdoutG_new_null_const, cv_PtrLcv_videostab_LogToStdoutG_delete, cv_PtrLcv_videostab_LogToStdoutG_getInnerPtr_const, cv_PtrLcv_videostab_LogToStdoutG_getInnerPtrMut } ptr_extern_ctor! { crate::videostab::LogToStdout, cv_PtrLcv_videostab_LogToStdoutG_new_const_LogToStdout } impl core::Ptr { #[inline] pub fn as_raw_PtrOfLogToStdout(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfLogToStdout(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::videostab::LogToStdoutTraitConst for core::Ptr { #[inline] fn as_raw_LogToStdout(&self) -> *const c_void { self.inner_as_raw() } } impl crate::videostab::LogToStdoutTrait for core::Ptr { #[inline] fn as_raw_mut_LogToStdout(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl crate::videostab::ILogTraitConst for core::Ptr { #[inline] fn as_raw_ILog(&self) -> *const c_void { self.inner_as_raw() } } impl crate::videostab::ILogTrait for core::Ptr { #[inline] fn as_raw_mut_ILog(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_videostab_LogToStdoutG_to_PtrOfILog } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfLogToStdout") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfLpMotionStabilizer = core::Ptr; ptr_extern! { crate::videostab::LpMotionStabilizer, cv_PtrLcv_videostab_LpMotionStabilizerG_new_null_const, cv_PtrLcv_videostab_LpMotionStabilizerG_delete, cv_PtrLcv_videostab_LpMotionStabilizerG_getInnerPtr_const, cv_PtrLcv_videostab_LpMotionStabilizerG_getInnerPtrMut } ptr_extern_ctor! { crate::videostab::LpMotionStabilizer, cv_PtrLcv_videostab_LpMotionStabilizerG_new_const_LpMotionStabilizer } impl core::Ptr { #[inline] pub fn as_raw_PtrOfLpMotionStabilizer(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfLpMotionStabilizer(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::videostab::LpMotionStabilizerTraitConst for core::Ptr { #[inline] fn as_raw_LpMotionStabilizer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::videostab::LpMotionStabilizerTrait for core::Ptr { #[inline] fn as_raw_mut_LpMotionStabilizer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl crate::videostab::IMotionStabilizerTraitConst for core::Ptr { #[inline] fn as_raw_IMotionStabilizer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::videostab::IMotionStabilizerTrait for core::Ptr { #[inline] fn as_raw_mut_IMotionStabilizer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_videostab_LpMotionStabilizerG_to_PtrOfIMotionStabilizer } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfLpMotionStabilizer") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfMaskFrameSource = core::Ptr; ptr_extern! { crate::videostab::MaskFrameSource, cv_PtrLcv_videostab_MaskFrameSourceG_new_null_const, cv_PtrLcv_videostab_MaskFrameSourceG_delete, cv_PtrLcv_videostab_MaskFrameSourceG_getInnerPtr_const, cv_PtrLcv_videostab_MaskFrameSourceG_getInnerPtrMut } ptr_extern_ctor! { crate::videostab::MaskFrameSource, cv_PtrLcv_videostab_MaskFrameSourceG_new_const_MaskFrameSource } impl core::Ptr { #[inline] pub fn as_raw_PtrOfMaskFrameSource(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfMaskFrameSource(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::videostab::MaskFrameSourceTraitConst for core::Ptr { #[inline] fn as_raw_MaskFrameSource(&self) -> *const c_void { self.inner_as_raw() } } impl crate::videostab::MaskFrameSourceTrait for core::Ptr { #[inline] fn as_raw_mut_MaskFrameSource(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl crate::videostab::IFrameSourceTraitConst for core::Ptr { #[inline] fn as_raw_IFrameSource(&self) -> *const c_void { self.inner_as_raw() } } impl crate::videostab::IFrameSourceTrait for core::Ptr { #[inline] fn as_raw_mut_IFrameSource(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_videostab_MaskFrameSourceG_to_PtrOfIFrameSource } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfMaskFrameSource") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfMoreAccurateMotionWobbleSuppressor = core::Ptr; ptr_extern! { crate::videostab::MoreAccurateMotionWobbleSuppressor, cv_PtrLcv_videostab_MoreAccurateMotionWobbleSuppressorG_new_null_const, cv_PtrLcv_videostab_MoreAccurateMotionWobbleSuppressorG_delete, cv_PtrLcv_videostab_MoreAccurateMotionWobbleSuppressorG_getInnerPtr_const, cv_PtrLcv_videostab_MoreAccurateMotionWobbleSuppressorG_getInnerPtrMut } ptr_extern_ctor! { crate::videostab::MoreAccurateMotionWobbleSuppressor, cv_PtrLcv_videostab_MoreAccurateMotionWobbleSuppressorG_new_const_MoreAccurateMotionWobbleSuppressor } impl core::Ptr { #[inline] pub fn as_raw_PtrOfMoreAccurateMotionWobbleSuppressor(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfMoreAccurateMotionWobbleSuppressor(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::videostab::MoreAccurateMotionWobbleSuppressorTraitConst for core::Ptr { #[inline] fn as_raw_MoreAccurateMotionWobbleSuppressor(&self) -> *const c_void { self.inner_as_raw() } } impl crate::videostab::MoreAccurateMotionWobbleSuppressorTrait for core::Ptr { #[inline] fn as_raw_mut_MoreAccurateMotionWobbleSuppressor(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl crate::videostab::MoreAccurateMotionWobbleSuppressorBaseTraitConst for core::Ptr { #[inline] fn as_raw_MoreAccurateMotionWobbleSuppressorBase(&self) -> *const c_void { self.inner_as_raw() } } impl crate::videostab::MoreAccurateMotionWobbleSuppressorBaseTrait for core::Ptr { #[inline] fn as_raw_mut_MoreAccurateMotionWobbleSuppressorBase(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_videostab_MoreAccurateMotionWobbleSuppressorG_to_PtrOfMoreAccurateMotionWobbleSuppressorBase } impl crate::videostab::WobbleSuppressorBaseTraitConst for core::Ptr { #[inline] fn as_raw_WobbleSuppressorBase(&self) -> *const c_void { self.inner_as_raw() } } impl crate::videostab::WobbleSuppressorBaseTrait for core::Ptr { #[inline] fn as_raw_mut_WobbleSuppressorBase(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_videostab_MoreAccurateMotionWobbleSuppressorG_to_PtrOfWobbleSuppressorBase } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfMoreAccurateMotionWobbleSuppressor") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfMoreAccurateMotionWobbleSuppressorBase = core::Ptr; ptr_extern! { crate::videostab::MoreAccurateMotionWobbleSuppressorBase, cv_PtrLcv_videostab_MoreAccurateMotionWobbleSuppressorBaseG_new_null_const, cv_PtrLcv_videostab_MoreAccurateMotionWobbleSuppressorBaseG_delete, cv_PtrLcv_videostab_MoreAccurateMotionWobbleSuppressorBaseG_getInnerPtr_const, cv_PtrLcv_videostab_MoreAccurateMotionWobbleSuppressorBaseG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfMoreAccurateMotionWobbleSuppressorBase(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfMoreAccurateMotionWobbleSuppressorBase(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::videostab::MoreAccurateMotionWobbleSuppressorBaseTraitConst for core::Ptr { #[inline] fn as_raw_MoreAccurateMotionWobbleSuppressorBase(&self) -> *const c_void { self.inner_as_raw() } } impl crate::videostab::MoreAccurateMotionWobbleSuppressorBaseTrait for core::Ptr { #[inline] fn as_raw_mut_MoreAccurateMotionWobbleSuppressorBase(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl crate::videostab::WobbleSuppressorBaseTraitConst for core::Ptr { #[inline] fn as_raw_WobbleSuppressorBase(&self) -> *const c_void { self.inner_as_raw() } } impl crate::videostab::WobbleSuppressorBaseTrait for core::Ptr { #[inline] fn as_raw_mut_WobbleSuppressorBase(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_videostab_MoreAccurateMotionWobbleSuppressorBaseG_to_PtrOfWobbleSuppressorBase } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfMoreAccurateMotionWobbleSuppressorBase") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfMoreAccurateMotionWobbleSuppressorGpu = core::Ptr; ptr_extern! { crate::videostab::MoreAccurateMotionWobbleSuppressorGpu, cv_PtrLcv_videostab_MoreAccurateMotionWobbleSuppressorGpuG_new_null_const, cv_PtrLcv_videostab_MoreAccurateMotionWobbleSuppressorGpuG_delete, cv_PtrLcv_videostab_MoreAccurateMotionWobbleSuppressorGpuG_getInnerPtr_const, cv_PtrLcv_videostab_MoreAccurateMotionWobbleSuppressorGpuG_getInnerPtrMut } ptr_extern_ctor! { crate::videostab::MoreAccurateMotionWobbleSuppressorGpu, cv_PtrLcv_videostab_MoreAccurateMotionWobbleSuppressorGpuG_new_const_MoreAccurateMotionWobbleSuppressorGpu } impl core::Ptr { #[inline] pub fn as_raw_PtrOfMoreAccurateMotionWobbleSuppressorGpu(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfMoreAccurateMotionWobbleSuppressorGpu(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::videostab::MoreAccurateMotionWobbleSuppressorGpuTraitConst for core::Ptr { #[inline] fn as_raw_MoreAccurateMotionWobbleSuppressorGpu(&self) -> *const c_void { self.inner_as_raw() } } impl crate::videostab::MoreAccurateMotionWobbleSuppressorGpuTrait for core::Ptr { #[inline] fn as_raw_mut_MoreAccurateMotionWobbleSuppressorGpu(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl crate::videostab::MoreAccurateMotionWobbleSuppressorBaseTraitConst for core::Ptr { #[inline] fn as_raw_MoreAccurateMotionWobbleSuppressorBase(&self) -> *const c_void { self.inner_as_raw() } } impl crate::videostab::MoreAccurateMotionWobbleSuppressorBaseTrait for core::Ptr { #[inline] fn as_raw_mut_MoreAccurateMotionWobbleSuppressorBase(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_videostab_MoreAccurateMotionWobbleSuppressorGpuG_to_PtrOfMoreAccurateMotionWobbleSuppressorBase } impl crate::videostab::WobbleSuppressorBaseTraitConst for core::Ptr { #[inline] fn as_raw_WobbleSuppressorBase(&self) -> *const c_void { self.inner_as_raw() } } impl crate::videostab::WobbleSuppressorBaseTrait for core::Ptr { #[inline] fn as_raw_mut_WobbleSuppressorBase(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_videostab_MoreAccurateMotionWobbleSuppressorGpuG_to_PtrOfWobbleSuppressorBase } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfMoreAccurateMotionWobbleSuppressorGpu") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfMotionEstimatorBase = core::Ptr; ptr_extern! { crate::videostab::MotionEstimatorBase, cv_PtrLcv_videostab_MotionEstimatorBaseG_new_null_const, cv_PtrLcv_videostab_MotionEstimatorBaseG_delete, cv_PtrLcv_videostab_MotionEstimatorBaseG_getInnerPtr_const, cv_PtrLcv_videostab_MotionEstimatorBaseG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfMotionEstimatorBase(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfMotionEstimatorBase(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::videostab::MotionEstimatorBaseTraitConst for core::Ptr { #[inline] fn as_raw_MotionEstimatorBase(&self) -> *const c_void { self.inner_as_raw() } } impl crate::videostab::MotionEstimatorBaseTrait for core::Ptr { #[inline] fn as_raw_mut_MotionEstimatorBase(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfMotionEstimatorBase") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfMotionEstimatorL1 = core::Ptr; ptr_extern! { crate::videostab::MotionEstimatorL1, cv_PtrLcv_videostab_MotionEstimatorL1G_new_null_const, cv_PtrLcv_videostab_MotionEstimatorL1G_delete, cv_PtrLcv_videostab_MotionEstimatorL1G_getInnerPtr_const, cv_PtrLcv_videostab_MotionEstimatorL1G_getInnerPtrMut } ptr_extern_ctor! { crate::videostab::MotionEstimatorL1, cv_PtrLcv_videostab_MotionEstimatorL1G_new_const_MotionEstimatorL1 } impl core::Ptr { #[inline] pub fn as_raw_PtrOfMotionEstimatorL1(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfMotionEstimatorL1(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::videostab::MotionEstimatorL1TraitConst for core::Ptr { #[inline] fn as_raw_MotionEstimatorL1(&self) -> *const c_void { self.inner_as_raw() } } impl crate::videostab::MotionEstimatorL1Trait for core::Ptr { #[inline] fn as_raw_mut_MotionEstimatorL1(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl crate::videostab::MotionEstimatorBaseTraitConst for core::Ptr { #[inline] fn as_raw_MotionEstimatorBase(&self) -> *const c_void { self.inner_as_raw() } } impl crate::videostab::MotionEstimatorBaseTrait for core::Ptr { #[inline] fn as_raw_mut_MotionEstimatorBase(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_videostab_MotionEstimatorL1G_to_PtrOfMotionEstimatorBase } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfMotionEstimatorL1") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfMotionEstimatorRansacL2 = core::Ptr; ptr_extern! { crate::videostab::MotionEstimatorRansacL2, cv_PtrLcv_videostab_MotionEstimatorRansacL2G_new_null_const, cv_PtrLcv_videostab_MotionEstimatorRansacL2G_delete, cv_PtrLcv_videostab_MotionEstimatorRansacL2G_getInnerPtr_const, cv_PtrLcv_videostab_MotionEstimatorRansacL2G_getInnerPtrMut } ptr_extern_ctor! { crate::videostab::MotionEstimatorRansacL2, cv_PtrLcv_videostab_MotionEstimatorRansacL2G_new_const_MotionEstimatorRansacL2 } impl core::Ptr { #[inline] pub fn as_raw_PtrOfMotionEstimatorRansacL2(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfMotionEstimatorRansacL2(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::videostab::MotionEstimatorRansacL2TraitConst for core::Ptr { #[inline] fn as_raw_MotionEstimatorRansacL2(&self) -> *const c_void { self.inner_as_raw() } } impl crate::videostab::MotionEstimatorRansacL2Trait for core::Ptr { #[inline] fn as_raw_mut_MotionEstimatorRansacL2(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl crate::videostab::MotionEstimatorBaseTraitConst for core::Ptr { #[inline] fn as_raw_MotionEstimatorBase(&self) -> *const c_void { self.inner_as_raw() } } impl crate::videostab::MotionEstimatorBaseTrait for core::Ptr { #[inline] fn as_raw_mut_MotionEstimatorBase(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_videostab_MotionEstimatorRansacL2G_to_PtrOfMotionEstimatorBase } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfMotionEstimatorRansacL2") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfMotionFilterBase = core::Ptr; ptr_extern! { crate::videostab::MotionFilterBase, cv_PtrLcv_videostab_MotionFilterBaseG_new_null_const, cv_PtrLcv_videostab_MotionFilterBaseG_delete, cv_PtrLcv_videostab_MotionFilterBaseG_getInnerPtr_const, cv_PtrLcv_videostab_MotionFilterBaseG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfMotionFilterBase(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfMotionFilterBase(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::videostab::MotionFilterBaseTraitConst for core::Ptr { #[inline] fn as_raw_MotionFilterBase(&self) -> *const c_void { self.inner_as_raw() } } impl crate::videostab::MotionFilterBaseTrait for core::Ptr { #[inline] fn as_raw_mut_MotionFilterBase(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl crate::videostab::IMotionStabilizerTraitConst for core::Ptr { #[inline] fn as_raw_IMotionStabilizer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::videostab::IMotionStabilizerTrait for core::Ptr { #[inline] fn as_raw_mut_IMotionStabilizer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_videostab_MotionFilterBaseG_to_PtrOfIMotionStabilizer } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfMotionFilterBase") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfMotionInpainter = core::Ptr; ptr_extern! { crate::videostab::MotionInpainter, cv_PtrLcv_videostab_MotionInpainterG_new_null_const, cv_PtrLcv_videostab_MotionInpainterG_delete, cv_PtrLcv_videostab_MotionInpainterG_getInnerPtr_const, cv_PtrLcv_videostab_MotionInpainterG_getInnerPtrMut } ptr_extern_ctor! { crate::videostab::MotionInpainter, cv_PtrLcv_videostab_MotionInpainterG_new_const_MotionInpainter } impl core::Ptr { #[inline] pub fn as_raw_PtrOfMotionInpainter(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfMotionInpainter(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::videostab::MotionInpainterTraitConst for core::Ptr { #[inline] fn as_raw_MotionInpainter(&self) -> *const c_void { self.inner_as_raw() } } impl crate::videostab::MotionInpainterTrait for core::Ptr { #[inline] fn as_raw_mut_MotionInpainter(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl crate::videostab::InpainterBaseTraitConst for core::Ptr { #[inline] fn as_raw_InpainterBase(&self) -> *const c_void { self.inner_as_raw() } } impl crate::videostab::InpainterBaseTrait for core::Ptr { #[inline] fn as_raw_mut_InpainterBase(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_videostab_MotionInpainterG_to_PtrOfInpainterBase } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfMotionInpainter") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfMotionStabilizationPipeline = core::Ptr; ptr_extern! { crate::videostab::MotionStabilizationPipeline, cv_PtrLcv_videostab_MotionStabilizationPipelineG_new_null_const, cv_PtrLcv_videostab_MotionStabilizationPipelineG_delete, cv_PtrLcv_videostab_MotionStabilizationPipelineG_getInnerPtr_const, cv_PtrLcv_videostab_MotionStabilizationPipelineG_getInnerPtrMut } ptr_extern_ctor! { crate::videostab::MotionStabilizationPipeline, cv_PtrLcv_videostab_MotionStabilizationPipelineG_new_const_MotionStabilizationPipeline } impl core::Ptr { #[inline] pub fn as_raw_PtrOfMotionStabilizationPipeline(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfMotionStabilizationPipeline(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::videostab::MotionStabilizationPipelineTraitConst for core::Ptr { #[inline] fn as_raw_MotionStabilizationPipeline(&self) -> *const c_void { self.inner_as_raw() } } impl crate::videostab::MotionStabilizationPipelineTrait for core::Ptr { #[inline] fn as_raw_mut_MotionStabilizationPipeline(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl crate::videostab::IMotionStabilizerTraitConst for core::Ptr { #[inline] fn as_raw_IMotionStabilizer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::videostab::IMotionStabilizerTrait for core::Ptr { #[inline] fn as_raw_mut_IMotionStabilizer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_videostab_MotionStabilizationPipelineG_to_PtrOfIMotionStabilizer } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfMotionStabilizationPipeline") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfNullDeblurer = core::Ptr; ptr_extern! { crate::videostab::NullDeblurer, cv_PtrLcv_videostab_NullDeblurerG_new_null_const, cv_PtrLcv_videostab_NullDeblurerG_delete, cv_PtrLcv_videostab_NullDeblurerG_getInnerPtr_const, cv_PtrLcv_videostab_NullDeblurerG_getInnerPtrMut } ptr_extern_ctor! { crate::videostab::NullDeblurer, cv_PtrLcv_videostab_NullDeblurerG_new_const_NullDeblurer } impl core::Ptr { #[inline] pub fn as_raw_PtrOfNullDeblurer(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfNullDeblurer(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::videostab::NullDeblurerTraitConst for core::Ptr { #[inline] fn as_raw_NullDeblurer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::videostab::NullDeblurerTrait for core::Ptr { #[inline] fn as_raw_mut_NullDeblurer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl crate::videostab::DeblurerBaseTraitConst for core::Ptr { #[inline] fn as_raw_DeblurerBase(&self) -> *const c_void { self.inner_as_raw() } } impl crate::videostab::DeblurerBaseTrait for core::Ptr { #[inline] fn as_raw_mut_DeblurerBase(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_videostab_NullDeblurerG_to_PtrOfDeblurerBase } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfNullDeblurer") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfNullFrameSource = core::Ptr; ptr_extern! { crate::videostab::NullFrameSource, cv_PtrLcv_videostab_NullFrameSourceG_new_null_const, cv_PtrLcv_videostab_NullFrameSourceG_delete, cv_PtrLcv_videostab_NullFrameSourceG_getInnerPtr_const, cv_PtrLcv_videostab_NullFrameSourceG_getInnerPtrMut } ptr_extern_ctor! { crate::videostab::NullFrameSource, cv_PtrLcv_videostab_NullFrameSourceG_new_const_NullFrameSource } impl core::Ptr { #[inline] pub fn as_raw_PtrOfNullFrameSource(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfNullFrameSource(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::videostab::NullFrameSourceTraitConst for core::Ptr { #[inline] fn as_raw_NullFrameSource(&self) -> *const c_void { self.inner_as_raw() } } impl crate::videostab::NullFrameSourceTrait for core::Ptr { #[inline] fn as_raw_mut_NullFrameSource(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl crate::videostab::IFrameSourceTraitConst for core::Ptr { #[inline] fn as_raw_IFrameSource(&self) -> *const c_void { self.inner_as_raw() } } impl crate::videostab::IFrameSourceTrait for core::Ptr { #[inline] fn as_raw_mut_IFrameSource(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_videostab_NullFrameSourceG_to_PtrOfIFrameSource } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfNullFrameSource") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfNullInpainter = core::Ptr; ptr_extern! { crate::videostab::NullInpainter, cv_PtrLcv_videostab_NullInpainterG_new_null_const, cv_PtrLcv_videostab_NullInpainterG_delete, cv_PtrLcv_videostab_NullInpainterG_getInnerPtr_const, cv_PtrLcv_videostab_NullInpainterG_getInnerPtrMut } ptr_extern_ctor! { crate::videostab::NullInpainter, cv_PtrLcv_videostab_NullInpainterG_new_const_NullInpainter } impl core::Ptr { #[inline] pub fn as_raw_PtrOfNullInpainter(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfNullInpainter(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::videostab::NullInpainterTraitConst for core::Ptr { #[inline] fn as_raw_NullInpainter(&self) -> *const c_void { self.inner_as_raw() } } impl crate::videostab::NullInpainterTrait for core::Ptr { #[inline] fn as_raw_mut_NullInpainter(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl crate::videostab::InpainterBaseTraitConst for core::Ptr { #[inline] fn as_raw_InpainterBase(&self) -> *const c_void { self.inner_as_raw() } } impl crate::videostab::InpainterBaseTrait for core::Ptr { #[inline] fn as_raw_mut_InpainterBase(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_videostab_NullInpainterG_to_PtrOfInpainterBase } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfNullInpainter") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfNullLog = core::Ptr; ptr_extern! { crate::videostab::NullLog, cv_PtrLcv_videostab_NullLogG_new_null_const, cv_PtrLcv_videostab_NullLogG_delete, cv_PtrLcv_videostab_NullLogG_getInnerPtr_const, cv_PtrLcv_videostab_NullLogG_getInnerPtrMut } ptr_extern_ctor! { crate::videostab::NullLog, cv_PtrLcv_videostab_NullLogG_new_const_NullLog } impl core::Ptr { #[inline] pub fn as_raw_PtrOfNullLog(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfNullLog(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::videostab::NullLogTraitConst for core::Ptr { #[inline] fn as_raw_NullLog(&self) -> *const c_void { self.inner_as_raw() } } impl crate::videostab::NullLogTrait for core::Ptr { #[inline] fn as_raw_mut_NullLog(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl crate::videostab::ILogTraitConst for core::Ptr { #[inline] fn as_raw_ILog(&self) -> *const c_void { self.inner_as_raw() } } impl crate::videostab::ILogTrait for core::Ptr { #[inline] fn as_raw_mut_ILog(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_videostab_NullLogG_to_PtrOfILog } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfNullLog") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfNullOutlierRejector = core::Ptr; ptr_extern! { crate::videostab::NullOutlierRejector, cv_PtrLcv_videostab_NullOutlierRejectorG_new_null_const, cv_PtrLcv_videostab_NullOutlierRejectorG_delete, cv_PtrLcv_videostab_NullOutlierRejectorG_getInnerPtr_const, cv_PtrLcv_videostab_NullOutlierRejectorG_getInnerPtrMut } ptr_extern_ctor! { crate::videostab::NullOutlierRejector, cv_PtrLcv_videostab_NullOutlierRejectorG_new_const_NullOutlierRejector } impl core::Ptr { #[inline] pub fn as_raw_PtrOfNullOutlierRejector(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfNullOutlierRejector(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::videostab::NullOutlierRejectorTraitConst for core::Ptr { #[inline] fn as_raw_NullOutlierRejector(&self) -> *const c_void { self.inner_as_raw() } } impl crate::videostab::NullOutlierRejectorTrait for core::Ptr { #[inline] fn as_raw_mut_NullOutlierRejector(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl crate::videostab::IOutlierRejectorTraitConst for core::Ptr { #[inline] fn as_raw_IOutlierRejector(&self) -> *const c_void { self.inner_as_raw() } } impl crate::videostab::IOutlierRejectorTrait for core::Ptr { #[inline] fn as_raw_mut_IOutlierRejector(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_videostab_NullOutlierRejectorG_to_PtrOfIOutlierRejector } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfNullOutlierRejector") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfNullWobbleSuppressor = core::Ptr; ptr_extern! { crate::videostab::NullWobbleSuppressor, cv_PtrLcv_videostab_NullWobbleSuppressorG_new_null_const, cv_PtrLcv_videostab_NullWobbleSuppressorG_delete, cv_PtrLcv_videostab_NullWobbleSuppressorG_getInnerPtr_const, cv_PtrLcv_videostab_NullWobbleSuppressorG_getInnerPtrMut } ptr_extern_ctor! { crate::videostab::NullWobbleSuppressor, cv_PtrLcv_videostab_NullWobbleSuppressorG_new_const_NullWobbleSuppressor } impl core::Ptr { #[inline] pub fn as_raw_PtrOfNullWobbleSuppressor(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfNullWobbleSuppressor(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::videostab::NullWobbleSuppressorTraitConst for core::Ptr { #[inline] fn as_raw_NullWobbleSuppressor(&self) -> *const c_void { self.inner_as_raw() } } impl crate::videostab::NullWobbleSuppressorTrait for core::Ptr { #[inline] fn as_raw_mut_NullWobbleSuppressor(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl crate::videostab::WobbleSuppressorBaseTraitConst for core::Ptr { #[inline] fn as_raw_WobbleSuppressorBase(&self) -> *const c_void { self.inner_as_raw() } } impl crate::videostab::WobbleSuppressorBaseTrait for core::Ptr { #[inline] fn as_raw_mut_WobbleSuppressorBase(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_videostab_NullWobbleSuppressorG_to_PtrOfWobbleSuppressorBase } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfNullWobbleSuppressor") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfOnePassStabilizer = core::Ptr; ptr_extern! { crate::videostab::OnePassStabilizer, cv_PtrLcv_videostab_OnePassStabilizerG_new_null_const, cv_PtrLcv_videostab_OnePassStabilizerG_delete, cv_PtrLcv_videostab_OnePassStabilizerG_getInnerPtr_const, cv_PtrLcv_videostab_OnePassStabilizerG_getInnerPtrMut } ptr_extern_ctor! { crate::videostab::OnePassStabilizer, cv_PtrLcv_videostab_OnePassStabilizerG_new_const_OnePassStabilizer } impl core::Ptr { #[inline] pub fn as_raw_PtrOfOnePassStabilizer(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfOnePassStabilizer(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::videostab::OnePassStabilizerTraitConst for core::Ptr { #[inline] fn as_raw_OnePassStabilizer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::videostab::OnePassStabilizerTrait for core::Ptr { #[inline] fn as_raw_mut_OnePassStabilizer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl crate::videostab::IFrameSourceTraitConst for core::Ptr { #[inline] fn as_raw_IFrameSource(&self) -> *const c_void { self.inner_as_raw() } } impl crate::videostab::IFrameSourceTrait for core::Ptr { #[inline] fn as_raw_mut_IFrameSource(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_videostab_OnePassStabilizerG_to_PtrOfIFrameSource } impl crate::videostab::StabilizerBaseTraitConst for core::Ptr { #[inline] fn as_raw_StabilizerBase(&self) -> *const c_void { self.inner_as_raw() } } impl crate::videostab::StabilizerBaseTrait for core::Ptr { #[inline] fn as_raw_mut_StabilizerBase(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_videostab_OnePassStabilizerG_to_PtrOfStabilizerBase } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfOnePassStabilizer") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfPyrLkOptFlowEstimatorBase = core::Ptr; ptr_extern! { crate::videostab::PyrLkOptFlowEstimatorBase, cv_PtrLcv_videostab_PyrLkOptFlowEstimatorBaseG_new_null_const, cv_PtrLcv_videostab_PyrLkOptFlowEstimatorBaseG_delete, cv_PtrLcv_videostab_PyrLkOptFlowEstimatorBaseG_getInnerPtr_const, cv_PtrLcv_videostab_PyrLkOptFlowEstimatorBaseG_getInnerPtrMut } ptr_extern_ctor! { crate::videostab::PyrLkOptFlowEstimatorBase, cv_PtrLcv_videostab_PyrLkOptFlowEstimatorBaseG_new_const_PyrLkOptFlowEstimatorBase } impl core::Ptr { #[inline] pub fn as_raw_PtrOfPyrLkOptFlowEstimatorBase(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfPyrLkOptFlowEstimatorBase(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::videostab::PyrLkOptFlowEstimatorBaseTraitConst for core::Ptr { #[inline] fn as_raw_PyrLkOptFlowEstimatorBase(&self) -> *const c_void { self.inner_as_raw() } } impl crate::videostab::PyrLkOptFlowEstimatorBaseTrait for core::Ptr { #[inline] fn as_raw_mut_PyrLkOptFlowEstimatorBase(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfPyrLkOptFlowEstimatorBase") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfSparsePyrLkOptFlowEstimator = core::Ptr; ptr_extern! { crate::videostab::SparsePyrLkOptFlowEstimator, cv_PtrLcv_videostab_SparsePyrLkOptFlowEstimatorG_new_null_const, cv_PtrLcv_videostab_SparsePyrLkOptFlowEstimatorG_delete, cv_PtrLcv_videostab_SparsePyrLkOptFlowEstimatorG_getInnerPtr_const, cv_PtrLcv_videostab_SparsePyrLkOptFlowEstimatorG_getInnerPtrMut } ptr_extern_ctor! { crate::videostab::SparsePyrLkOptFlowEstimator, cv_PtrLcv_videostab_SparsePyrLkOptFlowEstimatorG_new_const_SparsePyrLkOptFlowEstimator } impl core::Ptr { #[inline] pub fn as_raw_PtrOfSparsePyrLkOptFlowEstimator(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfSparsePyrLkOptFlowEstimator(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::videostab::SparsePyrLkOptFlowEstimatorTraitConst for core::Ptr { #[inline] fn as_raw_SparsePyrLkOptFlowEstimator(&self) -> *const c_void { self.inner_as_raw() } } impl crate::videostab::SparsePyrLkOptFlowEstimatorTrait for core::Ptr { #[inline] fn as_raw_mut_SparsePyrLkOptFlowEstimator(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl crate::videostab::ISparseOptFlowEstimatorTraitConst for core::Ptr { #[inline] fn as_raw_ISparseOptFlowEstimator(&self) -> *const c_void { self.inner_as_raw() } } impl crate::videostab::ISparseOptFlowEstimatorTrait for core::Ptr { #[inline] fn as_raw_mut_ISparseOptFlowEstimator(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_videostab_SparsePyrLkOptFlowEstimatorG_to_PtrOfISparseOptFlowEstimator } impl crate::videostab::PyrLkOptFlowEstimatorBaseTraitConst for core::Ptr { #[inline] fn as_raw_PyrLkOptFlowEstimatorBase(&self) -> *const c_void { self.inner_as_raw() } } impl crate::videostab::PyrLkOptFlowEstimatorBaseTrait for core::Ptr { #[inline] fn as_raw_mut_PyrLkOptFlowEstimatorBase(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_videostab_SparsePyrLkOptFlowEstimatorG_to_PtrOfPyrLkOptFlowEstimatorBase } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfSparsePyrLkOptFlowEstimator") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfSparsePyrLkOptFlowEstimatorGpu = core::Ptr; ptr_extern! { crate::videostab::SparsePyrLkOptFlowEstimatorGpu, cv_PtrLcv_videostab_SparsePyrLkOptFlowEstimatorGpuG_new_null_const, cv_PtrLcv_videostab_SparsePyrLkOptFlowEstimatorGpuG_delete, cv_PtrLcv_videostab_SparsePyrLkOptFlowEstimatorGpuG_getInnerPtr_const, cv_PtrLcv_videostab_SparsePyrLkOptFlowEstimatorGpuG_getInnerPtrMut } ptr_extern_ctor! { crate::videostab::SparsePyrLkOptFlowEstimatorGpu, cv_PtrLcv_videostab_SparsePyrLkOptFlowEstimatorGpuG_new_const_SparsePyrLkOptFlowEstimatorGpu } impl core::Ptr { #[inline] pub fn as_raw_PtrOfSparsePyrLkOptFlowEstimatorGpu(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfSparsePyrLkOptFlowEstimatorGpu(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::videostab::SparsePyrLkOptFlowEstimatorGpuTraitConst for core::Ptr { #[inline] fn as_raw_SparsePyrLkOptFlowEstimatorGpu(&self) -> *const c_void { self.inner_as_raw() } } impl crate::videostab::SparsePyrLkOptFlowEstimatorGpuTrait for core::Ptr { #[inline] fn as_raw_mut_SparsePyrLkOptFlowEstimatorGpu(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl crate::videostab::ISparseOptFlowEstimatorTraitConst for core::Ptr { #[inline] fn as_raw_ISparseOptFlowEstimator(&self) -> *const c_void { self.inner_as_raw() } } impl crate::videostab::ISparseOptFlowEstimatorTrait for core::Ptr { #[inline] fn as_raw_mut_ISparseOptFlowEstimator(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_videostab_SparsePyrLkOptFlowEstimatorGpuG_to_PtrOfISparseOptFlowEstimator } impl crate::videostab::PyrLkOptFlowEstimatorBaseTraitConst for core::Ptr { #[inline] fn as_raw_PyrLkOptFlowEstimatorBase(&self) -> *const c_void { self.inner_as_raw() } } impl crate::videostab::PyrLkOptFlowEstimatorBaseTrait for core::Ptr { #[inline] fn as_raw_mut_PyrLkOptFlowEstimatorBase(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_videostab_SparsePyrLkOptFlowEstimatorGpuG_to_PtrOfPyrLkOptFlowEstimatorBase } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfSparsePyrLkOptFlowEstimatorGpu") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfStabilizerBase = core::Ptr; ptr_extern! { crate::videostab::StabilizerBase, cv_PtrLcv_videostab_StabilizerBaseG_new_null_const, cv_PtrLcv_videostab_StabilizerBaseG_delete, cv_PtrLcv_videostab_StabilizerBaseG_getInnerPtr_const, cv_PtrLcv_videostab_StabilizerBaseG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfStabilizerBase(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfStabilizerBase(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::videostab::StabilizerBaseTraitConst for core::Ptr { #[inline] fn as_raw_StabilizerBase(&self) -> *const c_void { self.inner_as_raw() } } impl crate::videostab::StabilizerBaseTrait for core::Ptr { #[inline] fn as_raw_mut_StabilizerBase(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfStabilizerBase") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfToFileMotionWriter = core::Ptr; ptr_extern! { crate::videostab::ToFileMotionWriter, cv_PtrLcv_videostab_ToFileMotionWriterG_new_null_const, cv_PtrLcv_videostab_ToFileMotionWriterG_delete, cv_PtrLcv_videostab_ToFileMotionWriterG_getInnerPtr_const, cv_PtrLcv_videostab_ToFileMotionWriterG_getInnerPtrMut } ptr_extern_ctor! { crate::videostab::ToFileMotionWriter, cv_PtrLcv_videostab_ToFileMotionWriterG_new_const_ToFileMotionWriter } impl core::Ptr { #[inline] pub fn as_raw_PtrOfToFileMotionWriter(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfToFileMotionWriter(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::videostab::ToFileMotionWriterTraitConst for core::Ptr { #[inline] fn as_raw_ToFileMotionWriter(&self) -> *const c_void { self.inner_as_raw() } } impl crate::videostab::ToFileMotionWriterTrait for core::Ptr { #[inline] fn as_raw_mut_ToFileMotionWriter(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl crate::videostab::ImageMotionEstimatorBaseTraitConst for core::Ptr { #[inline] fn as_raw_ImageMotionEstimatorBase(&self) -> *const c_void { self.inner_as_raw() } } impl crate::videostab::ImageMotionEstimatorBaseTrait for core::Ptr { #[inline] fn as_raw_mut_ImageMotionEstimatorBase(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_videostab_ToFileMotionWriterG_to_PtrOfImageMotionEstimatorBase } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfToFileMotionWriter") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfTranslationBasedLocalOutlierRejector = core::Ptr; ptr_extern! { crate::videostab::TranslationBasedLocalOutlierRejector, cv_PtrLcv_videostab_TranslationBasedLocalOutlierRejectorG_new_null_const, cv_PtrLcv_videostab_TranslationBasedLocalOutlierRejectorG_delete, cv_PtrLcv_videostab_TranslationBasedLocalOutlierRejectorG_getInnerPtr_const, cv_PtrLcv_videostab_TranslationBasedLocalOutlierRejectorG_getInnerPtrMut } ptr_extern_ctor! { crate::videostab::TranslationBasedLocalOutlierRejector, cv_PtrLcv_videostab_TranslationBasedLocalOutlierRejectorG_new_const_TranslationBasedLocalOutlierRejector } impl core::Ptr { #[inline] pub fn as_raw_PtrOfTranslationBasedLocalOutlierRejector(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfTranslationBasedLocalOutlierRejector(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::videostab::TranslationBasedLocalOutlierRejectorTraitConst for core::Ptr { #[inline] fn as_raw_TranslationBasedLocalOutlierRejector(&self) -> *const c_void { self.inner_as_raw() } } impl crate::videostab::TranslationBasedLocalOutlierRejectorTrait for core::Ptr { #[inline] fn as_raw_mut_TranslationBasedLocalOutlierRejector(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl crate::videostab::IOutlierRejectorTraitConst for core::Ptr { #[inline] fn as_raw_IOutlierRejector(&self) -> *const c_void { self.inner_as_raw() } } impl crate::videostab::IOutlierRejectorTrait for core::Ptr { #[inline] fn as_raw_mut_IOutlierRejector(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_videostab_TranslationBasedLocalOutlierRejectorG_to_PtrOfIOutlierRejector } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfTranslationBasedLocalOutlierRejector") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfTwoPassStabilizer = core::Ptr; ptr_extern! { crate::videostab::TwoPassStabilizer, cv_PtrLcv_videostab_TwoPassStabilizerG_new_null_const, cv_PtrLcv_videostab_TwoPassStabilizerG_delete, cv_PtrLcv_videostab_TwoPassStabilizerG_getInnerPtr_const, cv_PtrLcv_videostab_TwoPassStabilizerG_getInnerPtrMut } ptr_extern_ctor! { crate::videostab::TwoPassStabilizer, cv_PtrLcv_videostab_TwoPassStabilizerG_new_const_TwoPassStabilizer } impl core::Ptr { #[inline] pub fn as_raw_PtrOfTwoPassStabilizer(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfTwoPassStabilizer(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::videostab::TwoPassStabilizerTraitConst for core::Ptr { #[inline] fn as_raw_TwoPassStabilizer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::videostab::TwoPassStabilizerTrait for core::Ptr { #[inline] fn as_raw_mut_TwoPassStabilizer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl crate::videostab::IFrameSourceTraitConst for core::Ptr { #[inline] fn as_raw_IFrameSource(&self) -> *const c_void { self.inner_as_raw() } } impl crate::videostab::IFrameSourceTrait for core::Ptr { #[inline] fn as_raw_mut_IFrameSource(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_videostab_TwoPassStabilizerG_to_PtrOfIFrameSource } impl crate::videostab::StabilizerBaseTraitConst for core::Ptr { #[inline] fn as_raw_StabilizerBase(&self) -> *const c_void { self.inner_as_raw() } } impl crate::videostab::StabilizerBaseTrait for core::Ptr { #[inline] fn as_raw_mut_StabilizerBase(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_videostab_TwoPassStabilizerG_to_PtrOfStabilizerBase } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfTwoPassStabilizer") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfVideoFileSource = core::Ptr; ptr_extern! { crate::videostab::VideoFileSource, cv_PtrLcv_videostab_VideoFileSourceG_new_null_const, cv_PtrLcv_videostab_VideoFileSourceG_delete, cv_PtrLcv_videostab_VideoFileSourceG_getInnerPtr_const, cv_PtrLcv_videostab_VideoFileSourceG_getInnerPtrMut } ptr_extern_ctor! { crate::videostab::VideoFileSource, cv_PtrLcv_videostab_VideoFileSourceG_new_const_VideoFileSource } impl core::Ptr { #[inline] pub fn as_raw_PtrOfVideoFileSource(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfVideoFileSource(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::videostab::VideoFileSourceTraitConst for core::Ptr { #[inline] fn as_raw_VideoFileSource(&self) -> *const c_void { self.inner_as_raw() } } impl crate::videostab::VideoFileSourceTrait for core::Ptr { #[inline] fn as_raw_mut_VideoFileSource(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl crate::videostab::IFrameSourceTraitConst for core::Ptr { #[inline] fn as_raw_IFrameSource(&self) -> *const c_void { self.inner_as_raw() } } impl crate::videostab::IFrameSourceTrait for core::Ptr { #[inline] fn as_raw_mut_IFrameSource(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_videostab_VideoFileSourceG_to_PtrOfIFrameSource } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfVideoFileSource") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfWeightingDeblurer = core::Ptr; ptr_extern! { crate::videostab::WeightingDeblurer, cv_PtrLcv_videostab_WeightingDeblurerG_new_null_const, cv_PtrLcv_videostab_WeightingDeblurerG_delete, cv_PtrLcv_videostab_WeightingDeblurerG_getInnerPtr_const, cv_PtrLcv_videostab_WeightingDeblurerG_getInnerPtrMut } ptr_extern_ctor! { crate::videostab::WeightingDeblurer, cv_PtrLcv_videostab_WeightingDeblurerG_new_const_WeightingDeblurer } impl core::Ptr { #[inline] pub fn as_raw_PtrOfWeightingDeblurer(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfWeightingDeblurer(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::videostab::WeightingDeblurerTraitConst for core::Ptr { #[inline] fn as_raw_WeightingDeblurer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::videostab::WeightingDeblurerTrait for core::Ptr { #[inline] fn as_raw_mut_WeightingDeblurer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl crate::videostab::DeblurerBaseTraitConst for core::Ptr { #[inline] fn as_raw_DeblurerBase(&self) -> *const c_void { self.inner_as_raw() } } impl crate::videostab::DeblurerBaseTrait for core::Ptr { #[inline] fn as_raw_mut_DeblurerBase(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_videostab_WeightingDeblurerG_to_PtrOfDeblurerBase } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfWeightingDeblurer") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfWobbleSuppressorBase = core::Ptr; ptr_extern! { crate::videostab::WobbleSuppressorBase, cv_PtrLcv_videostab_WobbleSuppressorBaseG_new_null_const, cv_PtrLcv_videostab_WobbleSuppressorBaseG_delete, cv_PtrLcv_videostab_WobbleSuppressorBaseG_getInnerPtr_const, cv_PtrLcv_videostab_WobbleSuppressorBaseG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfWobbleSuppressorBase(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfWobbleSuppressorBase(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::videostab::WobbleSuppressorBaseTraitConst for core::Ptr { #[inline] fn as_raw_WobbleSuppressorBase(&self) -> *const c_void { self.inner_as_raw() } } impl crate::videostab::WobbleSuppressorBaseTrait for core::Ptr { #[inline] fn as_raw_mut_WobbleSuppressorBase(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfWobbleSuppressorBase") .finish() } } } #[cfg(ocvrs_has_module_videostab)] pub use videostab_types::*; #[cfg(ocvrs_has_module_xfeatures2d)] mod xfeatures2d_types { use crate::{mod_prelude::*, core, types, sys}; #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfAffineFeature2D = core::Ptr; ptr_extern! { crate::xfeatures2d::AffineFeature2D, cv_PtrLcv_xfeatures2d_AffineFeature2DG_new_null_const, cv_PtrLcv_xfeatures2d_AffineFeature2DG_delete, cv_PtrLcv_xfeatures2d_AffineFeature2DG_getInnerPtr_const, cv_PtrLcv_xfeatures2d_AffineFeature2DG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfAffineFeature2D(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfAffineFeature2D(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::xfeatures2d::AffineFeature2DTraitConst for core::Ptr { #[inline] fn as_raw_AffineFeature2D(&self) -> *const c_void { self.inner_as_raw() } } impl crate::xfeatures2d::AffineFeature2DTrait for core::Ptr { #[inline] fn as_raw_mut_AffineFeature2D(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_xfeatures2d_AffineFeature2DG_to_PtrOfAlgorithm } impl crate::features2d::Feature2DTraitConst for core::Ptr { #[inline] fn as_raw_Feature2D(&self) -> *const c_void { self.inner_as_raw() } } impl crate::features2d::Feature2DTrait for core::Ptr { #[inline] fn as_raw_mut_Feature2D(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_xfeatures2d_AffineFeature2DG_to_PtrOfFeature2D } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfAffineFeature2D") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfBEBLID = core::Ptr; ptr_extern! { crate::xfeatures2d::BEBLID, cv_PtrLcv_xfeatures2d_BEBLIDG_new_null_const, cv_PtrLcv_xfeatures2d_BEBLIDG_delete, cv_PtrLcv_xfeatures2d_BEBLIDG_getInnerPtr_const, cv_PtrLcv_xfeatures2d_BEBLIDG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfBEBLID(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfBEBLID(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::xfeatures2d::BEBLIDTraitConst for core::Ptr { #[inline] fn as_raw_BEBLID(&self) -> *const c_void { self.inner_as_raw() } } impl crate::xfeatures2d::BEBLIDTrait for core::Ptr { #[inline] fn as_raw_mut_BEBLID(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_xfeatures2d_BEBLIDG_to_PtrOfAlgorithm } impl crate::features2d::Feature2DTraitConst for core::Ptr { #[inline] fn as_raw_Feature2D(&self) -> *const c_void { self.inner_as_raw() } } impl crate::features2d::Feature2DTrait for core::Ptr { #[inline] fn as_raw_mut_Feature2D(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_xfeatures2d_BEBLIDG_to_PtrOfFeature2D } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfBEBLID") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfBoostDesc = core::Ptr; ptr_extern! { crate::xfeatures2d::BoostDesc, cv_PtrLcv_xfeatures2d_BoostDescG_new_null_const, cv_PtrLcv_xfeatures2d_BoostDescG_delete, cv_PtrLcv_xfeatures2d_BoostDescG_getInnerPtr_const, cv_PtrLcv_xfeatures2d_BoostDescG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfBoostDesc(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfBoostDesc(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::xfeatures2d::BoostDescTraitConst for core::Ptr { #[inline] fn as_raw_BoostDesc(&self) -> *const c_void { self.inner_as_raw() } } impl crate::xfeatures2d::BoostDescTrait for core::Ptr { #[inline] fn as_raw_mut_BoostDesc(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_xfeatures2d_BoostDescG_to_PtrOfAlgorithm } impl crate::features2d::Feature2DTraitConst for core::Ptr { #[inline] fn as_raw_Feature2D(&self) -> *const c_void { self.inner_as_raw() } } impl crate::features2d::Feature2DTrait for core::Ptr { #[inline] fn as_raw_mut_Feature2D(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_xfeatures2d_BoostDescG_to_PtrOfFeature2D } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfBoostDesc") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfBriefDescriptorExtractor = core::Ptr; ptr_extern! { crate::xfeatures2d::BriefDescriptorExtractor, cv_PtrLcv_xfeatures2d_BriefDescriptorExtractorG_new_null_const, cv_PtrLcv_xfeatures2d_BriefDescriptorExtractorG_delete, cv_PtrLcv_xfeatures2d_BriefDescriptorExtractorG_getInnerPtr_const, cv_PtrLcv_xfeatures2d_BriefDescriptorExtractorG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfBriefDescriptorExtractor(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfBriefDescriptorExtractor(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::xfeatures2d::BriefDescriptorExtractorTraitConst for core::Ptr { #[inline] fn as_raw_BriefDescriptorExtractor(&self) -> *const c_void { self.inner_as_raw() } } impl crate::xfeatures2d::BriefDescriptorExtractorTrait for core::Ptr { #[inline] fn as_raw_mut_BriefDescriptorExtractor(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_xfeatures2d_BriefDescriptorExtractorG_to_PtrOfAlgorithm } impl crate::features2d::Feature2DTraitConst for core::Ptr { #[inline] fn as_raw_Feature2D(&self) -> *const c_void { self.inner_as_raw() } } impl crate::features2d::Feature2DTrait for core::Ptr { #[inline] fn as_raw_mut_Feature2D(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_xfeatures2d_BriefDescriptorExtractorG_to_PtrOfFeature2D } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfBriefDescriptorExtractor") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfDAISY = core::Ptr; ptr_extern! { crate::xfeatures2d::DAISY, cv_PtrLcv_xfeatures2d_DAISYG_new_null_const, cv_PtrLcv_xfeatures2d_DAISYG_delete, cv_PtrLcv_xfeatures2d_DAISYG_getInnerPtr_const, cv_PtrLcv_xfeatures2d_DAISYG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfDAISY(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfDAISY(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::xfeatures2d::DAISYTraitConst for core::Ptr { #[inline] fn as_raw_DAISY(&self) -> *const c_void { self.inner_as_raw() } } impl crate::xfeatures2d::DAISYTrait for core::Ptr { #[inline] fn as_raw_mut_DAISY(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_xfeatures2d_DAISYG_to_PtrOfAlgorithm } impl crate::features2d::Feature2DTraitConst for core::Ptr { #[inline] fn as_raw_Feature2D(&self) -> *const c_void { self.inner_as_raw() } } impl crate::features2d::Feature2DTrait for core::Ptr { #[inline] fn as_raw_mut_Feature2D(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_xfeatures2d_DAISYG_to_PtrOfFeature2D } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfDAISY") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfFREAK = core::Ptr; ptr_extern! { crate::xfeatures2d::FREAK, cv_PtrLcv_xfeatures2d_FREAKG_new_null_const, cv_PtrLcv_xfeatures2d_FREAKG_delete, cv_PtrLcv_xfeatures2d_FREAKG_getInnerPtr_const, cv_PtrLcv_xfeatures2d_FREAKG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfFREAK(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfFREAK(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::xfeatures2d::FREAKTraitConst for core::Ptr { #[inline] fn as_raw_FREAK(&self) -> *const c_void { self.inner_as_raw() } } impl crate::xfeatures2d::FREAKTrait for core::Ptr { #[inline] fn as_raw_mut_FREAK(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_xfeatures2d_FREAKG_to_PtrOfAlgorithm } impl crate::features2d::Feature2DTraitConst for core::Ptr { #[inline] fn as_raw_Feature2D(&self) -> *const c_void { self.inner_as_raw() } } impl crate::features2d::Feature2DTrait for core::Ptr { #[inline] fn as_raw_mut_Feature2D(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_xfeatures2d_FREAKG_to_PtrOfFeature2D } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfFREAK") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfHarrisLaplaceFeatureDetector = core::Ptr; ptr_extern! { crate::xfeatures2d::HarrisLaplaceFeatureDetector, cv_PtrLcv_xfeatures2d_HarrisLaplaceFeatureDetectorG_new_null_const, cv_PtrLcv_xfeatures2d_HarrisLaplaceFeatureDetectorG_delete, cv_PtrLcv_xfeatures2d_HarrisLaplaceFeatureDetectorG_getInnerPtr_const, cv_PtrLcv_xfeatures2d_HarrisLaplaceFeatureDetectorG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfHarrisLaplaceFeatureDetector(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfHarrisLaplaceFeatureDetector(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::xfeatures2d::HarrisLaplaceFeatureDetectorTraitConst for core::Ptr { #[inline] fn as_raw_HarrisLaplaceFeatureDetector(&self) -> *const c_void { self.inner_as_raw() } } impl crate::xfeatures2d::HarrisLaplaceFeatureDetectorTrait for core::Ptr { #[inline] fn as_raw_mut_HarrisLaplaceFeatureDetector(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_xfeatures2d_HarrisLaplaceFeatureDetectorG_to_PtrOfAlgorithm } impl crate::features2d::Feature2DTraitConst for core::Ptr { #[inline] fn as_raw_Feature2D(&self) -> *const c_void { self.inner_as_raw() } } impl crate::features2d::Feature2DTrait for core::Ptr { #[inline] fn as_raw_mut_Feature2D(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_xfeatures2d_HarrisLaplaceFeatureDetectorG_to_PtrOfFeature2D } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfHarrisLaplaceFeatureDetector") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfLATCH = core::Ptr; ptr_extern! { crate::xfeatures2d::LATCH, cv_PtrLcv_xfeatures2d_LATCHG_new_null_const, cv_PtrLcv_xfeatures2d_LATCHG_delete, cv_PtrLcv_xfeatures2d_LATCHG_getInnerPtr_const, cv_PtrLcv_xfeatures2d_LATCHG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfLATCH(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfLATCH(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::xfeatures2d::LATCHTraitConst for core::Ptr { #[inline] fn as_raw_LATCH(&self) -> *const c_void { self.inner_as_raw() } } impl crate::xfeatures2d::LATCHTrait for core::Ptr { #[inline] fn as_raw_mut_LATCH(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_xfeatures2d_LATCHG_to_PtrOfAlgorithm } impl crate::features2d::Feature2DTraitConst for core::Ptr { #[inline] fn as_raw_Feature2D(&self) -> *const c_void { self.inner_as_raw() } } impl crate::features2d::Feature2DTrait for core::Ptr { #[inline] fn as_raw_mut_Feature2D(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_xfeatures2d_LATCHG_to_PtrOfFeature2D } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfLATCH") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfLUCID = core::Ptr; ptr_extern! { crate::xfeatures2d::LUCID, cv_PtrLcv_xfeatures2d_LUCIDG_new_null_const, cv_PtrLcv_xfeatures2d_LUCIDG_delete, cv_PtrLcv_xfeatures2d_LUCIDG_getInnerPtr_const, cv_PtrLcv_xfeatures2d_LUCIDG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfLUCID(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfLUCID(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::xfeatures2d::LUCIDTraitConst for core::Ptr { #[inline] fn as_raw_LUCID(&self) -> *const c_void { self.inner_as_raw() } } impl crate::xfeatures2d::LUCIDTrait for core::Ptr { #[inline] fn as_raw_mut_LUCID(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_xfeatures2d_LUCIDG_to_PtrOfAlgorithm } impl crate::features2d::Feature2DTraitConst for core::Ptr { #[inline] fn as_raw_Feature2D(&self) -> *const c_void { self.inner_as_raw() } } impl crate::features2d::Feature2DTrait for core::Ptr { #[inline] fn as_raw_mut_Feature2D(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_xfeatures2d_LUCIDG_to_PtrOfFeature2D } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfLUCID") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfMSDDetector = core::Ptr; ptr_extern! { crate::xfeatures2d::MSDDetector, cv_PtrLcv_xfeatures2d_MSDDetectorG_new_null_const, cv_PtrLcv_xfeatures2d_MSDDetectorG_delete, cv_PtrLcv_xfeatures2d_MSDDetectorG_getInnerPtr_const, cv_PtrLcv_xfeatures2d_MSDDetectorG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfMSDDetector(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfMSDDetector(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::xfeatures2d::MSDDetectorTraitConst for core::Ptr { #[inline] fn as_raw_MSDDetector(&self) -> *const c_void { self.inner_as_raw() } } impl crate::xfeatures2d::MSDDetectorTrait for core::Ptr { #[inline] fn as_raw_mut_MSDDetector(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_xfeatures2d_MSDDetectorG_to_PtrOfAlgorithm } impl crate::features2d::Feature2DTraitConst for core::Ptr { #[inline] fn as_raw_Feature2D(&self) -> *const c_void { self.inner_as_raw() } } impl crate::features2d::Feature2DTrait for core::Ptr { #[inline] fn as_raw_mut_Feature2D(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_xfeatures2d_MSDDetectorG_to_PtrOfFeature2D } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfMSDDetector") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfPCTSignatures = core::Ptr; ptr_extern! { crate::xfeatures2d::PCTSignatures, cv_PtrLcv_xfeatures2d_PCTSignaturesG_new_null_const, cv_PtrLcv_xfeatures2d_PCTSignaturesG_delete, cv_PtrLcv_xfeatures2d_PCTSignaturesG_getInnerPtr_const, cv_PtrLcv_xfeatures2d_PCTSignaturesG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfPCTSignatures(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfPCTSignatures(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::xfeatures2d::PCTSignaturesTraitConst for core::Ptr { #[inline] fn as_raw_PCTSignatures(&self) -> *const c_void { self.inner_as_raw() } } impl crate::xfeatures2d::PCTSignaturesTrait for core::Ptr { #[inline] fn as_raw_mut_PCTSignatures(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_xfeatures2d_PCTSignaturesG_to_PtrOfAlgorithm } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfPCTSignatures") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfPCTSignaturesSQFD = core::Ptr; ptr_extern! { crate::xfeatures2d::PCTSignaturesSQFD, cv_PtrLcv_xfeatures2d_PCTSignaturesSQFDG_new_null_const, cv_PtrLcv_xfeatures2d_PCTSignaturesSQFDG_delete, cv_PtrLcv_xfeatures2d_PCTSignaturesSQFDG_getInnerPtr_const, cv_PtrLcv_xfeatures2d_PCTSignaturesSQFDG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfPCTSignaturesSQFD(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfPCTSignaturesSQFD(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::xfeatures2d::PCTSignaturesSQFDTraitConst for core::Ptr { #[inline] fn as_raw_PCTSignaturesSQFD(&self) -> *const c_void { self.inner_as_raw() } } impl crate::xfeatures2d::PCTSignaturesSQFDTrait for core::Ptr { #[inline] fn as_raw_mut_PCTSignaturesSQFD(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_xfeatures2d_PCTSignaturesSQFDG_to_PtrOfAlgorithm } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfPCTSignaturesSQFD") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfSURF = core::Ptr; ptr_extern! { crate::xfeatures2d::SURF, cv_PtrLcv_xfeatures2d_SURFG_new_null_const, cv_PtrLcv_xfeatures2d_SURFG_delete, cv_PtrLcv_xfeatures2d_SURFG_getInnerPtr_const, cv_PtrLcv_xfeatures2d_SURFG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfSURF(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfSURF(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::xfeatures2d::SURFTraitConst for core::Ptr { #[inline] fn as_raw_SURF(&self) -> *const c_void { self.inner_as_raw() } } impl crate::xfeatures2d::SURFTrait for core::Ptr { #[inline] fn as_raw_mut_SURF(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_xfeatures2d_SURFG_to_PtrOfAlgorithm } impl crate::features2d::Feature2DTraitConst for core::Ptr { #[inline] fn as_raw_Feature2D(&self) -> *const c_void { self.inner_as_raw() } } impl crate::features2d::Feature2DTrait for core::Ptr { #[inline] fn as_raw_mut_Feature2D(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_xfeatures2d_SURFG_to_PtrOfFeature2D } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfSURF") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfSURF_CUDA = core::Ptr; ptr_extern! { crate::xfeatures2d::SURF_CUDA, cv_PtrLcv_cuda_SURF_CUDAG_new_null_const, cv_PtrLcv_cuda_SURF_CUDAG_delete, cv_PtrLcv_cuda_SURF_CUDAG_getInnerPtr_const, cv_PtrLcv_cuda_SURF_CUDAG_getInnerPtrMut } ptr_extern_ctor! { crate::xfeatures2d::SURF_CUDA, cv_PtrLcv_cuda_SURF_CUDAG_new_const_SURF_CUDA } impl core::Ptr { #[inline] pub fn as_raw_PtrOfSURF_CUDA(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfSURF_CUDA(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::xfeatures2d::SURF_CUDATraitConst for core::Ptr { #[inline] fn as_raw_SURF_CUDA(&self) -> *const c_void { self.inner_as_raw() } } impl crate::xfeatures2d::SURF_CUDATrait for core::Ptr { #[inline] fn as_raw_mut_SURF_CUDA(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfSURF_CUDA") .field("hessian_threshold", &crate::xfeatures2d::SURF_CUDATraitConst::hessian_threshold(self)) .field("n_octaves", &crate::xfeatures2d::SURF_CUDATraitConst::n_octaves(self)) .field("n_octave_layers", &crate::xfeatures2d::SURF_CUDATraitConst::n_octave_layers(self)) .field("extended", &crate::xfeatures2d::SURF_CUDATraitConst::extended(self)) .field("upright", &crate::xfeatures2d::SURF_CUDATraitConst::upright(self)) .field("keypoints_ratio", &crate::xfeatures2d::SURF_CUDATraitConst::keypoints_ratio(self)) .field("sum", &crate::xfeatures2d::SURF_CUDATraitConst::sum(self)) .field("mask1", &crate::xfeatures2d::SURF_CUDATraitConst::mask1(self)) .field("mask_sum", &crate::xfeatures2d::SURF_CUDATraitConst::mask_sum(self)) .field("det", &crate::xfeatures2d::SURF_CUDATraitConst::det(self)) .field("trace", &crate::xfeatures2d::SURF_CUDATraitConst::trace(self)) .field("max_pos_buffer", &crate::xfeatures2d::SURF_CUDATraitConst::max_pos_buffer(self)) .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfStarDetector = core::Ptr; ptr_extern! { crate::xfeatures2d::StarDetector, cv_PtrLcv_xfeatures2d_StarDetectorG_new_null_const, cv_PtrLcv_xfeatures2d_StarDetectorG_delete, cv_PtrLcv_xfeatures2d_StarDetectorG_getInnerPtr_const, cv_PtrLcv_xfeatures2d_StarDetectorG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfStarDetector(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfStarDetector(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::xfeatures2d::StarDetectorTraitConst for core::Ptr { #[inline] fn as_raw_StarDetector(&self) -> *const c_void { self.inner_as_raw() } } impl crate::xfeatures2d::StarDetectorTrait for core::Ptr { #[inline] fn as_raw_mut_StarDetector(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_xfeatures2d_StarDetectorG_to_PtrOfAlgorithm } impl crate::features2d::Feature2DTraitConst for core::Ptr { #[inline] fn as_raw_Feature2D(&self) -> *const c_void { self.inner_as_raw() } } impl crate::features2d::Feature2DTrait for core::Ptr { #[inline] fn as_raw_mut_Feature2D(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_xfeatures2d_StarDetectorG_to_PtrOfFeature2D } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfStarDetector") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfTBMR = core::Ptr; ptr_extern! { crate::xfeatures2d::TBMR, cv_PtrLcv_xfeatures2d_TBMRG_new_null_const, cv_PtrLcv_xfeatures2d_TBMRG_delete, cv_PtrLcv_xfeatures2d_TBMRG_getInnerPtr_const, cv_PtrLcv_xfeatures2d_TBMRG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfTBMR(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfTBMR(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::xfeatures2d::TBMRTraitConst for core::Ptr { #[inline] fn as_raw_TBMR(&self) -> *const c_void { self.inner_as_raw() } } impl crate::xfeatures2d::TBMRTrait for core::Ptr { #[inline] fn as_raw_mut_TBMR(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_xfeatures2d_TBMRG_to_PtrOfAlgorithm } impl crate::features2d::Feature2DTraitConst for core::Ptr { #[inline] fn as_raw_Feature2D(&self) -> *const c_void { self.inner_as_raw() } } impl crate::features2d::Feature2DTrait for core::Ptr { #[inline] fn as_raw_mut_Feature2D(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_xfeatures2d_TBMRG_to_PtrOfFeature2D } impl crate::xfeatures2d::AffineFeature2DTraitConst for core::Ptr { #[inline] fn as_raw_AffineFeature2D(&self) -> *const c_void { self.inner_as_raw() } } impl crate::xfeatures2d::AffineFeature2DTrait for core::Ptr { #[inline] fn as_raw_mut_AffineFeature2D(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_xfeatures2d_TBMRG_to_PtrOfAffineFeature2D } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfTBMR") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfTEBLID = core::Ptr; ptr_extern! { crate::xfeatures2d::TEBLID, cv_PtrLcv_xfeatures2d_TEBLIDG_new_null_const, cv_PtrLcv_xfeatures2d_TEBLIDG_delete, cv_PtrLcv_xfeatures2d_TEBLIDG_getInnerPtr_const, cv_PtrLcv_xfeatures2d_TEBLIDG_getInnerPtrMut } ptr_extern_ctor! { crate::xfeatures2d::TEBLID, cv_PtrLcv_xfeatures2d_TEBLIDG_new_const_TEBLID } impl core::Ptr { #[inline] pub fn as_raw_PtrOfTEBLID(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfTEBLID(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::xfeatures2d::TEBLIDTraitConst for core::Ptr { #[inline] fn as_raw_TEBLID(&self) -> *const c_void { self.inner_as_raw() } } impl crate::xfeatures2d::TEBLIDTrait for core::Ptr { #[inline] fn as_raw_mut_TEBLID(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_xfeatures2d_TEBLIDG_to_PtrOfAlgorithm } impl crate::features2d::Feature2DTraitConst for core::Ptr { #[inline] fn as_raw_Feature2D(&self) -> *const c_void { self.inner_as_raw() } } impl crate::features2d::Feature2DTrait for core::Ptr { #[inline] fn as_raw_mut_Feature2D(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_xfeatures2d_TEBLIDG_to_PtrOfFeature2D } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfTEBLID") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfVGG = core::Ptr; ptr_extern! { crate::xfeatures2d::VGG, cv_PtrLcv_xfeatures2d_VGGG_new_null_const, cv_PtrLcv_xfeatures2d_VGGG_delete, cv_PtrLcv_xfeatures2d_VGGG_getInnerPtr_const, cv_PtrLcv_xfeatures2d_VGGG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfVGG(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfVGG(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::xfeatures2d::VGGTraitConst for core::Ptr { #[inline] fn as_raw_VGG(&self) -> *const c_void { self.inner_as_raw() } } impl crate::xfeatures2d::VGGTrait for core::Ptr { #[inline] fn as_raw_mut_VGG(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_xfeatures2d_VGGG_to_PtrOfAlgorithm } impl crate::features2d::Feature2DTraitConst for core::Ptr { #[inline] fn as_raw_Feature2D(&self) -> *const c_void { self.inner_as_raw() } } impl crate::features2d::Feature2DTrait for core::Ptr { #[inline] fn as_raw_mut_Feature2D(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_xfeatures2d_VGGG_to_PtrOfFeature2D } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfVGG") .finish() } } #[deprecated = "Use the the non-alias form `core::Vector` instead, removal in Nov 2024"] pub type VectorOfElliptic_KeyPoint = core::Vector; impl core::Vector { pub fn as_raw_VectorOfElliptic_KeyPoint(&self) -> extern_send!(Self) { self.as_raw() } pub fn as_raw_mut_VectorOfElliptic_KeyPoint(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } vector_extern! { crate::xfeatures2d::Elliptic_KeyPoint, std_vectorLcv_xfeatures2d_Elliptic_KeyPointG_new_const, std_vectorLcv_xfeatures2d_Elliptic_KeyPointG_delete, std_vectorLcv_xfeatures2d_Elliptic_KeyPointG_len_const, std_vectorLcv_xfeatures2d_Elliptic_KeyPointG_isEmpty_const, std_vectorLcv_xfeatures2d_Elliptic_KeyPointG_capacity_const, std_vectorLcv_xfeatures2d_Elliptic_KeyPointG_shrinkToFit, std_vectorLcv_xfeatures2d_Elliptic_KeyPointG_reserve_size_t, std_vectorLcv_xfeatures2d_Elliptic_KeyPointG_remove_size_t, std_vectorLcv_xfeatures2d_Elliptic_KeyPointG_swap_size_t_size_t, std_vectorLcv_xfeatures2d_Elliptic_KeyPointG_clear, std_vectorLcv_xfeatures2d_Elliptic_KeyPointG_get_const_size_t, std_vectorLcv_xfeatures2d_Elliptic_KeyPointG_set_size_t_const_Elliptic_KeyPoint, std_vectorLcv_xfeatures2d_Elliptic_KeyPointG_push_const_Elliptic_KeyPoint, std_vectorLcv_xfeatures2d_Elliptic_KeyPointG_insert_size_t_const_Elliptic_KeyPoint, } vector_non_copy_or_bool! { crate::xfeatures2d::Elliptic_KeyPoint } vector_boxed_ref! { crate::xfeatures2d::Elliptic_KeyPoint } vector_extern! { BoxedRef<'t, crate::xfeatures2d::Elliptic_KeyPoint>, std_vectorLcv_xfeatures2d_Elliptic_KeyPointG_new_const, std_vectorLcv_xfeatures2d_Elliptic_KeyPointG_delete, std_vectorLcv_xfeatures2d_Elliptic_KeyPointG_len_const, std_vectorLcv_xfeatures2d_Elliptic_KeyPointG_isEmpty_const, std_vectorLcv_xfeatures2d_Elliptic_KeyPointG_capacity_const, std_vectorLcv_xfeatures2d_Elliptic_KeyPointG_shrinkToFit, std_vectorLcv_xfeatures2d_Elliptic_KeyPointG_reserve_size_t, std_vectorLcv_xfeatures2d_Elliptic_KeyPointG_remove_size_t, std_vectorLcv_xfeatures2d_Elliptic_KeyPointG_swap_size_t_size_t, std_vectorLcv_xfeatures2d_Elliptic_KeyPointG_clear, std_vectorLcv_xfeatures2d_Elliptic_KeyPointG_get_const_size_t, std_vectorLcv_xfeatures2d_Elliptic_KeyPointG_set_size_t_const_Elliptic_KeyPoint, std_vectorLcv_xfeatures2d_Elliptic_KeyPointG_push_const_Elliptic_KeyPoint, std_vectorLcv_xfeatures2d_Elliptic_KeyPointG_insert_size_t_const_Elliptic_KeyPoint, } } #[cfg(ocvrs_has_module_xfeatures2d)] pub use xfeatures2d_types::*; #[cfg(ocvrs_has_module_ximgproc)] mod ximgproc_types { use crate::{mod_prelude::*, core, types, sys}; #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfAdaptiveManifoldFilter = core::Ptr; ptr_extern! { crate::ximgproc::AdaptiveManifoldFilter, cv_PtrLcv_ximgproc_AdaptiveManifoldFilterG_new_null_const, cv_PtrLcv_ximgproc_AdaptiveManifoldFilterG_delete, cv_PtrLcv_ximgproc_AdaptiveManifoldFilterG_getInnerPtr_const, cv_PtrLcv_ximgproc_AdaptiveManifoldFilterG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfAdaptiveManifoldFilter(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfAdaptiveManifoldFilter(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::ximgproc::AdaptiveManifoldFilterTraitConst for core::Ptr { #[inline] fn as_raw_AdaptiveManifoldFilter(&self) -> *const c_void { self.inner_as_raw() } } impl crate::ximgproc::AdaptiveManifoldFilterTrait for core::Ptr { #[inline] fn as_raw_mut_AdaptiveManifoldFilter(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_ximgproc_AdaptiveManifoldFilterG_to_PtrOfAlgorithm } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfAdaptiveManifoldFilter") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfContourFitting = core::Ptr; ptr_extern! { crate::ximgproc::ContourFitting, cv_PtrLcv_ximgproc_ContourFittingG_new_null_const, cv_PtrLcv_ximgproc_ContourFittingG_delete, cv_PtrLcv_ximgproc_ContourFittingG_getInnerPtr_const, cv_PtrLcv_ximgproc_ContourFittingG_getInnerPtrMut } ptr_extern_ctor! { crate::ximgproc::ContourFitting, cv_PtrLcv_ximgproc_ContourFittingG_new_const_ContourFitting } impl core::Ptr { #[inline] pub fn as_raw_PtrOfContourFitting(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfContourFitting(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::ximgproc::ContourFittingTraitConst for core::Ptr { #[inline] fn as_raw_ContourFitting(&self) -> *const c_void { self.inner_as_raw() } } impl crate::ximgproc::ContourFittingTrait for core::Ptr { #[inline] fn as_raw_mut_ContourFitting(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_ximgproc_ContourFittingG_to_PtrOfAlgorithm } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfContourFitting") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfDTFilter = core::Ptr; ptr_extern! { crate::ximgproc::DTFilter, cv_PtrLcv_ximgproc_DTFilterG_new_null_const, cv_PtrLcv_ximgproc_DTFilterG_delete, cv_PtrLcv_ximgproc_DTFilterG_getInnerPtr_const, cv_PtrLcv_ximgproc_DTFilterG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfDTFilter(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfDTFilter(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::ximgproc::DTFilterTraitConst for core::Ptr { #[inline] fn as_raw_DTFilter(&self) -> *const c_void { self.inner_as_raw() } } impl crate::ximgproc::DTFilterTrait for core::Ptr { #[inline] fn as_raw_mut_DTFilter(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_ximgproc_DTFilterG_to_PtrOfAlgorithm } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfDTFilter") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfDisparityFilter = core::Ptr; ptr_extern! { crate::ximgproc::DisparityFilter, cv_PtrLcv_ximgproc_DisparityFilterG_new_null_const, cv_PtrLcv_ximgproc_DisparityFilterG_delete, cv_PtrLcv_ximgproc_DisparityFilterG_getInnerPtr_const, cv_PtrLcv_ximgproc_DisparityFilterG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfDisparityFilter(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfDisparityFilter(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::ximgproc::DisparityFilterTraitConst for core::Ptr { #[inline] fn as_raw_DisparityFilter(&self) -> *const c_void { self.inner_as_raw() } } impl crate::ximgproc::DisparityFilterTrait for core::Ptr { #[inline] fn as_raw_mut_DisparityFilter(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_ximgproc_DisparityFilterG_to_PtrOfAlgorithm } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfDisparityFilter") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfDisparityWLSFilter = core::Ptr; ptr_extern! { crate::ximgproc::DisparityWLSFilter, cv_PtrLcv_ximgproc_DisparityWLSFilterG_new_null_const, cv_PtrLcv_ximgproc_DisparityWLSFilterG_delete, cv_PtrLcv_ximgproc_DisparityWLSFilterG_getInnerPtr_const, cv_PtrLcv_ximgproc_DisparityWLSFilterG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfDisparityWLSFilter(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfDisparityWLSFilter(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::ximgproc::DisparityWLSFilterTraitConst for core::Ptr { #[inline] fn as_raw_DisparityWLSFilter(&self) -> *const c_void { self.inner_as_raw() } } impl crate::ximgproc::DisparityWLSFilterTrait for core::Ptr { #[inline] fn as_raw_mut_DisparityWLSFilter(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_ximgproc_DisparityWLSFilterG_to_PtrOfAlgorithm } impl crate::ximgproc::DisparityFilterTraitConst for core::Ptr { #[inline] fn as_raw_DisparityFilter(&self) -> *const c_void { self.inner_as_raw() } } impl crate::ximgproc::DisparityFilterTrait for core::Ptr { #[inline] fn as_raw_mut_DisparityFilter(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_ximgproc_DisparityWLSFilterG_to_PtrOfDisparityFilter } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfDisparityWLSFilter") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfEdgeAwareInterpolator = core::Ptr; ptr_extern! { crate::ximgproc::EdgeAwareInterpolator, cv_PtrLcv_ximgproc_EdgeAwareInterpolatorG_new_null_const, cv_PtrLcv_ximgproc_EdgeAwareInterpolatorG_delete, cv_PtrLcv_ximgproc_EdgeAwareInterpolatorG_getInnerPtr_const, cv_PtrLcv_ximgproc_EdgeAwareInterpolatorG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfEdgeAwareInterpolator(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfEdgeAwareInterpolator(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::ximgproc::EdgeAwareInterpolatorTraitConst for core::Ptr { #[inline] fn as_raw_EdgeAwareInterpolator(&self) -> *const c_void { self.inner_as_raw() } } impl crate::ximgproc::EdgeAwareInterpolatorTrait for core::Ptr { #[inline] fn as_raw_mut_EdgeAwareInterpolator(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_ximgproc_EdgeAwareInterpolatorG_to_PtrOfAlgorithm } impl crate::ximgproc::SparseMatchInterpolatorTraitConst for core::Ptr { #[inline] fn as_raw_SparseMatchInterpolator(&self) -> *const c_void { self.inner_as_raw() } } impl crate::ximgproc::SparseMatchInterpolatorTrait for core::Ptr { #[inline] fn as_raw_mut_SparseMatchInterpolator(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_ximgproc_EdgeAwareInterpolatorG_to_PtrOfSparseMatchInterpolator } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfEdgeAwareInterpolator") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfEdgeBoxes = core::Ptr; ptr_extern! { crate::ximgproc::EdgeBoxes, cv_PtrLcv_ximgproc_EdgeBoxesG_new_null_const, cv_PtrLcv_ximgproc_EdgeBoxesG_delete, cv_PtrLcv_ximgproc_EdgeBoxesG_getInnerPtr_const, cv_PtrLcv_ximgproc_EdgeBoxesG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfEdgeBoxes(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfEdgeBoxes(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::ximgproc::EdgeBoxesTraitConst for core::Ptr { #[inline] fn as_raw_EdgeBoxes(&self) -> *const c_void { self.inner_as_raw() } } impl crate::ximgproc::EdgeBoxesTrait for core::Ptr { #[inline] fn as_raw_mut_EdgeBoxes(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_ximgproc_EdgeBoxesG_to_PtrOfAlgorithm } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfEdgeBoxes") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfEdgeDrawing = core::Ptr; ptr_extern! { crate::ximgproc::EdgeDrawing, cv_PtrLcv_ximgproc_EdgeDrawingG_new_null_const, cv_PtrLcv_ximgproc_EdgeDrawingG_delete, cv_PtrLcv_ximgproc_EdgeDrawingG_getInnerPtr_const, cv_PtrLcv_ximgproc_EdgeDrawingG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfEdgeDrawing(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfEdgeDrawing(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::ximgproc::EdgeDrawingTraitConst for core::Ptr { #[inline] fn as_raw_EdgeDrawing(&self) -> *const c_void { self.inner_as_raw() } } impl crate::ximgproc::EdgeDrawingTrait for core::Ptr { #[inline] fn as_raw_mut_EdgeDrawing(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_ximgproc_EdgeDrawingG_to_PtrOfAlgorithm } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfEdgeDrawing") .field("params", &crate::ximgproc::EdgeDrawingTraitConst::params(self)) .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfFastBilateralSolverFilter = core::Ptr; ptr_extern! { crate::ximgproc::FastBilateralSolverFilter, cv_PtrLcv_ximgproc_FastBilateralSolverFilterG_new_null_const, cv_PtrLcv_ximgproc_FastBilateralSolverFilterG_delete, cv_PtrLcv_ximgproc_FastBilateralSolverFilterG_getInnerPtr_const, cv_PtrLcv_ximgproc_FastBilateralSolverFilterG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfFastBilateralSolverFilter(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfFastBilateralSolverFilter(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::ximgproc::FastBilateralSolverFilterTraitConst for core::Ptr { #[inline] fn as_raw_FastBilateralSolverFilter(&self) -> *const c_void { self.inner_as_raw() } } impl crate::ximgproc::FastBilateralSolverFilterTrait for core::Ptr { #[inline] fn as_raw_mut_FastBilateralSolverFilter(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_ximgproc_FastBilateralSolverFilterG_to_PtrOfAlgorithm } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfFastBilateralSolverFilter") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfFastGlobalSmootherFilter = core::Ptr; ptr_extern! { crate::ximgproc::FastGlobalSmootherFilter, cv_PtrLcv_ximgproc_FastGlobalSmootherFilterG_new_null_const, cv_PtrLcv_ximgproc_FastGlobalSmootherFilterG_delete, cv_PtrLcv_ximgproc_FastGlobalSmootherFilterG_getInnerPtr_const, cv_PtrLcv_ximgproc_FastGlobalSmootherFilterG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfFastGlobalSmootherFilter(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfFastGlobalSmootherFilter(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::ximgproc::FastGlobalSmootherFilterTraitConst for core::Ptr { #[inline] fn as_raw_FastGlobalSmootherFilter(&self) -> *const c_void { self.inner_as_raw() } } impl crate::ximgproc::FastGlobalSmootherFilterTrait for core::Ptr { #[inline] fn as_raw_mut_FastGlobalSmootherFilter(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_ximgproc_FastGlobalSmootherFilterG_to_PtrOfAlgorithm } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfFastGlobalSmootherFilter") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfFastLineDetector = core::Ptr; ptr_extern! { crate::ximgproc::FastLineDetector, cv_PtrLcv_ximgproc_FastLineDetectorG_new_null_const, cv_PtrLcv_ximgproc_FastLineDetectorG_delete, cv_PtrLcv_ximgproc_FastLineDetectorG_getInnerPtr_const, cv_PtrLcv_ximgproc_FastLineDetectorG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfFastLineDetector(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfFastLineDetector(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::ximgproc::FastLineDetectorTraitConst for core::Ptr { #[inline] fn as_raw_FastLineDetector(&self) -> *const c_void { self.inner_as_raw() } } impl crate::ximgproc::FastLineDetectorTrait for core::Ptr { #[inline] fn as_raw_mut_FastLineDetector(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_ximgproc_FastLineDetectorG_to_PtrOfAlgorithm } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfFastLineDetector") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfGraphSegmentation = core::Ptr; ptr_extern! { crate::ximgproc::GraphSegmentation, cv_PtrLcv_ximgproc_segmentation_GraphSegmentationG_new_null_const, cv_PtrLcv_ximgproc_segmentation_GraphSegmentationG_delete, cv_PtrLcv_ximgproc_segmentation_GraphSegmentationG_getInnerPtr_const, cv_PtrLcv_ximgproc_segmentation_GraphSegmentationG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfGraphSegmentation(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfGraphSegmentation(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::ximgproc::GraphSegmentationTraitConst for core::Ptr { #[inline] fn as_raw_GraphSegmentation(&self) -> *const c_void { self.inner_as_raw() } } impl crate::ximgproc::GraphSegmentationTrait for core::Ptr { #[inline] fn as_raw_mut_GraphSegmentation(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_ximgproc_segmentation_GraphSegmentationG_to_PtrOfAlgorithm } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfGraphSegmentation") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfGuidedFilter = core::Ptr; ptr_extern! { crate::ximgproc::GuidedFilter, cv_PtrLcv_ximgproc_GuidedFilterG_new_null_const, cv_PtrLcv_ximgproc_GuidedFilterG_delete, cv_PtrLcv_ximgproc_GuidedFilterG_getInnerPtr_const, cv_PtrLcv_ximgproc_GuidedFilterG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfGuidedFilter(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfGuidedFilter(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::ximgproc::GuidedFilterTraitConst for core::Ptr { #[inline] fn as_raw_GuidedFilter(&self) -> *const c_void { self.inner_as_raw() } } impl crate::ximgproc::GuidedFilterTrait for core::Ptr { #[inline] fn as_raw_mut_GuidedFilter(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_ximgproc_GuidedFilterG_to_PtrOfAlgorithm } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfGuidedFilter") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfRFFeatureGetter = core::Ptr; ptr_extern! { crate::ximgproc::RFFeatureGetter, cv_PtrLcv_ximgproc_RFFeatureGetterG_new_null_const, cv_PtrLcv_ximgproc_RFFeatureGetterG_delete, cv_PtrLcv_ximgproc_RFFeatureGetterG_getInnerPtr_const, cv_PtrLcv_ximgproc_RFFeatureGetterG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfRFFeatureGetter(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfRFFeatureGetter(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::ximgproc::RFFeatureGetterTraitConst for core::Ptr { #[inline] fn as_raw_RFFeatureGetter(&self) -> *const c_void { self.inner_as_raw() } } impl crate::ximgproc::RFFeatureGetterTrait for core::Ptr { #[inline] fn as_raw_mut_RFFeatureGetter(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_ximgproc_RFFeatureGetterG_to_PtrOfAlgorithm } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfRFFeatureGetter") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfRICInterpolator = core::Ptr; ptr_extern! { crate::ximgproc::RICInterpolator, cv_PtrLcv_ximgproc_RICInterpolatorG_new_null_const, cv_PtrLcv_ximgproc_RICInterpolatorG_delete, cv_PtrLcv_ximgproc_RICInterpolatorG_getInnerPtr_const, cv_PtrLcv_ximgproc_RICInterpolatorG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfRICInterpolator(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfRICInterpolator(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::ximgproc::RICInterpolatorTraitConst for core::Ptr { #[inline] fn as_raw_RICInterpolator(&self) -> *const c_void { self.inner_as_raw() } } impl crate::ximgproc::RICInterpolatorTrait for core::Ptr { #[inline] fn as_raw_mut_RICInterpolator(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_ximgproc_RICInterpolatorG_to_PtrOfAlgorithm } impl crate::ximgproc::SparseMatchInterpolatorTraitConst for core::Ptr { #[inline] fn as_raw_SparseMatchInterpolator(&self) -> *const c_void { self.inner_as_raw() } } impl crate::ximgproc::SparseMatchInterpolatorTrait for core::Ptr { #[inline] fn as_raw_mut_SparseMatchInterpolator(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_ximgproc_RICInterpolatorG_to_PtrOfSparseMatchInterpolator } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfRICInterpolator") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfRidgeDetectionFilter = core::Ptr; ptr_extern! { crate::ximgproc::RidgeDetectionFilter, cv_PtrLcv_ximgproc_RidgeDetectionFilterG_new_null_const, cv_PtrLcv_ximgproc_RidgeDetectionFilterG_delete, cv_PtrLcv_ximgproc_RidgeDetectionFilterG_getInnerPtr_const, cv_PtrLcv_ximgproc_RidgeDetectionFilterG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfRidgeDetectionFilter(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfRidgeDetectionFilter(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::ximgproc::RidgeDetectionFilterTraitConst for core::Ptr { #[inline] fn as_raw_RidgeDetectionFilter(&self) -> *const c_void { self.inner_as_raw() } } impl crate::ximgproc::RidgeDetectionFilterTrait for core::Ptr { #[inline] fn as_raw_mut_RidgeDetectionFilter(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_ximgproc_RidgeDetectionFilterG_to_PtrOfAlgorithm } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfRidgeDetectionFilter") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfScanSegment = core::Ptr; ptr_extern! { crate::ximgproc::ScanSegment, cv_PtrLcv_ximgproc_ScanSegmentG_new_null_const, cv_PtrLcv_ximgproc_ScanSegmentG_delete, cv_PtrLcv_ximgproc_ScanSegmentG_getInnerPtr_const, cv_PtrLcv_ximgproc_ScanSegmentG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfScanSegment(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfScanSegment(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::ximgproc::ScanSegmentTraitConst for core::Ptr { #[inline] fn as_raw_ScanSegment(&self) -> *const c_void { self.inner_as_raw() } } impl crate::ximgproc::ScanSegmentTrait for core::Ptr { #[inline] fn as_raw_mut_ScanSegment(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_ximgproc_ScanSegmentG_to_PtrOfAlgorithm } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfScanSegment") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfSelectiveSearchSegmentation = core::Ptr; ptr_extern! { crate::ximgproc::SelectiveSearchSegmentation, cv_PtrLcv_ximgproc_segmentation_SelectiveSearchSegmentationG_new_null_const, cv_PtrLcv_ximgproc_segmentation_SelectiveSearchSegmentationG_delete, cv_PtrLcv_ximgproc_segmentation_SelectiveSearchSegmentationG_getInnerPtr_const, cv_PtrLcv_ximgproc_segmentation_SelectiveSearchSegmentationG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfSelectiveSearchSegmentation(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfSelectiveSearchSegmentation(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::ximgproc::SelectiveSearchSegmentationTraitConst for core::Ptr { #[inline] fn as_raw_SelectiveSearchSegmentation(&self) -> *const c_void { self.inner_as_raw() } } impl crate::ximgproc::SelectiveSearchSegmentationTrait for core::Ptr { #[inline] fn as_raw_mut_SelectiveSearchSegmentation(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_ximgproc_segmentation_SelectiveSearchSegmentationG_to_PtrOfAlgorithm } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfSelectiveSearchSegmentation") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfSelectiveSearchSegmentationStrategy = core::Ptr; ptr_extern! { crate::ximgproc::SelectiveSearchSegmentationStrategy, cv_PtrLcv_ximgproc_segmentation_SelectiveSearchSegmentationStrategyG_new_null_const, cv_PtrLcv_ximgproc_segmentation_SelectiveSearchSegmentationStrategyG_delete, cv_PtrLcv_ximgproc_segmentation_SelectiveSearchSegmentationStrategyG_getInnerPtr_const, cv_PtrLcv_ximgproc_segmentation_SelectiveSearchSegmentationStrategyG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfSelectiveSearchSegmentationStrategy(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfSelectiveSearchSegmentationStrategy(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::ximgproc::SelectiveSearchSegmentationStrategyTraitConst for core::Ptr { #[inline] fn as_raw_SelectiveSearchSegmentationStrategy(&self) -> *const c_void { self.inner_as_raw() } } impl crate::ximgproc::SelectiveSearchSegmentationStrategyTrait for core::Ptr { #[inline] fn as_raw_mut_SelectiveSearchSegmentationStrategy(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_ximgproc_segmentation_SelectiveSearchSegmentationStrategyG_to_PtrOfAlgorithm } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfSelectiveSearchSegmentationStrategy") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfSelectiveSearchSegmentationStrategyColor = core::Ptr; ptr_extern! { crate::ximgproc::SelectiveSearchSegmentationStrategyColor, cv_PtrLcv_ximgproc_segmentation_SelectiveSearchSegmentationStrategyColorG_new_null_const, cv_PtrLcv_ximgproc_segmentation_SelectiveSearchSegmentationStrategyColorG_delete, cv_PtrLcv_ximgproc_segmentation_SelectiveSearchSegmentationStrategyColorG_getInnerPtr_const, cv_PtrLcv_ximgproc_segmentation_SelectiveSearchSegmentationStrategyColorG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfSelectiveSearchSegmentationStrategyColor(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfSelectiveSearchSegmentationStrategyColor(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::ximgproc::SelectiveSearchSegmentationStrategyColorTraitConst for core::Ptr { #[inline] fn as_raw_SelectiveSearchSegmentationStrategyColor(&self) -> *const c_void { self.inner_as_raw() } } impl crate::ximgproc::SelectiveSearchSegmentationStrategyColorTrait for core::Ptr { #[inline] fn as_raw_mut_SelectiveSearchSegmentationStrategyColor(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_ximgproc_segmentation_SelectiveSearchSegmentationStrategyColorG_to_PtrOfAlgorithm } impl crate::ximgproc::SelectiveSearchSegmentationStrategyTraitConst for core::Ptr { #[inline] fn as_raw_SelectiveSearchSegmentationStrategy(&self) -> *const c_void { self.inner_as_raw() } } impl crate::ximgproc::SelectiveSearchSegmentationStrategyTrait for core::Ptr { #[inline] fn as_raw_mut_SelectiveSearchSegmentationStrategy(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_ximgproc_segmentation_SelectiveSearchSegmentationStrategyColorG_to_PtrOfSelectiveSearchSegmentationStrategy } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfSelectiveSearchSegmentationStrategyColor") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfSelectiveSearchSegmentationStrategyFill = core::Ptr; ptr_extern! { crate::ximgproc::SelectiveSearchSegmentationStrategyFill, cv_PtrLcv_ximgproc_segmentation_SelectiveSearchSegmentationStrategyFillG_new_null_const, cv_PtrLcv_ximgproc_segmentation_SelectiveSearchSegmentationStrategyFillG_delete, cv_PtrLcv_ximgproc_segmentation_SelectiveSearchSegmentationStrategyFillG_getInnerPtr_const, cv_PtrLcv_ximgproc_segmentation_SelectiveSearchSegmentationStrategyFillG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfSelectiveSearchSegmentationStrategyFill(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfSelectiveSearchSegmentationStrategyFill(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::ximgproc::SelectiveSearchSegmentationStrategyFillTraitConst for core::Ptr { #[inline] fn as_raw_SelectiveSearchSegmentationStrategyFill(&self) -> *const c_void { self.inner_as_raw() } } impl crate::ximgproc::SelectiveSearchSegmentationStrategyFillTrait for core::Ptr { #[inline] fn as_raw_mut_SelectiveSearchSegmentationStrategyFill(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_ximgproc_segmentation_SelectiveSearchSegmentationStrategyFillG_to_PtrOfAlgorithm } impl crate::ximgproc::SelectiveSearchSegmentationStrategyTraitConst for core::Ptr { #[inline] fn as_raw_SelectiveSearchSegmentationStrategy(&self) -> *const c_void { self.inner_as_raw() } } impl crate::ximgproc::SelectiveSearchSegmentationStrategyTrait for core::Ptr { #[inline] fn as_raw_mut_SelectiveSearchSegmentationStrategy(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_ximgproc_segmentation_SelectiveSearchSegmentationStrategyFillG_to_PtrOfSelectiveSearchSegmentationStrategy } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfSelectiveSearchSegmentationStrategyFill") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfSelectiveSearchSegmentationStrategyMultiple = core::Ptr; ptr_extern! { crate::ximgproc::SelectiveSearchSegmentationStrategyMultiple, cv_PtrLcv_ximgproc_segmentation_SelectiveSearchSegmentationStrategyMultipleG_new_null_const, cv_PtrLcv_ximgproc_segmentation_SelectiveSearchSegmentationStrategyMultipleG_delete, cv_PtrLcv_ximgproc_segmentation_SelectiveSearchSegmentationStrategyMultipleG_getInnerPtr_const, cv_PtrLcv_ximgproc_segmentation_SelectiveSearchSegmentationStrategyMultipleG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfSelectiveSearchSegmentationStrategyMultiple(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfSelectiveSearchSegmentationStrategyMultiple(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::ximgproc::SelectiveSearchSegmentationStrategyMultipleTraitConst for core::Ptr { #[inline] fn as_raw_SelectiveSearchSegmentationStrategyMultiple(&self) -> *const c_void { self.inner_as_raw() } } impl crate::ximgproc::SelectiveSearchSegmentationStrategyMultipleTrait for core::Ptr { #[inline] fn as_raw_mut_SelectiveSearchSegmentationStrategyMultiple(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_ximgproc_segmentation_SelectiveSearchSegmentationStrategyMultipleG_to_PtrOfAlgorithm } impl crate::ximgproc::SelectiveSearchSegmentationStrategyTraitConst for core::Ptr { #[inline] fn as_raw_SelectiveSearchSegmentationStrategy(&self) -> *const c_void { self.inner_as_raw() } } impl crate::ximgproc::SelectiveSearchSegmentationStrategyTrait for core::Ptr { #[inline] fn as_raw_mut_SelectiveSearchSegmentationStrategy(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_ximgproc_segmentation_SelectiveSearchSegmentationStrategyMultipleG_to_PtrOfSelectiveSearchSegmentationStrategy } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfSelectiveSearchSegmentationStrategyMultiple") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfSelectiveSearchSegmentationStrategySize = core::Ptr; ptr_extern! { crate::ximgproc::SelectiveSearchSegmentationStrategySize, cv_PtrLcv_ximgproc_segmentation_SelectiveSearchSegmentationStrategySizeG_new_null_const, cv_PtrLcv_ximgproc_segmentation_SelectiveSearchSegmentationStrategySizeG_delete, cv_PtrLcv_ximgproc_segmentation_SelectiveSearchSegmentationStrategySizeG_getInnerPtr_const, cv_PtrLcv_ximgproc_segmentation_SelectiveSearchSegmentationStrategySizeG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfSelectiveSearchSegmentationStrategySize(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfSelectiveSearchSegmentationStrategySize(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::ximgproc::SelectiveSearchSegmentationStrategySizeTraitConst for core::Ptr { #[inline] fn as_raw_SelectiveSearchSegmentationStrategySize(&self) -> *const c_void { self.inner_as_raw() } } impl crate::ximgproc::SelectiveSearchSegmentationStrategySizeTrait for core::Ptr { #[inline] fn as_raw_mut_SelectiveSearchSegmentationStrategySize(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_ximgproc_segmentation_SelectiveSearchSegmentationStrategySizeG_to_PtrOfAlgorithm } impl crate::ximgproc::SelectiveSearchSegmentationStrategyTraitConst for core::Ptr { #[inline] fn as_raw_SelectiveSearchSegmentationStrategy(&self) -> *const c_void { self.inner_as_raw() } } impl crate::ximgproc::SelectiveSearchSegmentationStrategyTrait for core::Ptr { #[inline] fn as_raw_mut_SelectiveSearchSegmentationStrategy(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_ximgproc_segmentation_SelectiveSearchSegmentationStrategySizeG_to_PtrOfSelectiveSearchSegmentationStrategy } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfSelectiveSearchSegmentationStrategySize") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfSelectiveSearchSegmentationStrategyTexture = core::Ptr; ptr_extern! { crate::ximgproc::SelectiveSearchSegmentationStrategyTexture, cv_PtrLcv_ximgproc_segmentation_SelectiveSearchSegmentationStrategyTextureG_new_null_const, cv_PtrLcv_ximgproc_segmentation_SelectiveSearchSegmentationStrategyTextureG_delete, cv_PtrLcv_ximgproc_segmentation_SelectiveSearchSegmentationStrategyTextureG_getInnerPtr_const, cv_PtrLcv_ximgproc_segmentation_SelectiveSearchSegmentationStrategyTextureG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfSelectiveSearchSegmentationStrategyTexture(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfSelectiveSearchSegmentationStrategyTexture(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::ximgproc::SelectiveSearchSegmentationStrategyTextureTraitConst for core::Ptr { #[inline] fn as_raw_SelectiveSearchSegmentationStrategyTexture(&self) -> *const c_void { self.inner_as_raw() } } impl crate::ximgproc::SelectiveSearchSegmentationStrategyTextureTrait for core::Ptr { #[inline] fn as_raw_mut_SelectiveSearchSegmentationStrategyTexture(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_ximgproc_segmentation_SelectiveSearchSegmentationStrategyTextureG_to_PtrOfAlgorithm } impl crate::ximgproc::SelectiveSearchSegmentationStrategyTraitConst for core::Ptr { #[inline] fn as_raw_SelectiveSearchSegmentationStrategy(&self) -> *const c_void { self.inner_as_raw() } } impl crate::ximgproc::SelectiveSearchSegmentationStrategyTrait for core::Ptr { #[inline] fn as_raw_mut_SelectiveSearchSegmentationStrategy(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_ximgproc_segmentation_SelectiveSearchSegmentationStrategyTextureG_to_PtrOfSelectiveSearchSegmentationStrategy } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfSelectiveSearchSegmentationStrategyTexture") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfSparseMatchInterpolator = core::Ptr; ptr_extern! { crate::ximgproc::SparseMatchInterpolator, cv_PtrLcv_ximgproc_SparseMatchInterpolatorG_new_null_const, cv_PtrLcv_ximgproc_SparseMatchInterpolatorG_delete, cv_PtrLcv_ximgproc_SparseMatchInterpolatorG_getInnerPtr_const, cv_PtrLcv_ximgproc_SparseMatchInterpolatorG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfSparseMatchInterpolator(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfSparseMatchInterpolator(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::ximgproc::SparseMatchInterpolatorTraitConst for core::Ptr { #[inline] fn as_raw_SparseMatchInterpolator(&self) -> *const c_void { self.inner_as_raw() } } impl crate::ximgproc::SparseMatchInterpolatorTrait for core::Ptr { #[inline] fn as_raw_mut_SparseMatchInterpolator(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_ximgproc_SparseMatchInterpolatorG_to_PtrOfAlgorithm } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfSparseMatchInterpolator") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfStructuredEdgeDetection = core::Ptr; ptr_extern! { crate::ximgproc::StructuredEdgeDetection, cv_PtrLcv_ximgproc_StructuredEdgeDetectionG_new_null_const, cv_PtrLcv_ximgproc_StructuredEdgeDetectionG_delete, cv_PtrLcv_ximgproc_StructuredEdgeDetectionG_getInnerPtr_const, cv_PtrLcv_ximgproc_StructuredEdgeDetectionG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfStructuredEdgeDetection(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfStructuredEdgeDetection(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::ximgproc::StructuredEdgeDetectionTraitConst for core::Ptr { #[inline] fn as_raw_StructuredEdgeDetection(&self) -> *const c_void { self.inner_as_raw() } } impl crate::ximgproc::StructuredEdgeDetectionTrait for core::Ptr { #[inline] fn as_raw_mut_StructuredEdgeDetection(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_ximgproc_StructuredEdgeDetectionG_to_PtrOfAlgorithm } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfStructuredEdgeDetection") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfSuperpixelLSC = core::Ptr; ptr_extern! { crate::ximgproc::SuperpixelLSC, cv_PtrLcv_ximgproc_SuperpixelLSCG_new_null_const, cv_PtrLcv_ximgproc_SuperpixelLSCG_delete, cv_PtrLcv_ximgproc_SuperpixelLSCG_getInnerPtr_const, cv_PtrLcv_ximgproc_SuperpixelLSCG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfSuperpixelLSC(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfSuperpixelLSC(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::ximgproc::SuperpixelLSCTraitConst for core::Ptr { #[inline] fn as_raw_SuperpixelLSC(&self) -> *const c_void { self.inner_as_raw() } } impl crate::ximgproc::SuperpixelLSCTrait for core::Ptr { #[inline] fn as_raw_mut_SuperpixelLSC(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_ximgproc_SuperpixelLSCG_to_PtrOfAlgorithm } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfSuperpixelLSC") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfSuperpixelSEEDS = core::Ptr; ptr_extern! { crate::ximgproc::SuperpixelSEEDS, cv_PtrLcv_ximgproc_SuperpixelSEEDSG_new_null_const, cv_PtrLcv_ximgproc_SuperpixelSEEDSG_delete, cv_PtrLcv_ximgproc_SuperpixelSEEDSG_getInnerPtr_const, cv_PtrLcv_ximgproc_SuperpixelSEEDSG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfSuperpixelSEEDS(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfSuperpixelSEEDS(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::ximgproc::SuperpixelSEEDSTraitConst for core::Ptr { #[inline] fn as_raw_SuperpixelSEEDS(&self) -> *const c_void { self.inner_as_raw() } } impl crate::ximgproc::SuperpixelSEEDSTrait for core::Ptr { #[inline] fn as_raw_mut_SuperpixelSEEDS(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_ximgproc_SuperpixelSEEDSG_to_PtrOfAlgorithm } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfSuperpixelSEEDS") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfSuperpixelSLIC = core::Ptr; ptr_extern! { crate::ximgproc::SuperpixelSLIC, cv_PtrLcv_ximgproc_SuperpixelSLICG_new_null_const, cv_PtrLcv_ximgproc_SuperpixelSLICG_delete, cv_PtrLcv_ximgproc_SuperpixelSLICG_getInnerPtr_const, cv_PtrLcv_ximgproc_SuperpixelSLICG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfSuperpixelSLIC(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfSuperpixelSLIC(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::ximgproc::SuperpixelSLICTraitConst for core::Ptr { #[inline] fn as_raw_SuperpixelSLIC(&self) -> *const c_void { self.inner_as_raw() } } impl crate::ximgproc::SuperpixelSLICTrait for core::Ptr { #[inline] fn as_raw_mut_SuperpixelSLIC(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_ximgproc_SuperpixelSLICG_to_PtrOfAlgorithm } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfSuperpixelSLIC") .finish() } } #[deprecated = "Use the the non-alias form `core::Vector` instead, removal in Nov 2024"] pub type VectorOfBox = core::Vector; impl core::Vector { pub fn as_raw_VectorOfBox(&self) -> extern_send!(Self) { self.as_raw() } pub fn as_raw_mut_VectorOfBox(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } vector_extern! { crate::ximgproc::Box, std_vectorLcv_ximgproc_BoxG_new_const, std_vectorLcv_ximgproc_BoxG_delete, std_vectorLcv_ximgproc_BoxG_len_const, std_vectorLcv_ximgproc_BoxG_isEmpty_const, std_vectorLcv_ximgproc_BoxG_capacity_const, std_vectorLcv_ximgproc_BoxG_shrinkToFit, std_vectorLcv_ximgproc_BoxG_reserve_size_t, std_vectorLcv_ximgproc_BoxG_remove_size_t, std_vectorLcv_ximgproc_BoxG_swap_size_t_size_t, std_vectorLcv_ximgproc_BoxG_clear, std_vectorLcv_ximgproc_BoxG_get_const_size_t, std_vectorLcv_ximgproc_BoxG_set_size_t_const_Box, std_vectorLcv_ximgproc_BoxG_push_const_Box, std_vectorLcv_ximgproc_BoxG_insert_size_t_const_Box, } vector_copy_non_bool! { crate::ximgproc::Box, std_vectorLcv_ximgproc_BoxG_data_const, std_vectorLcv_ximgproc_BoxG_dataMut, cv_fromSlice_const_const_BoxX_size_t, std_vectorLcv_ximgproc_BoxG_clone_const, } } #[cfg(ocvrs_has_module_ximgproc)] pub use ximgproc_types::*; #[cfg(ocvrs_has_module_xobjdetect)] mod xobjdetect_types { use crate::{mod_prelude::*, core, types, sys}; #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfWBDetector = core::Ptr; ptr_extern! { crate::xobjdetect::WBDetector, cv_PtrLcv_xobjdetect_WBDetectorG_new_null_const, cv_PtrLcv_xobjdetect_WBDetectorG_delete, cv_PtrLcv_xobjdetect_WBDetectorG_getInnerPtr_const, cv_PtrLcv_xobjdetect_WBDetectorG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfWBDetector(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfWBDetector(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::xobjdetect::WBDetectorTraitConst for core::Ptr { #[inline] fn as_raw_WBDetector(&self) -> *const c_void { self.inner_as_raw() } } impl crate::xobjdetect::WBDetectorTrait for core::Ptr { #[inline] fn as_raw_mut_WBDetector(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfWBDetector") .finish() } } } #[cfg(ocvrs_has_module_xobjdetect)] pub use xobjdetect_types::*; #[cfg(ocvrs_has_module_xphoto)] mod xphoto_types { use crate::{mod_prelude::*, core, types, sys}; #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfGrayworldWB = core::Ptr; ptr_extern! { crate::xphoto::GrayworldWB, cv_PtrLcv_xphoto_GrayworldWBG_new_null_const, cv_PtrLcv_xphoto_GrayworldWBG_delete, cv_PtrLcv_xphoto_GrayworldWBG_getInnerPtr_const, cv_PtrLcv_xphoto_GrayworldWBG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfGrayworldWB(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfGrayworldWB(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::xphoto::GrayworldWBTraitConst for core::Ptr { #[inline] fn as_raw_GrayworldWB(&self) -> *const c_void { self.inner_as_raw() } } impl crate::xphoto::GrayworldWBTrait for core::Ptr { #[inline] fn as_raw_mut_GrayworldWB(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_xphoto_GrayworldWBG_to_PtrOfAlgorithm } impl crate::xphoto::WhiteBalancerTraitConst for core::Ptr { #[inline] fn as_raw_WhiteBalancer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::xphoto::WhiteBalancerTrait for core::Ptr { #[inline] fn as_raw_mut_WhiteBalancer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_xphoto_GrayworldWBG_to_PtrOfWhiteBalancer } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfGrayworldWB") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfLearningBasedWB = core::Ptr; ptr_extern! { crate::xphoto::LearningBasedWB, cv_PtrLcv_xphoto_LearningBasedWBG_new_null_const, cv_PtrLcv_xphoto_LearningBasedWBG_delete, cv_PtrLcv_xphoto_LearningBasedWBG_getInnerPtr_const, cv_PtrLcv_xphoto_LearningBasedWBG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfLearningBasedWB(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfLearningBasedWB(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::xphoto::LearningBasedWBTraitConst for core::Ptr { #[inline] fn as_raw_LearningBasedWB(&self) -> *const c_void { self.inner_as_raw() } } impl crate::xphoto::LearningBasedWBTrait for core::Ptr { #[inline] fn as_raw_mut_LearningBasedWB(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_xphoto_LearningBasedWBG_to_PtrOfAlgorithm } impl crate::xphoto::WhiteBalancerTraitConst for core::Ptr { #[inline] fn as_raw_WhiteBalancer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::xphoto::WhiteBalancerTrait for core::Ptr { #[inline] fn as_raw_mut_WhiteBalancer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_xphoto_LearningBasedWBG_to_PtrOfWhiteBalancer } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfLearningBasedWB") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfSimpleWB = core::Ptr; ptr_extern! { crate::xphoto::SimpleWB, cv_PtrLcv_xphoto_SimpleWBG_new_null_const, cv_PtrLcv_xphoto_SimpleWBG_delete, cv_PtrLcv_xphoto_SimpleWBG_getInnerPtr_const, cv_PtrLcv_xphoto_SimpleWBG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfSimpleWB(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfSimpleWB(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::xphoto::SimpleWBTraitConst for core::Ptr { #[inline] fn as_raw_SimpleWB(&self) -> *const c_void { self.inner_as_raw() } } impl crate::xphoto::SimpleWBTrait for core::Ptr { #[inline] fn as_raw_mut_SimpleWB(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_xphoto_SimpleWBG_to_PtrOfAlgorithm } impl crate::xphoto::WhiteBalancerTraitConst for core::Ptr { #[inline] fn as_raw_WhiteBalancer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::xphoto::WhiteBalancerTrait for core::Ptr { #[inline] fn as_raw_mut_WhiteBalancer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_xphoto_SimpleWBG_to_PtrOfWhiteBalancer } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfSimpleWB") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfTonemapDurand = core::Ptr; ptr_extern! { crate::xphoto::TonemapDurand, cv_PtrLcv_xphoto_TonemapDurandG_new_null_const, cv_PtrLcv_xphoto_TonemapDurandG_delete, cv_PtrLcv_xphoto_TonemapDurandG_getInnerPtr_const, cv_PtrLcv_xphoto_TonemapDurandG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfTonemapDurand(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfTonemapDurand(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::xphoto::TonemapDurandTraitConst for core::Ptr { #[inline] fn as_raw_TonemapDurand(&self) -> *const c_void { self.inner_as_raw() } } impl crate::xphoto::TonemapDurandTrait for core::Ptr { #[inline] fn as_raw_mut_TonemapDurand(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_xphoto_TonemapDurandG_to_PtrOfAlgorithm } impl crate::photo::TonemapTraitConst for core::Ptr { #[inline] fn as_raw_Tonemap(&self) -> *const c_void { self.inner_as_raw() } } impl crate::photo::TonemapTrait for core::Ptr { #[inline] fn as_raw_mut_Tonemap(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_xphoto_TonemapDurandG_to_PtrOfTonemap } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfTonemapDurand") .finish() } } #[deprecated = "Use the the non-alias form `core::Ptr` instead, removal in Nov 2024"] pub type PtrOfWhiteBalancer = core::Ptr; ptr_extern! { crate::xphoto::WhiteBalancer, cv_PtrLcv_xphoto_WhiteBalancerG_new_null_const, cv_PtrLcv_xphoto_WhiteBalancerG_delete, cv_PtrLcv_xphoto_WhiteBalancerG_getInnerPtr_const, cv_PtrLcv_xphoto_WhiteBalancerG_getInnerPtrMut } impl core::Ptr { #[inline] pub fn as_raw_PtrOfWhiteBalancer(&self) -> extern_send!(Self) { self.as_raw() } #[inline] pub fn as_raw_mut_PtrOfWhiteBalancer(&mut self) -> extern_send!(mut Self) { self.as_raw_mut() } } impl crate::xphoto::WhiteBalancerTraitConst for core::Ptr { #[inline] fn as_raw_WhiteBalancer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::xphoto::WhiteBalancerTrait for core::Ptr { #[inline] fn as_raw_mut_WhiteBalancer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for core::Ptr { #[inline] fn as_raw_Algorithm(&self) -> *const c_void { self.inner_as_raw() } } impl core::AlgorithmTrait for core::Ptr { #[inline] fn as_raw_mut_Algorithm(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } ptr_cast_base! { core::Ptr, core::Ptr, cv_PtrLcv_xphoto_WhiteBalancerG_to_PtrOfAlgorithm } impl std::fmt::Debug for core::Ptr { #[inline] fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PtrOfWhiteBalancer") .finish() } } } #[cfg(ocvrs_has_module_xphoto)] pub use xphoto_types::*; pub use crate::manual::types::*;