Page 1 of 1

Getting blobs from similarly colored contours in grayscale image

Posted: 2015-06-03T21:54:08-07:00
by galv
I want to get the staff lines position as individual blobs in either of these images:

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

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).

Re: Getting blobs from similarly colored contours in grayscale image

Posted: 2015-06-04T09:18:36-07:00
by fmw42
Best I can do is

Code: Select all

convert V95Le.png -negate -lat 200x200+0.1% -negate result.png

Also see connected components processing for binary images at: http://magick.imagemagick.org/script/co ... onents.php