ni.com is currently undergoing scheduled maintenance.
Some services may be unavailable at this time. Please contact us for help or try again later.
03-29-2010 10:28 AM
I have taken a snapshot of a light source. I am posting a sample of
bad light source. It has dark spots in it. I just need the area of dark
spots of the circle. The processing I did to get an equalized image is
acquisiton-->extract luminance plane-->imaq mask and extract-->threshold-->imaq equalize.
i used vision assistant for the above steps.
The images are attached to this post. I did use count and find objects, but results are not
that accurate. Does anyone know a better way to get more accurate results. Just let me
know if anyone knows a better way of finding all the dark spots.
03-30-2010 01:35 PM
Hey Arjun,
How many spots were you able to locate? Could you post your script?
03-31-2010 12:22 AM
03-31-2010 01:51 PM
Muks
yes a perfect image will have perfect white circle. I am attaching the code as well as
original image and snap of my output. I got this code from vision assistant. In original
image the innermost circle is what I am masking and extracting.
When you will open my output image you will see that the dark spots near the border
of circle go unnoticed. The reason could be because of no border. I need to find the area
of all the dark spots, and thats it. If anyone feeds the my original to my code you will see
the result of what I see on my output. I appreciate your help. In circle the slight dark spots
are what I am lookingto detect.
I did try what Muks suggested os using circular edge detection, the result was interesting but
not what I need.
04-01-2010 12:51 AM
04-01-2010 10:01 AM
I am attaching the snapshot of the code. I am trying some experiments.
I will keep you posted.
04-02-2010 12:46 AM
04-02-2010 08:33 AM
Ok
I am attaching the good image to thia post. Here w go.
04-02-2010 08:39 AM
04-02-2010 09:05 AM
Try this