Search in sources :

Example 1 with ControlPanelDisparityDense

use of boofcv.gui.controls.ControlPanelDisparityDense in project BoofCV by lessthanoptimal.

the class DemoThreeViewControls method addDisparityControls.

private void addDisparityControls() {
    ConfigDisparityBMBest5 configBM = new ConfigDisparityBMBest5();
    ConfigDisparitySGM configSGM = new ConfigDisparitySGM();
    ConfigSpeckleFilter configSpeckle = new ConfigSpeckleFilter();
    configBM.disparityMin = configSGM.disparityMin = 0;
    configBM.disparityRange = configSGM.disparityRange = 200;
    configBM.regionRadiusX = configBM.regionRadiusY = 4;
    configBM.errorType = DisparityError.CENSUS;
    configBM.configCensus.variant = CensusVariants.BLOCK_7_7;
    controlDisparity = new ControlPanelDisparityDense(configBM, configSGM, configSpeckle, GrayU8.class);
    controlDisparity.setListener(this::handleStereoChanged);
}
Also used : ConfigDisparityBMBest5(boofcv.factory.disparity.ConfigDisparityBMBest5) ControlPanelDisparityDense(boofcv.gui.controls.ControlPanelDisparityDense) ConfigDisparitySGM(boofcv.factory.disparity.ConfigDisparitySGM) GrayU8(boofcv.struct.image.GrayU8) ConfigSpeckleFilter(boofcv.abst.disparity.ConfigSpeckleFilter)

Aggregations

ConfigSpeckleFilter (boofcv.abst.disparity.ConfigSpeckleFilter)1 ConfigDisparityBMBest5 (boofcv.factory.disparity.ConfigDisparityBMBest5)1 ConfigDisparitySGM (boofcv.factory.disparity.ConfigDisparitySGM)1 ControlPanelDisparityDense (boofcv.gui.controls.ControlPanelDisparityDense)1 GrayU8 (boofcv.struct.image.GrayU8)1