Beispiel #1
0
        public Form1()
        {
            InitializeComponent();

            _controller = new LaserController();

            processor = new FrameProcessor(_controller);
        }
        public Form1()
        {
            InitializeComponent();

            _controller = new LaserController();

            processor = new FrameProcessor(_controller);
        }
Beispiel #3
0
        public FrameProcessor(LaserController controller)
        {
            _controller = controller;
            var min_size_val = 4;

            bc             = new BlobCounter();
            bc.FilterBlobs = true;
            bc.MinHeight   = min_size_val;
            bc.MinWidth    = min_size_val;
            bc.MaxHeight   = min_size_val + 50;
            bc.MaxWidth    = min_size_val + 50;
        }
        public FrameProcessor(LaserController controller)
        {
            _controller = controller;
            var min_size_val = 8;

            bc = new BlobCounter();
            bc.FilterBlobs = true;
            bc.MinHeight = min_size_val;
            bc.MinWidth = min_size_val;
            bc.MaxHeight = min_size_val + 50;
            bc.MaxWidth = min_size_val + 50;
        }
        // set color ranges to keep
        public FrameProcessor(LaserController controller)
        {
            _controller = controller;
            var min_size_val = 4;

            bc = new BlobCounter();
            bc.FilterBlobs = true;
            bc.MinHeight = min_size_val;
            bc.MinWidth = min_size_val;
            bc.MaxHeight = min_size_val + 50;
            bc.MaxWidth = min_size_val + 50;

            AForge.Imaging.Filters.HSLFiltering hslFilter = new AForge.Imaging.Filters.HSLFiltering();
        }