HemiStereo SDK
The C++ Software Development Kit for the HemiStereo 3D sensing device.
osp::StereoMatchingSgmParams Struct Reference

Public Types

enum  ScanLineDirection {
  ScanLineLeftRight = 1 << 0, ScanLineTopLeftBottomRight = 1 << 1, ScanLineTopBottom = 1 << 2, ScanLineTopRightBottomLeft = 1 << 3,
  ScanLineRightLeft = 1 << 4, ScanLineBottomRightTopLeft = 1 << 5, ScanLineBottomTop = 1 << 6, ScanLineBottomLeftTopRight = 1 << 7,
  ScanLineCross = ScanLineLeftRight | ScanLineRightLeft | ScanLineTopBottom | ScanLineBottomTop, ScanLineAll = 0xFF
}
 

Public Attributes

int32_t maxDisparity
 
int32_t p1
 
int32_t p2
 
int32_t sad
 
int32_t ctWinSize
 
int32_t hcWinSize
 
int32_t clip
 
int32_t maxDiff
 
int32_t uniqueness
 
int scanlines
 
bool filterTopArea
 
bool pyramidalStereo
 

Member Enumeration Documentation

◆ ScanLineDirection

Enumerator
ScanLineLeftRight 

Aggregate cost from left to right horizontally

ScanLineTopLeftBottomRight 

Aggregate cost from left to right diagonally starting from the top

ScanLineTopBottom 

Aggregate cost from top to bottom vertically

ScanLineTopRightBottomLeft 

Aggregate cost from right to left diagonally starting from the top

ScanLineRightLeft 

Aggregate cost from right to left horizontally

ScanLineBottomRightTopLeft 

Aggregate cost from right to left diagonally starting from the bottom

ScanLineBottomTop 

Aggregate cost from bottom to top vertically

ScanLineBottomLeftTopRight 

Aggregate cost from left to right diagonally starting from the bottom Aggregate cost from four directions forming a cross

ScanLineAll 

Aggregate cost over all scan lines

Member Data Documentation

◆ clip

int32_t osp::StereoMatchingSgmParams::clip

Clip value for cost (used to preserve overflow in cost function)

◆ ctWinSize

int32_t osp::StereoMatchingSgmParams::ctWinSize

Specifies the census transform window size

◆ filterTopArea

bool osp::StereoMatchingSgmParams::filterTopArea

Filter cost at top image area with low gradients

◆ hcWinSize

int32_t osp::StereoMatchingSgmParams::hcWinSize

Specifies the hamming cost window size

◆ maxDiff

int32_t osp::StereoMatchingSgmParams::maxDiff

Maximum allowed difference (in integer pixel units) in the left-right disparity check

◆ maxDisparity

int32_t osp::StereoMatchingSgmParams::maxDisparity

The maximum disparity value

◆ p1

int32_t osp::StereoMatchingSgmParams::p1

Smoothness penalty

◆ p2

int32_t osp::StereoMatchingSgmParams::p2

Discontiguous penalty

◆ pyramidalStereo

bool osp::StereoMatchingSgmParams::pyramidalStereo

Use pyramidal scheme: lower resolution imagery for nearby objects and the full resolution for far-away objects

◆ sad

int32_t osp::StereoMatchingSgmParams::sad

Specifies the average window size for sum of absolute differences (set to 1 for original SGM)

◆ scanlines

int osp::StereoMatchingSgmParams::scanlines

Scan line directions mask (Any bit-OR of ScanLineDirection values is suitable)

◆ uniqueness

int32_t osp::StereoMatchingSgmParams::uniqueness

Margin in percentage by which the best (minimum) computed cost function value should “win” the second best value to consider the found match correct


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