In the case of epicardial segmentation, the goodness function is defined as: ##EQU6## where I(r,??) is the image intensity of a pixel at (r,??), ?? and ?? are the mean and standard deviation of the intensity of the myocardial tissue in the image, and k is a constant, which may be predetermined.