Automatic segmentation with detection of local segmentation failures in cardiac MRI