A region inference algorithm | Synapse