1. An image processing apparatus comprising: a dye amount distribution obtaining section configured to obtain a distribution of dye amounts from a sample colored with at least one dye; and a classification section configured to classify a point on the sample in accordance with a dye amount at a corresponding position on the distribution obtained by the dye amount distribution obtaining section, wherein when the sample is colored with N types of dyes, the dye amount distribution obtaining section obtains the distribution of dye amounts of the N types of dyes, and the classification section classifies the point on the sample into an N-dimensional space.