pub trait CUDA_StereoConstantSpaceBPConst: CUDA_StereoBeliefPropagationConst {
fn as_raw_CUDA_StereoConstantSpaceBP(&self) -> *const c_void;
fn get_nr_plane(&self) -> Result<i32> { ... }
fn get_use_local_init_data_cost(&self) -> Result<bool> { ... }
}
Expand description
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:
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:
Required Methods
fn as_raw_CUDA_StereoConstantSpaceBP(&self) -> *const c_void
Provided Methods
fn get_nr_plane(&self) -> Result<i32>
fn get_nr_plane(&self) -> Result<i32>
number of active disparity on the first level