Skip to content

Commit

Permalink
Remove HIGH_ACCURACY2
Browse files Browse the repository at this point in the history
  • Loading branch information
SzabolcsGergely committed Nov 18, 2024
1 parent b3a778f commit 1c9229b
Showing 1 changed file with 0 additions and 39 deletions.
39 changes: 0 additions & 39 deletions src/pipeline/node/StereoDepth.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 1c9229b

Please sign in to comment.