A medical processing apparatus includes processing circuitry. Based on a first number of X-ray datasets that correspond to the first number of energies and that are acquired by scanning a subject with X-rays, the processing circuitry generates a second number of virtual monochromatic X-ray datasets, which is a number larger than the first number. Based on the second number of virtual monochromatic X-ray datasets, the processing circuitry estimates quantities of the second number of reference materials mixed or a mixing ratio between the second number of reference materials for each of multiple positions in the subject.