A medical image (404) is analyzed using an algorithm (408) requiring input parameters (406), the values of which are derived from metadata (402) indicating properties of the image (404). The metadata may indicate the type of image acquisition device (102) or the settings used to create the image (404), and/or relate to the patient from whom the image (404) was taken. This allows optimum values to be selected for the parameters.