This class implements disparity functions.
More...
|
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...
|
|
This class implements disparity functions.
◆ fillHolesDisparityMap() [1/2]
static bool Ocean::CV::Depth::Disparity::fillHolesDisparityMap |
( |
Frame & |
disparityMap | ) |
|
|
static |
Fills holes in a disparity map.
- Parameters
-
disparityMap | The 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
-
disparityMap | The disparity map to be filled |
- Returns
- True, if succeeded
- Template Parameters
-
T | The 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
-
- Returns
- True, if so
- Template Parameters
-
T | The 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
-
disparityMaps | The disparity maps to merge, at least two |
inlierThreshold | The maximal distance to median value to be considered inlier, with range [0, infinity) |
minInliers | The minimal number of inliers required, with range [1, infinity) |
mergedDisparityMap | The 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
-
disparityMaps | The disparity maps to merge, at least two |
inlierThreshold | The maximal distance to median value to be considered inlier, with range [0, infinity) |
minInliers | The minimal number of inliers required, with range [1, infinity) |
mergedDisparityMap | The resulting disparity map |
- Returns
- True, if succeeded
- Template Parameters
-
T | The data type of the disparity elements, e.g., 'float' or 'double' |
The documentation for this class was generated from the following file: