LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

read data from picture

i would liek to read data from a picture in form of numbers,

the picture is of a light spot so the numbers are high in the centre where the spot is concentrated,

what i would like to do is get a gradient in x and y of the max point , and then plot this gradiant in an intensity graph for both x vs mm and y vs mm.

 

any tips?

0 Kudos
Message 1 of 4
(2,744 Views)

Picture to pixmap and Flatten Pixmap should get you what you want, also if you are using imaq you and use picture to array function.  You should be able to use matrix operations to generate your gradiants.

 

Paul Falkenstein
Coleman Technologies Inc.
CLA, CPI, AIA-Vision
Labview 4.0- 2013, RT, Vision, FPGA
0 Kudos
Message 2 of 4
(2,733 Views)

and what matrix property would you recommend to do this?

0 Kudos
Message 3 of 4
(2,722 Views)

Hi,

 

I believe that the gradient at any given point will be a vector of the gradient in each dimension so i would have thought that you could use the standard differential VIs and find the gradient a row at a time in the x and then the y direction.  Is this what you are after?  Im afraid that my matricies maths isn't coming back to me very well so I'm not sure if there is a function to do it with these a but none of them jumped out at me.

 

Regards,

James Mc
========
Ask me about Rust & NI Hardware
My writings are at https://www.wiresmithtech.com/devs/
0 Kudos
Message 4 of 4
(2,690 Views)