1. A method of correcting intensity inhomogeneity in an image, said method comprising the steps of: receiving pixel information for an image portion of an object; generating, using a processor, a histogram from said pixel information; and transforming, using said processor, at least one pixel in said pixel information by minimizing error between said histogram and a specified histogram, wherein a plurality of grid points overlay said image portion of said object, each said grid point having associated therewith at least one interpolating function, thereby minimizing said error.