07-09-2010 07:14 AM
Dear colleagues
I am trying to use "IMAQ Find Geometric Pattern.vi" to find the rotation of the diffuse spots in the attatched image. Ideally the spot centres should bi placed on a horzontal line and want to find the angular deviation of this centre line. The template is created by calculating the horizontal and vertical profiles, and then multiplying them to create a new image with horizontal spots, quite similar to the original image.
Hoping that someone has some experience in similar applications. The solution might be to fiddle with the parameters in "IMAQ Setup Match Geometric Pattern", but these seem more adapted patters with distinct edges. The help for the parameter settings are quite hard to understand.
07-09-2010 08:55 PM
Are you trying to find the three large spots, or the little bumps visible within each spot?
There is no way pattern matching will work to find the three large spots. You could probably use standard pattern matching to find the bumps, though, since they all look about the same.
To find the large spots, you will probably want to smooth the image enough to eliminate the bumps, then locate the bright spots. It is going to be difficult.
Bruce
07-12-2010 02:56 AM
Dear Bruce
Thanks for the reply. I also found it diffucult, at least with the IMAQ functions, so I solved this by dividing the image in three smaller images ("IMAQ Extract") containing the three spots. By using "IMAQ Linear Averages" and fitting a Gaussian curve to the vertical profile, I could get the centres of the diffuse spots.
This is something I really miss in the the Vision Development Module, some kind of cross-correlation of images. Or is it just that I haven't found the appropriate functions?
07-12-2010 03:02 AM
Do you just want to find the centre of the 3 spots? Use circle detection.
07-12-2010 03:12 AM
Or you can extract the images and use Imaq centroid as well
07-12-2010 04:01 AM
Dear muks
It seems like you have used threasholding before finding the centres of the circles. Can you give me the calculated vertical centre positions that you got? Then I can compare them with my results.
07-12-2010 04:28 AM
I have used dialte also before the circle detection. Anyway this is what i get
292,526
683,521
1048,521
as the centres
07-12-2010 05:20 AM - edited 07-12-2010 05:28 AM
Dear muks
Horizontal and vertical can be a bit confusing, but I meant the "height" or the "y position" of the centres. Anyway, this is what I got:
527,462
521,718
517,089
My horizontal position of the centre spot is 678,632.
However there is not "truth" when dealing with measurements, I believe that using as much information as possible when analysing data, gives more relevant results. This is one of the reasons that I wanted to make some kind of cross-correlation between a template and this image. As I couldn't find any such IMAQ function, I choosed to use the y average, which also uses all the data from the image.
07-12-2010 05:24 AM
I guess you are posting the values like y,x from the 520s value that you have posted. Here is my script