private void ResolveActivePanels(BackgroundSubtractorType backgroundSubtractorType)
        {
            DisablePanels();
            switch (backgroundSubtractorType)
            {
            case BackgroundSubtractorType.MOG:
                mogPanel.Enabled = true;
                break;

            case BackgroundSubtractorType.KNN:
                knnPanel.Enabled = true;
                break;

            case BackgroundSubtractorType.LSBP:
                lsbpPanel.Enabled = true;
                break;

            case BackgroundSubtractorType.GMG:
                gmgPanel.Enabled = true;
                break;

            case BackgroundSubtractorType.MOG2:
            default:
                mog2Panel.Enabled = true;
                break;
            }
        }
 private void GMG_RB_CheckedChanged(object sender, EventArgs e)
 {
     if (GMG_RB.Checked)
     {
         backgroundSubtractorType = BackgroundSubtractorType.GMG;
         ResolveActivePanels(BackgroundSubtractorType.GMG);
     }
 }