1. An X-ray imaging apparatus comprising: an X-ray detector configured to acquire X-ray data by detecting X-rays; and an image processor configured to segment a first image generated based on the acquired X-ray data into two or more segmentation regions, to identify one or more materials present in one segmentation region of the two or more segmentation regions, and to acquire an image relating to an object which includes abnormal materials.