Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

image callibration

i want to find the cordinates in image when i click anywhere on image. this is to be done so that i can callibrate image.
this is to be done without using wind tools. also if i click number points i want to find the distance between the mouse clicked points.
please reply as early as possible.

Tushar Jambhekar
tushar@jambhekar.com

Jambhekar Automation Solutions
LabVIEW Consultancy, LabVIEW Training
Rent a LabVIEW Developer, My Blog

0 Kudos
Message 1 of 2
(2,914 Views)
Hi Tushar,

Thank you for using our discussion forums.  Could you please clarify what you mean by "windtools"?  I am assuming you are using LabVIEW.  If so, you can use an event structure to detect a mouse click and its coordinates.  Since the position is relative to the VI, you will need to find the top left corner of the image (using position properties) and subtract. 

Using image control, there is another discussion forum where a simple VI is used to do what I believe you are trying to code called "Mouse_Move_in_Image_Simple".  http://forums.ni.com/ni/board/message?board.id=200&message.id=3926&requireLogin=False

As for the distance calibration, you will need to code that according to your own system.  Basically, you can record the positions into an array and programmatically obtain the distance from there. 

If you would like to calibrate distance in pixel to real world measurement units, there is another discussion forum regarding this issue http://forums.ni.com/ni/board/message?board.id=200&message.id=2567&requireLogin=False. 

Hopefully this will give you a good start. 

Regards,

Vu Doan
Applications Engineer
National Instruments

0 Kudos
Message 2 of 2
(2,882 Views)