Ocean
Ocean::CV::Depth::Disparity Class Reference

This class implements disparity functions. More...

Static Public Member Functions

static bool fillHolesDisparityMap (Frame &disparityMap)
 Fills holes in a disparity map. More...
 
static bool mergeDisparityMaps (const Frames &disparityMaps, const double inlierThreshold, const size_t minInliers, Frame &mergedDisparityMap)
 Merges a given set of disparity maps into a single disparity map. More...
 

Static Protected Member Functions

template<typename T >
static bool fillHolesDisparityMap (Frame &disparityMap)
 Fills holes in a disparity map. More...
 
template<typename T >
static bool mergeDisparityMaps (const Frames &disparityMaps, const double inlierThreshold, const size_t minInliers, Frame &mergedDisparityMap)
 Merges a given set of disparity maps into a single disparity map. More...
 
template<typename T >
static bool isValid (const T &value)
 Returns whether a given value is valid number (whether it is not NaN and finite). More...
 

Detailed Description

This class implements disparity functions.

Member Function Documentation

◆ fillHolesDisparityMap() [1/2]

static bool Ocean::CV::Depth::Disparity::fillHolesDisparityMap ( Frame disparityMap)
static

Fills holes in a disparity map.

Parameters
disparityMapThe disparity map to be filled
Returns
True, if succeeded

◆ fillHolesDisparityMap() [2/2]

template<typename T >
static bool Ocean::CV::Depth::Disparity::fillHolesDisparityMap ( Frame disparityMap)
staticprotected

Fills holes in a disparity map.

Parameters
disparityMapThe disparity map to be filled
Returns
True, if succeeded
Template Parameters
TThe data type of the disparity elements, e.g., 'float' or 'double'

◆ isValid()

template<typename T >
bool Ocean::CV::Depth::Disparity::isValid ( const T &  value)
inlinestaticprotected

Returns whether a given value is valid number (whether it is not NaN and finite).

Parameters
valueThe value to check
Returns
True, if so
Template Parameters
TThe data type of the value to check

◆ mergeDisparityMaps() [1/2]

static bool Ocean::CV::Depth::Disparity::mergeDisparityMaps ( const Frames disparityMaps,
const double  inlierThreshold,
const size_t  minInliers,
Frame mergedDisparityMap 
)
static

Merges a given set of disparity maps into a single disparity map.

The merged disparity map will hold NaN values whenever input is invalid or the specified threshold don't hold.

Parameters
disparityMapsThe disparity maps to merge, at least two
inlierThresholdThe maximal distance to median value to be considered inlier, with range [0, infinity)
minInliersThe minimal number of inliers required, with range [1, infinity)
mergedDisparityMapThe resulting disparity map
Returns
True, if succeeded

◆ mergeDisparityMaps() [2/2]

template<typename T >
static bool Ocean::CV::Depth::Disparity::mergeDisparityMaps ( const Frames disparityMaps,
const double  inlierThreshold,
const size_t  minInliers,
Frame mergedDisparityMap 
)
staticprotected

Merges a given set of disparity maps into a single disparity map.

Parameters
disparityMapsThe disparity maps to merge, at least two
inlierThresholdThe maximal distance to median value to be considered inlier, with range [0, infinity)
minInliersThe minimal number of inliers required, with range [1, infinity)
mergedDisparityMapThe resulting disparity map
Returns
True, if succeeded
Template Parameters
TThe data type of the disparity elements, e.g., 'float' or 'double'

The documentation for this class was generated from the following file: