Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

add a grid to a bmp image

Hi,

I'd like to add a grid over a bmp file (I use a firewire Bayer camera to grab a laser beam profile and to save it as bmp to my harddisk) but I haven't yet found a way to do it.

Does a way to do this exist? I use Labview 7 and NI-IMAQ 1394.

thank you for your help
0 Kudos
Message 1 of 5
(3,713 Views)
Hi,
you can use the IMAQ Overlay Line in a for loop to create each line of the grid and then save it.
Best Regards
AmbuA
0 Kudos
Message 2 of 5
(3,694 Views)
Hi,

I tried to overlay just a line, for now and to understand, but I cannot see any line in the output image.

I think the problem is the line's colour as i cannot set it; in detail:


I've an RGB (provided by a bayer filter) image with a black background (90% of the image) and a red foreground and I tried to set the white colour providing, as control, 255255255, as you can see from the attachment, but this didn't work.



What do you think about?
thank you again
0 Kudos
Message 3 of 5
(3,683 Views)
Mal,

You will need to use the Merge Overlay.vi before saving the bmp in order to have the overlay visible in your image. I have attached a screenshot of a VI that saves a bmp with a horizontal line across the center.

Nipun
Message 4 of 5
(3,663 Views)
The white color, expressed as a decimal number is 16777215..(=$FFFFFF)
255255255 correspond to $F36E2D7 which is undefined and is interpreted as black.
CC
Chilly Charly    (aka CC)
0 Kudos
Message 5 of 5
(3,650 Views)