public FilterForm(EnumROI eye) { InitializeComponent(); _filterManager = (eye == EnumROI.LeftEye) ? DefaultSettings.DefaultFilterSettings(EnumROI.LeftEye) : (eye == EnumROI.Face) ? DefaultSettings.DefaultFilterSettings(EnumROI.Face) : DefaultSettings.DefaultFilterSettings(EnumROI.RightEye); _fcEventArgs.eye = eye; tBarThres.SetRange(0, 255); tBarThres.Value = _filterManager.EtFilterForImage.ThresHoldValue; lblThresValue.Text = _filterManager.EtFilterForImage.ThresHoldValue.ToString(); tBarBrightness.SetRange(-50, 50); tBarBrightness.Value = _filterManager.EtFilterForImage.BrightnessValue; lblBrithValue.Text = _filterManager.EtFilterForImage.BrightnessValue.ToString(); tBarCons.SetRange(3, 25); tBarCons.Value = _filterManager.EtFilterForImage.ConservativeKernelSizeValue; lblConsValue.Text = _filterManager.EtFilterForImage.ConservativeKernelSizeValue.ToString(); tBarEucBlue.SetRange(0, 255); tBarEucBlue.Value = _filterManager.EtFilterForImage.EucBlue; lblEucBlueValue.Text = _filterManager.EtFilterForImage.EucBlue.ToString(); lblColor.BackColor = Color.FromArgb(255, _filterManager.EtFilterForImage.EucRed, _filterManager.EtFilterForImage.EucGreen, _filterManager.EtFilterForImage.EucBlue); tBarEucGreen.SetRange(0, 255); tBarEucGreen.Value = _filterManager.EtFilterForImage.EucGreen; lblEucGreenValue.Text = _filterManager.EtFilterForImage.EucGreen.ToString(); tBarEucRa.SetRange(0, 100); tBarEucRa.Value = _filterManager.EtFilterForImage.EuclidianColorRadius; lblEucRadValue.Text = _filterManager.EtFilterForImage.EuclidianColorRadius.ToString(); tBarEucRed.SetRange(0, 255); tBarEucRed.Value = _filterManager.EtFilterForImage.EucRed; lblEucValue.Text = _filterManager.EtFilterForImage.EucRed.ToString(); tBarGrayCb.SetRange(0, 4000); tBarGrayCb.Value = (int)_filterManager.EtFilterForImage.GrayScaleCb * 1000; lblGrayCbValue.Text = _filterManager.EtFilterForImage.GrayScaleCb.ToString(); tBarGrayCb.Text = "test"; tBarGrayCg.SetRange(0, 4000); tBarGrayCg.Value = (int)_filterManager.EtFilterForImage.GrayScaleCg * 1000; lblGrayCgValue.Text = _filterManager.EtFilterForImage.GrayScaleCg.ToString(); tBarGrayCr.SetRange(0, 4000); tBarGrayCr.Value = (int)_filterManager.EtFilterForImage.GrayScaleCg * 1000; lblGrayCrValue.Text = _filterManager.EtFilterForImage.GrayScaleCr.ToString(); tBarGamma.SetRange(-10, 40); tBarGamma.Value = (int)_filterManager.EtFilterForImage.GammaCorrectionValue; lblGammaValue.Text = _filterManager.EtFilterForImage.GammaCorrectionValue.ToString(); tBarGausKernel.SetRange(3, 23); tBarGausKernel.Value = _filterManager.EtFilterForImage.GaussionKernel; lblGausKernel.Text = _filterManager.EtFilterForImage.GaussionKernel.ToString(); tBarGausValue.SetRange(0, 50); tBarGausValue.Value = (int)_filterManager.EtFilterForImage.GaussionWert * 10; lblGausValue.Text = _filterManager.EtFilterForImage.GaussionKernel.ToString(); cbFilterGrayScale.Checked = _filterManager.EtFilterForImage.IsFilterGrayScale; checkBox1.Checked = _filterManager.EtFilterForImage.IsGrayCommon; cbInvert.Checked = _filterManager.EtFilterForImage.IsFilterInvert; cbThres.Checked = _filterManager.EtFilterForImage.IsThreshold; cbGamma.Checked = _filterManager.EtFilterForImage.IsGammaCorrection; cbBrightness.Checked = _filterManager.EtFilterForImage.IsBrightnessCorrection; cbEuc.Checked = _filterManager.EtFilterForImage.IsEuclidianColorFilter; cbChannelExtr.Checked = _filterManager.EtFilterForImage.IsExtraChannelExtraction; cbGaus.Checked = _filterManager.EtFilterForImage.IsFilterGaussianBlur; cbFillOutSide.Checked = _filterManager.EtFilterForImage.EuclidianIsFillOutsideColor; cbCons.Checked = _filterManager.EtFilterForImage.IsNoiseSmooth; cbSharpen.Checked = _filterManager.EtFilterForImage.IsSharpen; cbSISThreshold.Checked = _filterManager.EtFilterForImage.IsAdaptiveThreshold; cbConvProcessAlpha.Checked = _filterManager.EtFilterForImage.ConIsProcessAlpha; cbConvDynamic.Checked = _filterManager.EtFilterForImage.ConvIsDynamicDivisorForEdges; cbContour.Checked = _filterManager.EtFilterForEdgeDetection.IsFilterContour; cbCanny.Checked = _filterManager.EtFilterForEdgeDetection.IsCanny; cbSobel.Checked = _filterManager.EtFilterForEdgeDetection.IsSobelEdgedetect; cbFASTSuppress.Checked = _filterManager.EtFilterForEdgeDetection.FASTSuppress; cbFastCornerDetector.Checked = _filterManager.EtFilterForEdgeDetection.IsFastCornerDetection; cbHarrisCornerDetector.Checked = _filterManager.EtFilterForEdgeDetection.IsCornerDetectionHarris; cbSolbelScaleIntens.Checked = _filterManager.EtFilterForEdgeDetection.SobelScaleIntensity; if (_filterManager.EtFilterForEdgeDetection.HarrisMesure == HarrisCornerMeasure.Noble) { cbHarrisIsNoble.Checked = true; } else { cbHarrisIsNoble.Checked = false; } tBarHarrisK.SetRange(0, 4000); tBarHarrisK.Value = (int)_filterManager.EtFilterForEdgeDetection.HarrisKValue * 1000; lblHarrisKValue.Text = _filterManager.EtFilterForEdgeDetection.HarrisKValue.ToString(); tBarHarrisSigma.SetRange(0, 4000); tBarHarrisSigma.Value = (int)_filterManager.EtFilterForEdgeDetection.HarrisKValue * 1000; lblHarrisSigmaValue.Text = _filterManager.EtFilterForEdgeDetection.HarrisKValue.ToString(); tBarHarrisThres.SetRange(0, 10000); tBarHarrisThres.Value = (int)_filterManager.EtFilterForEdgeDetection.HarrisThreshold * 100; lblHarrisThresValue.Text = _filterManager.EtFilterForEdgeDetection.HarrisThreshold.ToString(); tBarHarristBar.SetRange(0, 10); tBarHarristBar.Value = _filterManager.EtFilterForEdgeDetection.HarrisSupression; lblHarrisSupressValue.Text = _filterManager.EtFilterForEdgeDetection.HarrisSupression.ToString(); tBarContourKernel.SetRange(0, 30); tBarContourKernel.Value = _filterManager.EtFilterForEdgeDetection.ContourKernelForPeaks; lblContourKernel.Text = _filterManager.EtFilterForEdgeDetection.ContourKernelForPeaks.ToString(); tBarContourSupression.SetRange(0, 50); tBarContourSupression.Value = _filterManager.EtFilterForEdgeDetection.ContourSupressionForPeaks; lblContourSuppresion.Text = _filterManager.EtFilterForEdgeDetection.ContourSupressionForPeaks.ToString(); tBarContourThreshold.SetRange(0, 255); tBarContourThreshold.Value = _filterManager.EtFilterForEdgeDetection.ContourThreshold; lblContourThres.Text = _filterManager.EtFilterForEdgeDetection.ContourThreshold.ToString(); tbContourDRangeMin.Text = _filterManager.EtFilterForEdgeDetection.ContourThetaForPeaks.Min.ToString(); tbContourDRangeMax.Text = _filterManager.EtFilterForEdgeDetection.ContourThetaForPeaks.Max.ToString(); tBarFASTThres.SetRange(0, 255); tBarFASTThres.Value = _filterManager.EtFilterForEdgeDetection.FASTThreshold; lblFASTGetValueAvr.Text = _filterManager.EtFilterForEdgeDetection.FASTThreshold.ToString(); tBarConvThres.SetRange(0, 255); tBarConvThres.Value = _filterManager.EtFilterForImage.ConvThreshold; lblConvValue.Text = _filterManager.EtFilterForImage.ConvThreshold.ToString(); tBarCanGaus.SetRange(0, 50); tBarCanGaus.Value = _filterManager.EtFilterForEdgeDetection.CannyGaussianSize; lblCanGausValue.Text = _filterManager.EtFilterForEdgeDetection.CannyGaussianSize.ToString(); tBarCanHThres.SetRange(0, 255); tBarCanHThres.Value = _filterManager.EtFilterForEdgeDetection.CannyHighThreshold; lblCanHThresValue.Text = _filterManager.EtFilterForEdgeDetection.CannyHighThreshold.ToString(); tBarCanLThres.SetRange(0, 255); tBarCanLThres.Value = _filterManager.EtFilterForEdgeDetection.CannyLowThreshold; lblCanLThresValue.Text = _filterManager.EtFilterForEdgeDetection.CannyLowThreshold.ToString(); tBarCanSig.SetRange(0, 15); tBarCanSig.Value = _filterManager.EtFilterForEdgeDetection.CannySigma; lblCanSigmaValue.Text = _filterManager.EtFilterForEdgeDetection.CannySigma.ToString(); tBarSURFOctaves.SetRange(0, 10); tBarSURFOctaves.Value = _filterManager.EtFilterForEdgeDetection.SURFOctaves; lblSURFOctave.Text = _filterManager.EtFilterForEdgeDetection.SURFOctaves.ToString(); tBarSURFStep.SetRange(0, 10); tBarSURFStep.Value = _filterManager.EtFilterForEdgeDetection.SURFStep; lblSURFStep.Text = _filterManager.EtFilterForEdgeDetection.SURFStep.ToString(); tBarSURFThres.SetRange(0, 100); tBarSURFThres.Value = (int)_filterManager.EtFilterForEdgeDetection.SURFThres * 100000; lblSURFThres.Text = _filterManager.EtFilterForEdgeDetection.SURFThres.ToString(); cbSURFCompute.Checked = _filterManager.EtFilterForEdgeDetection.SURFIsOrientation; cbSURF.Checked = _filterManager.EtFilterForEdgeDetection.IsSURFEdge; rbSURFDTExtended.Checked = true; tBarGaborSize.SetRange(0, 10); tBarGaborSize.Value = (int)_filterManager.EtFilterForEdgeDetection.GABORSize; lblGaborSize.Text = _filterManager.EtFilterForEdgeDetection.GABORSize.ToString(); tBarGaborGamma.SetRange(0, 100); tBarGaborGamma.Value = (int)_filterManager.EtFilterForEdgeDetection.GABORGamma * 100; lblGaborGamma.Text = _filterManager.EtFilterForEdgeDetection.GABORGamma.ToString(); tBarGaborLambda.SetRange(0, 100); tBarGaborLambda.Value = (int)_filterManager.EtFilterForEdgeDetection.GABORLambda * 10; lblGaborLambda.Text = _filterManager.EtFilterForEdgeDetection.GABORLambda.ToString(); tBarGaborSigma.SetRange(0, 100); tBarGaborSigma.Value = (int)_filterManager.EtFilterForEdgeDetection.GABORLambda * 10; lblGaborSigma.Text = _filterManager.EtFilterForEdgeDetection.GABORLambda.ToString(); tBarGaborTheta.SetRange(0, 100); tBarGaborTheta.Value = (int)_filterManager.EtFilterForEdgeDetection.GABORTheta * 100; lblGaborTheta.Text = _filterManager.EtFilterForEdgeDetection.GABORTheta.ToString(); cbGabor.Checked = _filterManager.EtFilterForEdgeDetection.IsGaborFilter; }