1. An image processing apparatus comprising: a producing unit that produces a multi-dimensional grid histogram based on values of pixels in an image, wherein the multi-dimensional grid histogram holds the frequency corresponding to a grid value in each grid of a predetermined interval in a multi-dimensional color space; an analysis unit that performs a first correction process to each grid value of the multi-dimensional grid histogram produced by the producing unit and analyzes a feature amount of the multi-dimensional grid histogram after the first correction process is performed, using each grid value processed by the first correction process and the frequency of the each grid value; and a calculation unit that calculates correction parameters used for a second correction process based on a result of the analysis by the analysis unit.