diff --git a/src/pipeline/node/StereoDepth.cpp b/src/pipeline/node/StereoDepth.cpp index d65404ba3..2cbe6ca96 100644 --- a/src/pipeline/node/StereoDepth.cpp +++ b/src/pipeline/node/StereoDepth.cpp @@ -304,45 +304,6 @@ void StereoDepth::setDefaultProfilePreset(PresetMode mode) { dai::RawStereoDepthConfig config = initialConfig.get(); - config.postProcessing.filteringOrder = {RawStereoDepthConfig::PostProcessing::Filter::DECIMATION, - RawStereoDepthConfig::PostProcessing::Filter::MEDIAN, - RawStereoDepthConfig::PostProcessing::Filter::SPECKLE, - RawStereoDepthConfig::PostProcessing::Filter::SPATIAL, - RawStereoDepthConfig::PostProcessing::Filter::TEMPORAL}; - config.postProcessing.decimationFilter.decimationFactor = 1; - config.postProcessing.decimationFilter.decimationMode = RawStereoDepthConfig::PostProcessing::DecimationFilter::DecimationMode::PIXEL_SKIPPING; - - config.postProcessing.spatialFilter.enable = true; - config.postProcessing.spatialFilter.holeFillingRadius = 1; - config.postProcessing.spatialFilter.numIterations = 1; - config.postProcessing.spatialFilter.alpha = 0.7; - config.postProcessing.spatialFilter.delta = 3; - - config.postProcessing.temporalFilter.enable = true; - config.postProcessing.temporalFilter.alpha = 0.5; - config.postProcessing.temporalFilter.delta = 3; - - config.postProcessing.speckleFilter.enable = true; - config.postProcessing.speckleFilter.speckleRange = 200; - config.postProcessing.speckleFilter.differenceThreshold = 2; - - config.postProcessing.thresholdFilter.minRange = 0; - config.postProcessing.thresholdFilter.maxRange = 15000; - - initialConfig.set(config); - - setPostProcessingHardwareResources(3, 3); - } break; - case PresetMode::HIGH_ACCURACY2: { - setDefaultProfilePreset(PresetMode::HIGH_ACCURACY); - initialConfig.setLeftRightCheck(true); - initialConfig.setExtendedDisparity(true); - initialConfig.setSubpixel(true); - initialConfig.setSubpixelFractionalBits(5); - initialConfig.setMedianFilter(MedianFilter::MEDIAN_OFF); - - dai::RawStereoDepthConfig config = initialConfig.get(); - config.postProcessing.filteringOrder = {RawStereoDepthConfig::PostProcessing::Filter::DECIMATION, RawStereoDepthConfig::PostProcessing::Filter::MEDIAN, RawStereoDepthConfig::PostProcessing::Filter::SPECKLE,