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);
}
Aggregations