Cortical brain structures segmentation using constrained optimization and intensity coupling