Class cv::cuda::StereoConstantSpaceBP#
Class computing stereo correspondence using the constant space belief propagation algorithm. : View details
#include <opencv2/cudastereo.hpp>Collaboration diagram for cv::cuda::StereoConstantSpaceBP:
Public Member Functions#
Public Member Functions inherited from cv::cuda::StereoBeliefPropagation
Return |
Name |
Description |
|---|---|---|
|
|
Enables the stereo correspondence operator that finds the disparity for the specified data cost. |
|
|
|
|
data weight |
|
|
discontinuity single jump |
|
|
truncation of data cost |
|
|
truncation of discontinuity cost |
|
|
type for messages (CV_16SC1 or CV_32FC1) |
|
|
number of BP iterations on each level |
|
|
number of levels |
|
|
||
|
||
|
||
|
||
|
||
|
||
|
Public Member Functions inherited from cv::Algorithm
Return |
Name |
Description |
|---|---|---|
|
Clears the algorithm state. |
|
|
Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read. |
|
|
Reads algorithm parameters from a file storage. |
|
|
||
|
|
|
|
Stores algorithm parameters in a file storage. |
|
|
Static Public Member Functions#
Static Public Member Functions inherited from cv::cuda::StereoBeliefPropagation
Return |
Name |
Description |
|---|---|---|
|
|
Uses a heuristic method to compute the recommended parameters ( ndisp, iters and levels ) for the specified image size ( width and height ). |
Static Public Member Functions inherited from cv::Algorithm
Return |
Name |
Description |
|---|---|---|
|
|
Loads algorithm from the file. |
|
|
Loads algorithm from a String. |
|
Reads algorithm from the file node. |
Additional Inherited Members#
Protected Member Functions inherited from cv::Algorithm
Return |
Name |
Description |
|---|---|---|
|
Detailed 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:
Member Function Documentation#
getNrPlane()#
int cv::cuda::StereoConstantSpaceBP::getNrPlane()
number of active disparity on the first level
getUseLocalInitDataCost()#
bool cv::cuda::StereoConstantSpaceBP::getUseLocalInitDataCost()
setNrPlane()#
void cv::cuda::StereoConstantSpaceBP::setNrPlane(int nr_plane)
setUseLocalInitDataCost()#
void cv::cuda::StereoConstantSpaceBP::setUseLocalInitDataCost(bool use_local_init_data_cost)
estimateRecommendedParams()#
static void cv::cuda::StereoConstantSpaceBP::estimateRecommendedParams(
int width,
int height,
int & ndisp,
int & iters,
int & levels,
int & nr_plane )
Uses a heuristic method to compute parameters (ndisp, iters, levelsand nrplane) for the specified image size (widthand height).
Source file#
The documentation for this class was generated from the following file:
opencv2/cudastereo.hpp