Getting blobs from similar colored contours in grayscale image

asked 2015-06-03 23:38:36 -0600

John K. gravatar image

updated 2015-06-04 00:43:57 -0600

I want to select the staff lines as individual blobs in either of these images:

http://i.stack.imgur.com/7LJ25.png

http://i.stack.imgur.com/V95Le.png

The staff lines have similar darker gray color than the rest of the image.

Is this possible?

Edit: The regions that I want to select are shown in this image (roughly, I selected them manually): http://i.imgur.com/4bpZLNJ.png It's ok if other blobs are getting selected too (I can filter them by their area afterwards).

edit retag flag offensive close merge delete

Comments

Here my results with adapative threshold and connectComponents. Surface is about 12000 pixels ( Contour your shape). You can extract this contour and can fill after I must say that's not a logical answer. Your image are not in visible light?

LBerger gravatar imageLBerger ( 2015-06-04 03:04:14 -0600 )edit