Ejemplo n.º 1
0
        public MainForm()
        {
            InitializeComponent();
            _showContrForm = new BitmapShowForm() { Text = "Contrast" };
            _showContrForm.Show();

            _showRGBForm = new BitmapShowForm() { Text = "RGB" };
            _showRGBForm.Show();

            _showdepthForm = new BitmapShowForm() { Text = "Depth (approx)" };
            _showdepthForm.Show();

            _graphForm = new ValuesGraphForm() { Text = "graph"};
            _graphForm.Show();

            _showRGBForm.pnlDisplayBitmap.MouseDown += new MouseEventHandler(pnlDisplayBitmap_MouseDown);
            _showContrForm.pnlDisplayBitmap.MouseDown += new MouseEventHandler(pnlDisplayBitmap_MouseDown);

            _showdepthForm.pnlDisplayBitmap.MouseDown += new MouseEventHandler(checkSpikes);

            btnGo.Tag = false;

            SpikeFilterTreshold = 1.8f;
            MultiResSteps = 3;
            CurveReliabilityTreshold = 0.2f;
            PreShrinkTimes = 1;
            CapHolesFilterEmisize = 10;
            StackInterDistance = 8;
            CloserPictureDistance = 100;
            BlurSigma = 1.8f;
            BlurTimes = 3;
            ShrinkContrastTimes = 5;
        }
Ejemplo n.º 2
0
        public MainForm(bool useCl)
        {
            InitializeComponent();
            _showContrForm = new BitmapShowForm()
            {
                Text = "Contrast"
            };
            _showContrForm.Show();

            _showRGBForm = new BitmapShowForm()
            {
                Text = "RGB"
            };
            _showRGBForm.Show();

            _showdepthForm = new BitmapShowForm()
            {
                Text = "Depth (approx)"
            };
            _showdepthForm.Show();

            _graphForm = new ValuesGraphForm()
            {
                Text = "graph"
            };
            _graphForm.Show();

            _showRGBForm.pnlDisplayBitmap.MouseDown   += new MouseEventHandler(pnlDisplayBitmap_MouseDown);
            _showContrForm.pnlDisplayBitmap.MouseDown += new MouseEventHandler(pnlDisplayBitmap_MouseDown);

            _showdepthForm.pnlDisplayBitmap.MouseDown += new MouseEventHandler(checkSpikes);

            btnGo.Tag = false;

            SpikeFilterTreshold      = 1.8f;
            MultiResSteps            = 3;
            CurveReliabilityTreshold = 0.2f;
            PreShrinkTimes           = 2;
            CapHolesFilterEmisize    = 5;
            StackInterDistance       = 8;
            CloserPictureDistance    = 100;
            BlurSigma           = 1.8f;
            BlurTimes           = 1;
            ShrinkContrastTimes = 3;

            _useCl = useCl;
        }