LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Image and Graph in a same display

Solved!
Go to solution

I acquire an image of a laser beam from a camera and find the elliptical fit for the image. Now I have a seperate Image out from the camera and a XY graph which gives the elliptical fit for my image. I would like to place my elliptical fit into the image. Since both are different outputs, mixed graphs is not workinf for my application. What will be the best method to merge these two outputs and show as a single output display.

 

thanks

0 Kudos
Message 1 of 7
(3,389 Views)

You can use the PlotImages property of graphs to draw on the graph. Open the Example Finder (Help -> Find Examples), and search for "graph". Open the example called "Graph Plot Area Images". This is a simple example that draws circles, but you can draw whatever you want.

 

EDIT: There's also the "Plot Images" example.

Message Edited by smercurio_fc on 10-24-2008 09:27 AM
Message 2 of 7
(3,383 Views)
Solution
Accepted by topic author intensity
Simple example, in 8.0.
0 Kudos
Message 3 of 7
(3,377 Views)
Thanks for the reply. But my image out is a 16bit image. it is not allowing me to save and plot
0 Kudos
Message 4 of 7
(3,369 Views)
I'm not sure I understand what you mean. Save and plot what?
0 Kudos
Message 5 of 7
(3,364 Views)

I want a 16bit grayscale image to be plotted in my XY Graph. As you have mentioned in your example program it allows me to play with the properties of my XY graph. But the actual image that has to be appended to my graph is a 16bit grayscale image which I acquire from my camera. I tried to save my last grabbed image(that from the camera) to a PNG file. It does pops up a save window to save my image. But at the end it says the image is not a valid image and avoids me from saving. But thanks for the help. I understood how to do it now. Just that if I solve how to save my image I guess I can do it the way as you have mentioned. Thanks for the reply once again. This helped me in solving my problem..

0 Kudos
Message 6 of 7
(3,359 Views)
16-bit is not supported with LabVIEW's Write PNG File function (or any of the other ones for that matter). You would need to convert the 16-bit grayscale to 24-bit. See here for a possible LabVIEW solution.
0 Kudos
Message 7 of 7
(3,355 Views)