Find cluster with edge (2)

source image :

A) applying mosaic filter :

B) finding cluster with edge :