Example #1
0
        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();
        }
Example #2
0
 private void menuSettingsEDMCanny_Click(object sender, EventArgs e)
 {
     _edgeDetector    = new CannyEdgeDetector();
     _detectionMethod = TDetectionMethod.CANNY;
     cameraWindow.Invalidate();
 }
Example #3
0
 private void menuSettingsEDMSobel_Click(object sender, EventArgs e)
 {
     _edgeDetector    = new SobelEdgeDetector();
     _detectionMethod = TDetectionMethod.SOBEL;
     cameraWindow.Invalidate();
 }
Example #4
0
 private void menuSettingsEDMDifference_Click(object sender, EventArgs e)
 {
     _edgeDetector    = new DifferenceEdgeDetector();
     _detectionMethod = TDetectionMethod.DIFFERENCE;
     cameraWindow.Invalidate();
 }
Example #5
0
 private void menuSettingsEDMHomogenity_Click(object sender, EventArgs e)
 {
     _edgeDetector    = new HomogenityEdgeDetector();
     _detectionMethod = TDetectionMethod.HOMOGENITY;
     cameraWindow.Invalidate();
 }
Example #6
0
 private void menuSettingsEDMNone_Click(object sender, EventArgs e)
 {
     _edgeDetector    = null;
     _detectionMethod = TDetectionMethod.NONE;
 }