07-08-2014 11:26 AM - edited 07-08-2014 11:29 AM
Hi
I'm having some issues saving an image with overlay information. I'm using IMAQ Find Circles to measure the radii of holes in a binary image. The hole data is then used with IMAQ Overlay Oval, to draw on ovals to highlight the circles detected. Works fine and the image is shown as expected in the image output on screen, pallette is set to binary. (See second image of 3, below)
When I try and save the image to PNG I just get a blank (black) image. If I use the IMAQ Merge Overlay tool, I just get the green circles on the black (see last image of 3 below). Is there something I'm missing with pallettes/merging? Any help much appreciated. Snapshot of (messy) code attached.
Solved! Go to Solution.
07-08-2014 01:52 PM
The problem is the binary image is all zeroes and ones. A normal image goes up to 255, so a value of 1 looks black.
One solution is to multiply the binary image by 255, which makes the image black and white.
Bruce
07-09-2014 01:56 AM
Thanks very much, a simple solution, makes perfect sense. Image now saving as two tone greyscale, many thanks!