Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

line profile in Vision Builder AI 2011

Solved!
Go to solution

Hi,

I'm trying to get the grayscale line profile (0-255) for a circle of light.

But I couldn't find a fuction can do it on VBAI, the closeset function I can get is "measure intensity" which measure intensity of a region and is useless to me.

And then I found there is another function called vision assistant, which I can click the "edit" buttom to open a new window where there are extra features.

I do found there is a function called "line profile".

 

But I had to draw the lines "manunally" one by one, and I need to get at least 36 line profiles from center to the edge every each 10 degrees.

And even though I already got the center from VBAI, I don't think the center position had been sent to vision assistant.

I really think it is a stupid way to get the line profile.

 

Is there other way I can get all the line profileI need by using VBAI ''automatically"(at least not draw the line one by one by myself) ?

or do I have to use LabView to get what I want?

 

Thanks 

 

 

This is the image I'm working on.

test.png

0 Kudos
Message 1 of 3
(3,518 Views)
Solution
Accepted by BJ-84

You are correct that there's not an good way to get 36 line profiles using built in steps. I would recommend using the Run LabVIEW VI step (located on the last tab), where you pass in the center point to the VI and the VI creates the 36 ROIs and performs the line profiles associates with those ROIs. In VBAI 2012, the Run LV step can take in arrays and output arrays, and so if you need to do something with those line profile arrays outside the Run LabVIEW step, VBAI 2012 will make this much easier, otherwise you will need to do your array operations inside the VI.

 

Hope this helps,

Brad 

0 Kudos
Message 2 of 3
(3,513 Views)

I think the function you want is IMAQ Spoke, which gives you a set of radial line profiles at equally spaced angles around a central point.  I think it is only available in LabVIEW, though.

 

Bruce

Bruce Ammons
Ammons Engineering
0 Kudos
Message 3 of 3
(3,493 Views)