08-15-2008 06:01 AM
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?
08-15-2008 07:40 AM
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.
08-15-2008 08:12 AM
and what matrix property would you recommend to do this?
08-18-2008 08:06 AM
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,