[][src]Trait opencv::cudastereo::prelude::CUDA_StereoConstantSpaceBP

pub trait CUDA_StereoConstantSpaceBP: CUDA_StereoBeliefPropagation {
    pub fn as_raw_CUDA_StereoConstantSpaceBP(&self) -> *const c_void;
pub fn as_raw_mut_CUDA_StereoConstantSpaceBP(&mut self) -> *mut c_void; pub fn get_nr_plane(&self) -> Result<i32> { ... }
pub fn set_nr_plane(&mut self, nr_plane: i32) -> Result<()> { ... }
pub fn get_use_local_init_data_cost(&self) -> Result<bool> { ... }
pub fn set_use_local_init_data_cost(
        &mut self,
        use_local_init_data_cost: bool
    ) -> Result<()> { ... } }

Class computing stereo correspondence using the constant space belief propagation algorithm. :

The class implements algorithm described in Yang2010 . StereoConstantSpaceBP supports both local minimum and global minimum data cost initialization algorithms. For more details, see the paper mentioned above. By default, a local algorithm is used. To enable a global algorithm, set use_local_init_data_cost to false .

StereoConstantSpaceBP uses a truncated linear model for the data cost and discontinuity terms:

block formula

block formula

For more details, see Yang2010 .

By default, StereoConstantSpaceBP uses floating-point arithmetics and the CV_32FC1 type for messages. But it can also use fixed-point arithmetics and the CV_16SC1 message type for better performance. To avoid an overflow in this case, the parameters must satisfy the following requirement:

block formula

Required methods

Loading content...

Provided methods

pub fn get_nr_plane(&self) -> Result<i32>[src]

number of active disparity on the first level

pub fn set_nr_plane(&mut self, nr_plane: i32) -> Result<()>[src]

pub fn get_use_local_init_data_cost(&self) -> Result<bool>[src]

pub fn set_use_local_init_data_cost(
    &mut self,
    use_local_init_data_cost: bool
) -> Result<()>
[src]

Loading content...

Implementations

impl<'_> dyn CUDA_StereoConstantSpaceBP + '_[src]

Uses a heuristic method to compute parameters (ndisp, iters, levelsand nrplane) for the specified image size (widthand height).

Implementors

Loading content...