LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Drawing scale on an image

Hi
I know that you can draw a scale on a picture but how can I draw a scale on an image? I have the vision package. I don't want to just use draw text and draw objects to make a scale manually.
0 Kudos
Message 1 of 4
(3,197 Views)
> I know that you can draw a scale on a picture but how can I draw a
> scale on an image? I have the vision package. I don't want to just
> use draw text and draw objects to make a scale manually.

I am not as familiar with the recent vision and IMAQ API, but once upon
a time, I thought that you could wire any picture control data and have
it added to the image as an annotation. If this is still the case, the
picture control graphing VIs and examples have code to draw vertical,
horizontal, and radial scales. You will have to do a small amout of
diagram reading, but it should be pretty clear where the scales are
being drawn and reuse that code.

Greg McKaskle
0 Kudos
Message 2 of 4
(3,197 Views)
You can overlay the coordinate system on the image using IMAQ Find CoordSys VI. Look on page 5-27 of the IMAQ Vision for LabVIEW User Manual linked below for more information, as well as the Help file for the individual VIs.

http://digital.ni.com/manuals.nsf/webAdvsearch/FD6C94779E009AC28625698C005F71FD?OpenDocument&vid=niwc&node=132100_US

Julie S.
Applications Engineer
National Instruments
0 Kudos
Message 3 of 4
(3,197 Views)
The application in which I am developing this program for is capturing images from a CCD camera. I also have 2 linear encoders for each axis of a microscope stage to tell me the position of my image. I am using this linear encoder to give me a the scale information and thus with the draw scale function in picture I can specify the coordinates of the tick marks and give it a position value read from the encoder. I was trying to do the same thing with just the image instead of converting it to a picture, thus I was wondering if there is a draw scale function like that for the picture control vi.
0 Kudos
Message 4 of 4
(3,197 Views)