A morphological segmentation approach to determining bar lengths | Synapse