Detection of pixels with high connectivity

asked 2018-11-30 06:57:44 -0500

chiaqf gravatar image

Greetings guys, I'm trying to detect some scratches over metal bars

This is the image after adaptive thresholding, I tried morphological operation and blurring to remove the salt and pepper noises but often it removes the scratch also.

Any idea on how to extract it? image description

edit retag flag offensive close merge delete


try with connectedComponents and remove small surface

read this

LBerger gravatar imageLBerger ( 2018-11-30 08:16:54 -0500 )edit