LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

reading coordinates of jpeg of map

I going to load a jpeg of a map an I need labview to report the coordinates when I click on a position of the map, anybody have any Ideas

thanks
0 Kudos
Message 1 of 12
(3,154 Views)
If you are using a version of LabVIEW with events you can create an event structure that responds to the "mouse up" event and returns the coordinates. You will have to do some housekeeping to keep track of where your image is displayed and how that relates to the mouse coordinates.


Putnam Monroe
Certified LabVIEW Developer
North Shore Technology, Inc.
Putnam
Certified LabVIEW Developer

Senior Test Engineer North Shore Technology, Inc.
Currently using LV 2012-LabVIEW 2018, RT8.5


LabVIEW Champion



0 Kudos
Message 2 of 12
(3,135 Views)
If you create a property node for the picture, there is a 'mouse' property which is a cluster. That cluster contains the position cordinates.
0 Kudos
Message 3 of 12
(3,133 Views)
Nice to have somebody interested in maps.
There are three property nodes that will be usefull here :
the mouse position x, y, the origin Ox, Oy and the zoom factor Z.
The coordinates X, Y on the map, relative to the upper left corner, can be calculated using the equation :
X = Z*(x + Ox) and Y = Z*(y + Oy).
Then you'll have to determine the correspondance between X, Y and the actual geographical coordinates of the map position.
I did something like that, but the application is not yet finished.

CC
Chilly Charly    (aka CC)

         E-List Master - Kudos glutton - Press the yellow button on the left...
        
0 Kudos
Message 4 of 12
(3,126 Views)
here is another "kluged" example of one possible way. It isn't the cleanest, neatest vi I've ever made (not the worst either!)


Putnam Monroe
Putnam
Certified LabVIEW Developer

Senior Test Engineer North Shore Technology, Inc.
Currently using LV 2012-LabVIEW 2018, RT8.5


LabVIEW Champion



0 Kudos
Message 5 of 12
(3,115 Views)
sorry LV_Pro, I have 7.0, not 7.1
0 Kudos
Message 6 of 12
(3,107 Views)
here it is saved as 7.0

Putnam Monroe
Putnam
Certified LabVIEW Developer

Senior Test Engineer North Shore Technology, Inc.
Currently using LV 2012-LabVIEW 2018, RT8.5


LabVIEW Champion



0 Kudos
Message 7 of 12
(3,097 Views)
I didn't notice until I had sent it, but it is quite a bit larger in 7.0 than in 7.1, hmmm?!


PM
Putnam
Certified LabVIEW Developer

Senior Test Engineer North Shore Technology, Inc.
Currently using LV 2012-LabVIEW 2018, RT8.5


LabVIEW Champion



0 Kudos
Message 8 of 12
(3,093 Views)
Hello,

And talking about maps, I'm looking for a function where the first click on an image creates a dynamic arrow that follows the cursor to anywhere it goes on the map. The second click pans the image using the distance and direction defined by the two clicks. Any ideas?

CC: I am interested in maps too but I've been so busy with other programs lately that I even forgot to answer your email of a few months ago.

Thanks,

Marce
0 Kudos
Message 9 of 12
(3,072 Views)


Marce wrote:...CC: I am interested in maps too but I've been so busy with other programs lately that I even forgot to answer your email of a few months ago.

At least, you are still alive ! 😄 I didn't solve my orthorectification problem, but now I'm less in a hurry ! May be we could reactivate this old thread ?

CC
Chilly Charly    (aka CC)

         E-List Master - Kudos glutton - Press the yellow button on the left...
        
0 Kudos
Message 10 of 12
(3,062 Views)