Code to parcellate the brain into spatially contiguous regions.