A method for matching grayvalued first elements of a first data set with
grayvalued second elements of a second data set so that a first
distribution of the first elements optimally matches a second
distribution of the second elements, said method being characterized by
the following steps: mapping said first elements on said second elements
and evaluating a local grayvalue distribution difference between any
mapped first element and its associated second element; from said local
grayvalue distribution difference deriving for each said first element a
force vector of a force field, said force vector indicating a preferred
motion size and direction; combining said separate force vectors into a
single force and a single torque value acting on said first elements
collectively, for iteratively moving said first elements collectively to
an amended mapping that improves a match between said first and second
distributions.