Struct PostProcessing::HoleFilling

Nested Relationships

This struct is a nested type of Struct StereoDepthConfig::PostProcessing.

Struct Documentation

struct HoleFilling

Public Members

bool enable = true

Flag to enable post-processing hole-filling.

uint8_t highConfidenceThreshold = 210

Pixels with confidence higher than this value are used to calculate an average disparity per superpixel. Valid range is [1,255]

uint8_t fillConfidenceThreshold = 200

Pixels with confidence below this value will be filled with the average disparity of their corresponding superpixel. Valid range is [1,255].

uint8_t minValidDisparity = 1

Represents the required percentange of pixels with confidence value above nHighConfThresh that are used to calculate average disparity per superpixel, where 1 means 50% or half, 2 means 25% or a quarter and 3 means 12.5% or an eighth. If the required number of pixels are not found, the holes will not be filled.

bool invalidateDisparities = true

If enabled, sets to 0 the disparity of pixels with confidence below nFillConfThresh, which did not pass nMinValidPixels criteria. Valid range is {true, false}.