Quantcast
Channel: Machine Vision topics
Viewing all articles
Browse latest Browse all 1272

Separating relatively dark slabs from non-uniform background

$
0
0

Hello,

Actually i asked this in an onether entry. But i think it's a new subject. I apologize in advance if it's double entry

https://forums.ni.com/t5/Machine-Vision/Marble-slab/td-p/3708856/page/4

 

I have marble slabs. With line scanning get i image of these marble slabs. In result image background is extremely dark. But background is not completely dark (it's no-uniform). If you look carefully, you can see some parts on background that not total black are (contrast enhanced image_01) . Most marble slabs have some dark areas, too.

I want to find contour of these marble slabs. To do that first i need to separate marble from this background. I use manual thresholding (thresholding bright objects, see attached script). I can't find an auto thresholding methode for this. Manual thresholding doesn't always work for me. Sometimes i have to change lower value for manual thresholding. I don't want this.

 

Is there a better way to that? I think i might use some gray morphology before thresholding. Any ideas?

 

 


Viewing all articles
Browse latest Browse all 1272

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>