Adaptive disconnection method for brain MRI hemisphere segmentation