Ejemplo n.º 1
0
        private void GetPropertiesAndSetModel()
        {
            var model = new StereoBlockMatchingModel()
            {
                Disparity = DisparityTrackBar.ValueMultiple16(),
                BlockSize = BlockSizeTrackBar.ValueOdd()
            };

            _stereoBlockMatching.UpdateModel(model);
        }
Ejemplo n.º 2
0
        private void GetPropertiesAndSetModel()
        {
            var model = new StereoSemiGlobalBlockMatchingModel()
            {
                Disparity          = DisparityTrackBar.ValueMultiple16(),
                BlockSize          = BlockSizeTrackBar.ValueOdd(),
                MinDispatiries     = MinDisparityTrackBar.Value,
                P1                 = P1TrackBar.Value,
                P2                 = P2TrackBar.Value,
                Disp12MaxDiff      = DispMax12DiffTrackBar.Value,
                PreFilterCap       = PreFilterCapTrackBar.Value,
                UniquenessRatio    = UniquenessRatioTrackBar.Value,
                SpeckleRange       = SpeckleRangeTrackBar.Value,
                SpeckleWindowsSize = SpeckleWindowsSizeTrackBar.Value,
                Mode               = ModeSGBM.Checked ? StereoSGBM.Mode.SGBM : StereoSGBM.Mode.HH
            };

            _stereoSemiGlobalBlockMatching.UpdateModel(model);
        }