A raw DPC (differential phase contrast) image of an object is acquired. The background phase distribution due to the non-uniformity of the grating system is acquired by the same process without an object in place, and the true DPC image of the object is acquired by subtracting the background phase distribution from the raw DPC image.