PROBLEM TO BE SOLVED: To simply prevent an unwrapping error by dispensing with complicated routing processing for unwrapping processing.SOLUTION: Image data 50 is generated by an X-ray image detector by detecting an X-ray emitted from an X-ray source and passing through first and second gratings. An NG region detecting unit detects an NG region in which the unwrapping error is apt to occur, on the basis of the image data 50. A noise reduction processing unit reduces noises by applying moving average processing to the NG region of the image data 50. A phase differential image generating unit generates a phase differential image on the basis of the image data after noise reduction processing. An unwrapping processing unit applies the unwrapping processing to the phase differential image.COPYRIGHT: (C)2013,JPO&INPIT【課題】アンラップ処理のための複雑な経路設定処理を不要とし、簡便にアンラップエラーを防止する。【解決手段】X線画像検出器は、X線源から放射され第1及び第2の格子を通過したX線を検出して画像データ50を生成する。NG領域検出部は、画像データ50に基づき、アンラップエラーが生じやすいNG領域を検出する。ノイズ低減処理部は、画像データ50のNG領域に移動平均処理を施すことによりノイズを低減する。位相微分画像生成部は、ノイズ低減処理後の前記画像データに基づき位相微分画像を生成する。アンラップ処理部は、位相微分画像にアンラップ処理を施す。【選択図】図6