public FormGroupMatch() { InitializeComponent(); debugImage = new Bgr<byte>[pictureBox.Height, pictureBox.Width]; var detections = getDetections(); drawDetections(detections, Bgr<byte>.Red, 1); groupMatching = new RectangleClustering(); var clusters = groupMatching.Group(detections); drawDetections(clusters.Select(x => x.Representative), Bgr<byte>.Green, 3); pictureBox.Image = debugImage.ToBitmap(); }
public FormGroupMatch() { InitializeComponent(); debugImage = new Image <Bgr, byte>(pictureBox.Size.ToSize()); var detections = getDetections(); drawDetections(detections, Bgr8.Red, 1); groupMatching = new RectangleClustering(); var clusters = groupMatching.Group(detections); drawDetections(clusters.Select(x => x.Representative), Bgr8.Green, 3); pictureBox.Image = debugImage.ToBitmap(); }
public FormGroupMatch() { InitializeComponent(); debugImage = new Bgr <byte> [pictureBox.Height, pictureBox.Width]; var detections = getDetections(); drawDetections(detections, Bgr <byte> .Red, 1); groupMatching = new RectangleClustering(); var clusters = groupMatching.Group(detections); drawDetections(clusters.Select(x => x.Representative), Bgr <byte> .Green, 3); pictureBox.Image = debugImage.ToBitmap(); }