The type and/or properties of a substance included in an object is identified highly accurately regardless of the thickness of the substance. A data processing apparatus processes counts detected at each of pixels of a photo counting detector in each of a plurality of energy ranges of X-rays. The X-rays are radiated from an X-ray tube, and transmitted through an object. The apparatus calculates an image of the object based on the counts, and sets a region of interest on the image. The apparatus further removes, from the image, pixel information showing a background present in the region of interest, and calculates, pixel by pixel, inherent information inherent to the substance, based on the counts detected at each of the respective pixels in each of the energy ranges of the X-rays in the region of interest. The inherent information indicates a transmission characteristic inherent to the X-rays.