Image restoration involving connectedness | Synapse