OptimizationProfile

Navigation:  NxLib API > Tree > Cameras > BySerialNo > 120001 (a stereo camera) > Parameters > DisparityMap > StereoMatching >

OptimizationProfile

Previous pageReturn to chapter overviewNext page

The type of Semi-Global-Matching optimization carried out on the cost function.

Format

String

"Aligned"

Propagate cost along 4 paths, corresonding to the pixel axes of the rectified images.


"Diagonal"

Propagate cost on the 4 paths, corresponding the all 45 degree pixel diagonals.


"AlignedAndDiagonal"

Propagate along all 8 paths, aligned and diagonal. This setting yields the best matching results, but slowest performance.

Note: The Aligned and Diagonal profiles have similar runtime, but object edges that are approximately aligned with one of the propagation directions might be estimated less accurately. You might for example choose the Diagonal profile, if you expect you object edges to be mostly pixel axis aligned and Aligned for best results on non-pixel aligned object boundaries.

Default Value

"AlignedAndDiagonal"

Example

See the image below for an example using 8 optimization directions. At each pixel the 8 incoming optimization paths are summed up to find the best disparity value for this pixel.

propagation