public CMainForm() { InitializeComponent(); CSettings.APPDIR = Directory.GetCurrentDirectory(); _inputSource = new CInputSource(cameraWindow); _inputSource.postRenderingEvent = new PostRendering(postrendering); _inputSource.preRenderingEvent = new PreRendering(prerendering); _edgeDetector = _edgeDetector = new HomogenityEdgeDetector(); _fpsTimer.Interval = 250; _fpsTimer.Tick += new EventHandler(_fpsTimer_Tick); _pdmPath = CSettings.APPDIR + "\\last.pdm"; _asmEngine = new CActiveShapeModel(_pdmPath); _asmEngine.detectionLimit = 10; _iterateEvery = 1; _iterationTimer.Interval = 100; _iterationTimer.Tick += new EventHandler(_iterationTimer_Tick); loadSetting(); }
private void menuSettingsEDMCanny_Click(object sender, EventArgs e) { _edgeDetector = new CannyEdgeDetector(); _detectionMethod = TDetectionMethod.CANNY; cameraWindow.Invalidate(); }
private void menuSettingsEDMSobel_Click(object sender, EventArgs e) { _edgeDetector = new SobelEdgeDetector(); _detectionMethod = TDetectionMethod.SOBEL; cameraWindow.Invalidate(); }
private void menuSettingsEDMDifference_Click(object sender, EventArgs e) { _edgeDetector = new DifferenceEdgeDetector(); _detectionMethod = TDetectionMethod.DIFFERENCE; cameraWindow.Invalidate(); }
private void menuSettingsEDMHomogenity_Click(object sender, EventArgs e) { _edgeDetector = new HomogenityEdgeDetector(); _detectionMethod = TDetectionMethod.HOMOGENITY; cameraWindow.Invalidate(); }
private void menuSettingsEDMNone_Click(object sender, EventArgs e) { _edgeDetector = null; _detectionMethod = TDetectionMethod.NONE; }