LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

affix an image to specific coordinates of a graph

I have a large satellite picture that I want to graph GPS waypoints on.  I can successfully use the image as the background for the graph, however the image is so big that it takes up more than the whole screen.  I know the GPS boundaries of the image, which are fixed, so I use them to set the graph axes. 
 
This is what I'm doing now, and how I currently understand it:
 
I am using the Plot Image.Middle Property to append the picture to the graph.  From this, I can successfully plot points on top of the image.  However, as far as I understand it, when you use this method, no matter what you change the axes values to, the image will always be plotted with the upper left corner of the image starting at the upper left corner of the graph.
 
This is what I want to do:
 
What I want to do is be able to affix the image to the correct set of GPS coordinate boundaries, and then, by changing the graph scale, move around the image to only the coordinates of interest at the time.  Basically, I want to be able to use my graph axes to move my ROI.  (Imagine passing back and forth over a large map with a magnifying glass... the whole map is there, but you only see the area covered by the magnifying glass... in this case, I want to use the graph as the "magnifying glass" and the graph axes to specify the position of the "magnifying glass").  Eventually the goal would be to have the graph set to autoscale, so whenever I graph a particular GPS location, the axes would automatically adjust to frame the area surrounding the point being graphed, and the correct portion of the satellite image would be shown. 
 
Does that make sense?  It seems a little difficult to explain.
 
Any help would be appreciated, and let me know if I need to explain anything better.
 
Thanks!
 
LMEE
0 Kudos
Message 1 of 4
(3,101 Views)

btw, I'm using LabVIEW 8.0

Thanks!

LMEE

0 Kudos
Message 2 of 4
(3,093 Views)
Have you thought about using a plain picture indicator instead?
 
Just use your image as background and set the picture origin and zoom factor via property nodes to pan and zoom.
 
Now use simple image draw commands (move pen, draw lines, draw multiple lines, draw text at point, etc.) to place your waypoints and other decorations on the image.  🙂
0 Kudos
Message 3 of 4
(3,088 Views)

I've tried using a Picture Control, with the Origin and Zoom Factor set accordingly, and using that as the input to the Plot Images.Middle Property.  However, I still have the same problem:  No matter what origin and zoom factor I set, it plots the image anchored in the upper left corner of the graph, with a zoom factor of 1.  I can see within the picture indicator that it is correctly positioning and zooming the image, but when it gets to the graph, for some reason these changes are discarded.  I guess what I might have to end up doing is using a transparent graph with the Picture Control, but I was hoping that there was some way to accomplish this and still be able to utilize the Plot Image.Middle Property.

Thanks!

LMEE

0 Kudos
Message 4 of 4
(3,072 Views)