How to fill big holes in black and white images with ImageMagick, like in the element at row 6, column 1 ?
=== ADDED ===
Actually, I need to fill inner holes and bays in a mask like the one below. With Gimp, I would fuzzy select the background, invert the selection, grow it by 20 pixels, shrink it by 20 pixels and then Edit > Fill with Foreground color.