LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to convert pixel Measurment values to real world cordinate systems ( 2D & 3D)

Hello  All

 

I am very new to Image processing and I stuck in a position where i have to convert the pixel measurement value in the real world X,Y,Z  coordinates, and after then that value can be send to the robot arm.

 

For more understanding i have attached the image of my VI and also the Labview VI, you can also suggest if something more is missing then what i already did

 

 

 

Cam_Pixel_value.jpg

 

 

I need help to solve this problem, as i already mentioned i am very new to image processing so answer in a simple explanations would be appreciated

 

Thanks in Advance

 

0 Kudos
Message 1 of 4
(3,954 Views)

Hello,

 

I would like to help you with this topic.

I have one question: have you tried to run the VI with highlight mode or with probes to see what happens step by step?

 

Concerning the broken wire, as far as I can see it, its just the dimensions of the output array which does not fit.

The data is an array of the dimension 2 but you connected an array with dimension 1.

So LabVIEW will not run the VI, I posted a screenshot with the new Array in the BD. As you can see, the wire now has two lines instead of one.

You can always add suitable FP indicators by right-clicking -> create -> indicator.

 

Please let me know if this is useful for you.

I am looking forward to hearing from you!


Have a nice day,

Christopher W.
Intern Application Engineering | NI Certified LabVIEW Associate Developer (CLAD) | NI Germany
0 Kudos
Message 2 of 4
(3,908 Views)

Hi Christopher

 

Thanks for replying me...

 

I can see the mistake what i made and now the program is running properly according to your solution of using 2 dimension Array

 

Now the next step that i want to do is converting this Pixel value of X & Y in to real world co-ordinate system(2D)

 

Can you give me the idea or any suggestion that how to do it?

 

Or you can suggest me a good tutorial if possible

 


Once again thank you for your reply..Eave a nice day

 

Regards

Ketul

 

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

Good morning Ketul,

 

E.g. this could be useful:

 

http://zone.ni.com/reference/en-XX/help/370281U-01/imaqvision/imaq_convert_pixel_to_real_world/

 

Here it is a cluster as input and output, but you can convert an array into a cluster.

 

Best regards,

Christopher W.
Intern Application Engineering | NI Certified LabVIEW Associate Developer (CLAD) | NI Germany
0 Kudos
Message 4 of 4
(3,871 Views)