02-09-2010 01:36 PM
I have the following task: I have an image and I need to find defects in that image. I have my filtering set up and everything so I am comfortable with the quality of inspection, but I need to display it in such a way so the user can see that it's working. The best way I can think of to do this is to overlay the binary image showing defect areas in red on top of the greyscale image of the image before processing.
Here's the problem: I can't figure out how to take my binary image and overlay it on the greyscale image so that the defects come out in some color, not white.
Any ideas?
Solved! Go to Solution.
02-10-2010 06:40 PM
02-10-2010 07:06 PM
This looks like it works! Here's my code:
CWIMAQImage Output = new CWIMAQImage();
Output.SetSize(ThresholdImage.Width, ThresholdImage.Height);
axCWIMAQVision1.ReplaceColorPlanes(NullImage, test, ThresholdImage, System.Type.Missing, System.Type.Missing, CWIMAQColorFormats.cwimaqColorFormatRGB);
ThresholdImage is the output from my threshold operation.
Thanks!
02-11-2010 10:10 AM
06-30-2011 03:28 PM
I'm looking to do something very similar. Could you post your .vi file? I don't really understand how to read the code you posted.
Thanks,
-Aaron
01-30-2013 05:31 AM
i am also looking for the same as above mentioned overlay (red) on grayscale image to highlight defects but in labview not .net
is it possible ??
01-31-2013 09:51 AM
The method described in the solution for this thread works in LabVIEW. He named the VI's to use.