public Form1() { InitializeComponent(); _controller = new LaserController(); processor = new FrameProcessor(_controller); }
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(); }