A three-dimensional graph searching technique for cardiac border detection in sequential images and its application to magnetic resonance image data