コード例 #1
0
        public Form1()
        {
            InitializeComponent();

            _controller = new LaserController();

            processor = new FrameProcessor(_controller);
        }
コード例 #2
0
        public Form1()
        {
            InitializeComponent();

            _controller = new LaserController();

            processor = new FrameProcessor(_controller);
        }
コード例 #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;
        }
コード例 #4
0
        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;
        }
コード例 #5
0
        // 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();
        }