Struct opencv::cudastereo::CUDA_StereoBM
source · pub struct CUDA_StereoBM { /* private fields */ }
Expand description
Class computing stereo correspondence (disparity map) using the block matching algorithm. :
§See also
StereoBM
Trait Implementations§
source§impl AlgorithmTrait for CUDA_StereoBM
impl AlgorithmTrait for CUDA_StereoBM
source§impl AlgorithmTraitConst for CUDA_StereoBM
impl AlgorithmTraitConst for CUDA_StereoBM
fn as_raw_Algorithm(&self) -> *const c_void
source§fn write(&self, fs: &mut impl FileStorageTrait) -> Result<()>
fn write(&self, fs: &mut impl FileStorageTrait) -> Result<()>
Stores algorithm parameters in a file storage
source§fn write_1(&self, fs: &mut impl FileStorageTrait, name: &str) -> Result<()>
fn write_1(&self, fs: &mut impl FileStorageTrait, name: &str) -> Result<()>
Stores algorithm parameters in a file storage Read more
source§fn write_with_name(&self, fs: &Ptr<FileStorage>, name: &str) -> Result<()>
fn write_with_name(&self, fs: &Ptr<FileStorage>, name: &str) -> Result<()>
@deprecated Read more
source§fn write_with_name_def(&self, fs: &Ptr<FileStorage>) -> Result<()>
fn write_with_name_def(&self, fs: &Ptr<FileStorage>) -> Result<()>
👎Deprecated:
§Note
Deprecated: ## Note
This alternative version of AlgorithmTraitConst::write_with_name function uses the following default values for its arguments: Read more
source§fn empty(&self) -> Result<bool>
fn empty(&self) -> Result<bool>
Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read
source§fn save(&self, filename: &str) -> Result<()>
fn save(&self, filename: &str) -> Result<()>
Saves the algorithm to a file.
In order to make this method work, the derived class must implement Algorithm::write(FileStorage& fs).
source§fn get_default_name(&self) -> Result<String>
fn get_default_name(&self) -> Result<String>
Returns the algorithm string identifier.
This string is used as top level xml/yml node tag when the object is saved to a file or string.
source§impl Boxed for CUDA_StereoBM
impl Boxed for CUDA_StereoBM
source§unsafe fn from_raw(
ptr: <CUDA_StereoBM as OpenCVFromExtern>::ExternReceive
) -> Self
unsafe fn from_raw( ptr: <CUDA_StereoBM as OpenCVFromExtern>::ExternReceive ) -> Self
Wrap the specified raw pointer Read more
source§fn into_raw(self) -> <CUDA_StereoBM as OpenCVTypeExternContainer>::ExternSendMut
fn into_raw(self) -> <CUDA_StereoBM as OpenCVTypeExternContainer>::ExternSendMut
Return the underlying raw pointer while consuming this wrapper. Read more
source§fn as_raw(&self) -> <CUDA_StereoBM as OpenCVTypeExternContainer>::ExternSend
fn as_raw(&self) -> <CUDA_StereoBM as OpenCVTypeExternContainer>::ExternSend
Return the underlying raw pointer. Read more
source§fn as_raw_mut(
&mut self
) -> <CUDA_StereoBM as OpenCVTypeExternContainer>::ExternSendMut
fn as_raw_mut( &mut self ) -> <CUDA_StereoBM as OpenCVTypeExternContainer>::ExternSendMut
Return the underlying mutable raw pointer Read more
source§impl CUDA_StereoBMTrait for CUDA_StereoBM
impl CUDA_StereoBMTrait for CUDA_StereoBM
fn as_raw_mut_CUDA_StereoBM(&mut self) -> *mut c_void
fn compute( &mut self, left: &impl ToInputArray, right: &impl ToInputArray, disparity: &mut impl ToOutputArray, stream: &mut impl StreamTrait ) -> Result<()>
source§impl CUDA_StereoBMTraitConst for CUDA_StereoBM
impl CUDA_StereoBMTraitConst for CUDA_StereoBM
fn as_raw_CUDA_StereoBM(&self) -> *const c_void
source§impl Debug for CUDA_StereoBM
impl Debug for CUDA_StereoBM
source§impl Drop for CUDA_StereoBM
impl Drop for CUDA_StereoBM
source§impl From<CUDA_StereoBM> for Algorithm
impl From<CUDA_StereoBM> for Algorithm
source§fn from(s: CUDA_StereoBM) -> Self
fn from(s: CUDA_StereoBM) -> Self
Converts to this type from the input type.
source§impl From<CUDA_StereoBM> for StereoBM
impl From<CUDA_StereoBM> for StereoBM
source§fn from(s: CUDA_StereoBM) -> Self
fn from(s: CUDA_StereoBM) -> Self
Converts to this type from the input type.
source§impl From<CUDA_StereoBM> for StereoMatcher
impl From<CUDA_StereoBM> for StereoMatcher
source§fn from(s: CUDA_StereoBM) -> Self
fn from(s: CUDA_StereoBM) -> Self
Converts to this type from the input type.
source§impl StereoBMTrait for CUDA_StereoBM
impl StereoBMTrait for CUDA_StereoBM
fn as_raw_mut_StereoBM(&mut self) -> *mut c_void
fn set_pre_filter_type(&mut self, pre_filter_type: i32) -> Result<()>
fn set_pre_filter_size(&mut self, pre_filter_size: i32) -> Result<()>
fn set_pre_filter_cap(&mut self, pre_filter_cap: i32) -> Result<()>
fn set_texture_threshold(&mut self, texture_threshold: i32) -> Result<()>
fn set_uniqueness_ratio(&mut self, uniqueness_ratio: i32) -> Result<()>
fn set_smaller_block_size(&mut self, block_size: i32) -> Result<()>
fn set_roi1(&mut self, roi1: Rect) -> Result<()>
fn set_roi2(&mut self, roi2: Rect) -> Result<()>
source§impl StereoBMTraitConst for CUDA_StereoBM
impl StereoBMTraitConst for CUDA_StereoBM
fn as_raw_StereoBM(&self) -> *const c_void
fn get_pre_filter_type(&self) -> Result<i32>
fn get_pre_filter_size(&self) -> Result<i32>
fn get_pre_filter_cap(&self) -> Result<i32>
fn get_texture_threshold(&self) -> Result<i32>
fn get_uniqueness_ratio(&self) -> Result<i32>
fn get_smaller_block_size(&self) -> Result<i32>
fn get_roi1(&self) -> Result<Rect>
fn get_roi2(&self) -> Result<Rect>
source§impl StereoMatcherTrait for CUDA_StereoBM
impl StereoMatcherTrait for CUDA_StereoBM
fn as_raw_mut_StereoMatcher(&mut self) -> *mut c_void
source§fn compute(
&mut self,
left: &impl ToInputArray,
right: &impl ToInputArray,
disparity: &mut impl ToOutputArray
) -> Result<()>
fn compute( &mut self, left: &impl ToInputArray, right: &impl ToInputArray, disparity: &mut impl ToOutputArray ) -> Result<()>
Computes disparity map for the specified stereo pair Read more
fn set_min_disparity(&mut self, min_disparity: i32) -> Result<()>
fn set_num_disparities(&mut self, num_disparities: i32) -> Result<()>
fn set_block_size(&mut self, block_size: i32) -> Result<()>
fn set_speckle_window_size(&mut self, speckle_window_size: i32) -> Result<()>
fn set_speckle_range(&mut self, speckle_range: i32) -> Result<()>
fn set_disp12_max_diff(&mut self, disp12_max_diff: i32) -> Result<()>
source§impl StereoMatcherTraitConst for CUDA_StereoBM
impl StereoMatcherTraitConst for CUDA_StereoBM
fn as_raw_StereoMatcher(&self) -> *const c_void
fn get_min_disparity(&self) -> Result<i32>
fn get_num_disparities(&self) -> Result<i32>
fn get_block_size(&self) -> Result<i32>
fn get_speckle_window_size(&self) -> Result<i32>
fn get_speckle_range(&self) -> Result<i32>
fn get_disp12_max_diff(&self) -> Result<i32>
impl Send for CUDA_StereoBM
Auto Trait Implementations§
impl Freeze for CUDA_StereoBM
impl RefUnwindSafe for CUDA_StereoBM
impl !Sync for CUDA_StereoBM
impl Unpin for CUDA_StereoBM
impl UnwindSafe for CUDA_StereoBM
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<Mat> ModifyInplace for Matwhere
Mat: Boxed,
impl<Mat> ModifyInplace for Matwhere
Mat: Boxed,
source§unsafe fn modify_inplace<Res>(
&mut self,
f: impl FnOnce(&Mat, &mut Mat) -> Res
) -> Res
unsafe fn modify_inplace<Res>( &mut self, f: impl FnOnce(&Mat, &mut Mat) -> Res ) -> Res
Helper function to call OpenCV functions that allow in-place modification of a
Mat
or another similar object. By passing
a mutable reference to the Mat
to this function your closure will get called with the read reference and a write references
to the same Mat
. This is of course unsafe as it breaks the Rust aliasing rules, but it might be useful for some performance
sensitive operations. One example of an OpenCV function that allows such in-place modification is imgproc::threshold
. Read more