PROBLEM TO BE SOLVED: To provide a technology to more appropriately perform FPN removing, while suppressing an occurrence of artifact by correcting a phase shift.SOLUTION: An image processing device includes: measurement signal acquisition means for acquiring a plurality of measurement signals including information on the depth direction of the tomography of a subject acquired by the optical interference tomographic imaging of the subject, reference signal acquisition means for acquiring a reference signal based on the plurality of measurement signals, calculation means for calculating a phase deviation between each of the plurality of measurement signals and the reference signal, smoothing means for smoothing each of the phase deviations, adjusting means for adjusting the phase of the measurement signal corresponding to the smoothed phase deviation based on the smoothed phase deviation, generation means for generating a background signal corresponding to a noise component based on the plurality of measurement signals whose phase has been adjusted, subtraction means for subtracting the background signal from the plurality of measurement signals whose phase has been adjusted, and image forming means for forming a tomographic image of the subject based on the plurality of measurement signals from which the background signal has been subtracted.SELECTED DRAWING: Figure 2【課題】 位相ずれの補正によってアーチファクトが生じることを抑制し、より適切にFPN除去を行うための技術を提供する。【解決手段】 被検体を光干渉断層撮像して得た、被検体の断層の深さ方向の情報を含む複数の測定信号を取得する測定信号取得手段と、複数の測定信号に基づいて、基準信号を取得する基準信号取得手段と、複数の測定信号の各々と基準信号の位相ずれを算出する算出手段と、位相ずれの各々を平滑化する平滑化手段と、平滑化された位相ずれに基づいて、平滑化された位相ずれに対応する測定信号の位相を調整する調整手段と、位相調整された複数の測定信号に基づいて、ノイズ成分に対応する背景信号を生成する生成手段と、位相調整された複数の測定信号から背景信号を減算する減算手段と、背景信号が減算された複数の測定信号に基づいて、被検体の断層画像を形成する画像形成手段とを備える、画像処理装置。【選択図】図2