Exemplo n.º 1
0
        private void btnReset_Click(object sender, EventArgs e)
        {
            switch (lbMethods.SelectedIndex)
            {
            case (int)Methods.none:
                break;

            case (int)Methods.Susan:
                SusanCornerProperties sp = ControlPanel.Controls[0] as SusanCornerProperties;
                sp.SetDefaults();
                break;

            case (int)Methods.Moravec:
                MoravecCornerProperties mp = ControlPanel.Controls[0] as MoravecCornerProperties;
                mp.SetDefaults();
                break;

            case (int)Methods.Harris:
                HarrisCornerProperties hc = ControlPanel.Controls[0] as HarrisCornerProperties;
                hc.SetDefaults();
                break;

            case (int)Methods.Fast:
                FASTCornerProperties fc = ControlPanel.Controls[0] as FASTCornerProperties;
                fc.SetDefaults();
                break;

            default:
                break;
            }
        }
Exemplo n.º 2
0
        private void btnReset_Click(object sender, EventArgs e)
        {
            switch (DetectorType)
            {
            case "SUSAN":
                SusanCornerProperties sp = ControlPanel.Controls[0] as SusanCornerProperties;
                sp.SetDefaults();
                break;

            case "Harris":
                HarrisCornerProperties hc = ControlPanel.Controls[0] as HarrisCornerProperties;
                hc.SetDefaults();
                break;

            case "Moravec":
                MoravecCornerProperties mp = ControlPanel.Controls[0] as MoravecCornerProperties;
                mp.SetDefaults();
                break;

            case "FAST":
                FASTCornerProperties fc = ControlPanel.Controls[0] as FASTCornerProperties;
                fc.SetDefaults();
                break;

            default:
                break;
            }
        }