An X-ray device for acquiring information related to a structure of a measuring object comprising: an X-ray detections means (41, 42) configured to irradiate a measuring object with X-ray and configured to detect transmission X-ray transmitted through the measuring object, the X-ray detection means including an X-ray source configured to emit X-ray and a detection means configured to detect X-ray emitted from the X-ray source and transmitted through the measuring object, a first information generation means configured to generate, by using a result of detecting the transmission X-ray, first information in which a value according to an absorption coefficient is allocated to each of a plurality of divided sections into which there is divided a predetermined space including at least part of the measuring object; a frequency generation means configured to generate frequency information of the values allocated to the plurality of divided sections, wherein the frequency information of the values relates to frequency of occurrence (PA, PB) of each of the values, a ratio acquirement means configured to acquire ratio information indicating a ratio between a first substance and a second substance included in the measuring object from the result of detection of the transmission X-ray; and characterized by a second information generation means configured to generate second information, in which the frequency information of the values is changed so that a plurality of frequency of occurrence values (PA, PB) corresponding to at least one of the first substance and the second substance is integrated into a smaller number of frequency of occurrence values (QA, QB), and based on the ratio information between the first substance and the second substance. an X-ray detections means (41, 42) configured to irradiate a measuring object with X-ray and configured to detect transmission X-ray transmitted through the measuring object, the X-ray detection means including an X-ray source configured to emit X-ray and a detection means configured to detect X-ray emitted from the X-ray source and transmitted through the measuring object, a first information generation means configured to generate, by using a result of detecting the transmission X-ray, first information in which a value according to an absorption coefficient is allocated to each of a plurality of divided sections into which there is divided a predetermined space including at least part of the measuring object; a frequency generation means configured to generate frequency information of the values allocated to the plurality of divided sections, wherein the frequency information of the values relates to frequency of occurrence (PA, PB) of each of the values, a ratio acquirement means configured to acquire ratio information indicating a ratio between a first substance and a second substance included in the measuring object from the result of detection of the transmission X-ray; and characterized by a second information generation means configured to generate second information, in which the frequency information of the values is changed so that a plurality of frequency of occurrence values (PA, PB) corresponding to at least one of the first substance and the second substance is integrated into a smaller number of frequency of occurrence values (QA, QB), and based on the ratio information between the first substance and the second substance.