1. An information processing apparatus for determining a height of a toner image formed on an image bearing member, comprising: an obtaining unit configured to obtain first image data obtained by capturing a beam emitted by an emission unit and reflected on the toner image; a detection unit configured to detect pixels having pixel values included in a predetermined range from the first image data obtained by the obtaining unit wherein the predetermined range is less than a maximum value in the first image data; an identification unit configured to identify a representative position of the first image data based on a center position of a shape by fitting said pixels detected in the first image data by the detection unit; and a determination unit configured to determine the height of the toner image from the representative position identified by the identification unit.