1. A method for defining an atlas image data for optimizing images, the method comprising: receiving a reference image; receiving a target image; defining a first region of interest on the reference image; defining a second region of interest on the reference image; calculating a first optimization parameter associated with the first region of interest; calculating a second optimization parameter associated with the second region of interest; mapping the reference image onto the area of the first region of interest on the global mapped image using the first optimization parameter resulting in a first optimized image of the first region of interest; mapping the reference image onto the area of the second region of interest on the global mapped image using the second optimization parameter resulting in a first optimized image of the second region of interest; determining whether the mapping associated with the first region of interest is satisfactory; calculating a third optimization parameter associated with the first region of interest responsive to determining that the mapping of the first region of interest is unsatisfactory; and saving the first optimization parameter associated with the first region of interest in an atlas image data file responsive to determining that the mapping of the first region of interest is satisfactory, wherein the atlas image data file is used in mapping patient images for medical diagnosis.