Type Definition opencv::types::PtrOfStereoBM
source · [−]Implementations
sourceimpl PtrOfStereoBM
impl PtrOfStereoBM
pub fn as_raw_PtrOfStereoBM(&self) -> *const c_void
pub fn as_raw_mut_PtrOfStereoBM(&mut self) -> *mut c_void
Trait Implementations
sourceimpl AlgorithmTrait for PtrOfStereoBM
impl AlgorithmTrait for PtrOfStereoBM
sourceimpl AlgorithmTraitConst for PtrOfStereoBM
impl AlgorithmTraitConst for PtrOfStereoBM
fn as_raw_Algorithm(&self) -> *const c_void
sourcefn write(&self, fs: &mut FileStorage) -> Result<()>
fn write(&self, fs: &mut FileStorage) -> Result<()>
Stores algorithm parameters in a file storage
sourcefn write_with_name(&self, fs: &Ptr<FileStorage>, name: &str) -> Result<()>
fn write_with_name(&self, fs: &Ptr<FileStorage>, name: &str) -> Result<()>
simplified API for language bindings
Stores algorithm parameters in a file storage Read more
sourcefn 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
sourcefn 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). Read more
sourcefn 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. Read more
sourceimpl StereoBM for PtrOfStereoBM
impl StereoBM for PtrOfStereoBM
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<()>
sourceimpl StereoBMConst for PtrOfStereoBM
impl StereoBMConst for PtrOfStereoBM
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>
sourceimpl StereoMatcher for PtrOfStereoBM
impl StereoMatcher for PtrOfStereoBM
fn as_raw_mut_StereoMatcher(&mut self) -> *mut c_void
sourcefn compute(
&mut self,
left: &dyn ToInputArray,
right: &dyn ToInputArray,
disparity: &mut dyn ToOutputArray
) -> Result<()>
fn compute(
&mut self,
left: &dyn ToInputArray,
right: &dyn ToInputArray,
disparity: &mut dyn ToOutputArray
) -> Result<()>
Computes disparity map for the specified stereo pair Read more