1. A method for transforming a vector in a destination color space of a pixel in a destination image into a vector in a profile connection space via a selected profile within a computer, the selected profile belonging to a set of candidate profiles, the method comprising: determining, with the computer, for a number of the candidate profiles in the set an aggregate distance function by: using the candidate profile for transforming the vector of at least one pixel in the destination image into an approximate vector in the destination color space; calculating a distance between the vector of the at least one pixel in the destination image and the transformed approximate vector; and including the distance in the aggregated distance function; selecting the candidate profile that yields a smallest aggregate distance function within the set; and transforming the vector of the at least one pixel in the destination image into a vector in the profile connection space using the selected candidate profile.