CostScale

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

CostScale

Previous pageReturn to chapter overviewNext page

This allows to scale the matching cost function by a power of 2.

Usually you will not need to scale the cost function, unless stereo pairs look very dissimilar, even in correctly associated areas. Then the clipping of large cost values might affect the matching result and downscaling the cost values might help to recover more complete depth information from the stereo pairs.

Format

Number

An integer (zero or negative), specifying the number of low-order bits to discard from the matching cost function.

Example

Setting CostScale to -2 will discard the lower two bits of the pixel association cost.

Default

-3