private void thresholdSelector_ColourCheckTick(object sender, AutoThresholdResult e) { // Inform the server of what we are doing if (e.DimensionValue % 5 == 0) { e.RoiOutput.CapturedImage = GetBgr(e.RoiOutput.ThresholdImage); ProcessOutputPipeline(e.RoiOutput); } }
private void ThresholdSelector_ColourCheckTick(object sender, AutoThresholdResult e) { if (e.FullOutput == null || e.FullOutput.ThresholdImage == null) { return; } var processed = e.FullOutput.ThresholdImage; var enhanced = processed.Mat.ToImage <Bgr, byte>(); enhanced.Draw(_readyRectangle, new Bgr(Color.Blue)); imageBoxFiltered.Image = enhanced; }