Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

Image Processing for X-ray images

The zip files contains good and bad image samples that i will need to segregate. I tried using a n-black and clustering threshold. Currently i acheived the segragation by using two seperate threshold for the outer dark chip and a seperate one for the outer cover . But i am not acheiving repeatability. Any suggestions?
0 Kudos
Message 1 of 10
(4,481 Views)

I would like to suggest that you forgot to attach the images...

 

Andrey.

 

0 Kudos
Message 2 of 10
(4,478 Views)
:smileyvery-happy: ok and suggestion taken.
0 Kudos
Message 3 of 10
(4,475 Views)
What is your criteria for good and bad?
Randall Pursley
0 Kudos
Message 4 of 10
(4,464 Views)
The placement of chip inside the capsule should be within acceptable limits. Roughly it should not hit the outer cover.
0 Kudos
Message 5 of 10
(4,462 Views)
Ok for those interested, I first determine the orientation and then used two thresholds and edge detection (for the non-curved side). Referencing to this side i find the internal chips orientation. The processing time is a bit on the higher side. Optimizing it...
0 Kudos
Message 6 of 10
(4,423 Views)
Have you used the pattern matching functions in the Vision package?  If you have a template image that you can use, then you can create two pattern matching functions, one for the inner and one for the outer pieces (thresholding as you currently do for pre-processing).    Maybe then you can use net difference in offset and/or rotation to determine pass/fail.  The pattern matching vis seem to run pretty fast.
Randall Pursley
Message 7 of 10
(4,414 Views)
It seems to work.  Maybe not as fast as you want.
Randall Pursley
Message 8 of 10
(4,410 Views)

rpursley8 wrote:
It seems to work.  Maybe not as fast as you want.

That was my first stop. To use two different templates but consistency was an issue when the cover and inner chip merged the match found was not proper. Thanks for trying.

0 Kudos
Message 9 of 10
(4,389 Views)

When you created the template for the outer cover, did you tell it to ignore the inner contents of the case?  For the case, it should only search for the outer edge of the case, not the contents.

 

Likewise for the chip, don't include a lot outside the edge of the chip other than a few pixels to define the edge.

 

Seems like pattern matching would work very well in this case like rpursley8 says.

 

Bruce

Bruce Ammons
Ammons Engineering
Message 10 of 10
(4,370 Views)