LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How can i draw a grid on an image?

Hello!!!
Could someone tell me how to draw a grid on a displayed image? Thanks
0 Kudos
Message 1 of 8
(7,147 Views)
It depends on how you are displaying the image. If it is an IMAQ Vision image and you are displaying it inside an Image Control or an IMAQ Image Window, you can use "IMAQ Overlay Rectangle.vi" in the Vision >> Vision Utilities >> Overlay palette.

If you are using a Picture control, you can use "Draw Rect.vi" in the Graphics & Sound >> Picture Functions palette.

You will need to do some math based on the size of your image and the number of grid lines you would like.

Dan Press
Certified LabVIEW Architect
PrimeTest Corporation
0 Kudos
Message 2 of 8
(7,138 Views)
I'm Using an IMAQ VISION image, I'll try. Thank you.
0 Kudos
Message 3 of 8
(7,133 Views)


LeonT a écrit:
I'm Using an IMAQ VISION image, I'll try. Thank you.




Hello All,

In attached file you will found LabVIEW example that overlay a grid on an Image.

Follow the steps below to run the VI:
1. Select an image file
2. Select the spacing in pixels between grid lines
3. Select the grid line color
4. Run the VI

Hope this help.
Best Regards,

Sanaa T
National Instruments France

Sanaa T.
National Instruments France

Message 4 of 8
(7,106 Views)
Hello !!
Thank you for answer. But I'm Labview 7.0. Could put the vi in this version? Thanks.
0 Kudos
Message 5 of 8
(7,096 Views)
LeonT;

LabVIEW includes an example that includes VIs to create a grid and cartesian axes. The example is called "Artificial Strip Chart.vi" under the Advance->Picture Control examples. The VIs are "Draw Cartesian Axes.vi" and "Draw Grid.vi".

Regards;
Enrique
www.vartortech.com
0 Kudos
Message 6 of 8
(7,085 Views)
Hello,
In Labview 7.0 I don't find the example as you say in Advance -> Picture Control example
0 Kudos
Message 7 of 8
(7,080 Views)


LeonT a écrit:
Hello !!
Thank you for answer. But I'm Labview 7.0. Could put the vi in this version? Thanks.




Hello Leon,

You can find, in the attached file, the VI in version 7.0 of LabVIEW.

Best Regards,

Sanaa T
National Instruments France

Sanaa T.
National Instruments France

0 Kudos
Message 8 of 8
(7,051 Views)