PROBLEM TO BE SOLVED: To provide an image processing device capable of obtaining a good two-dimensional image regardless of the acquisition condition of information in the depth direction of a retina or the like. A pixel value row arranged in a depth direction of a measured object is acquired based on interference light obtained by causing the return light of the scanned measurement light from the measured object and a reference light corresponding to the measured light to interfere with each other. In an image processing device for processing the image obtained by the acquisition means, a generation means for generating a two-dimensional image based on a pixel value selected from each of the plurality of pixel value columns according to a predetermined selection criterion, and a plurality of pixels In each of the value sequences, setting means for setting a selection range of pixel values selected in the depth direction and reference changing means for changing a predetermined selection reference according to the set selection range are arranged. [Selection diagram]【課題】網膜等の深さ方向の情報の取得条件によらず、良好な二次元画像を得ることを可能する画像処理装置を提供する。【解決手段】走査された測定光の被測定物体からの戻り光と測定光に対応する参照光とを干渉させた干渉光に基づいて被測定物体の深さ方向に並ぶ画素値列を取得する取得手段により得られた画像を処理する画像処理装置において、複数の前記画素値列のそれぞれから所定の選択基準に従って選択された画素値に基づいて二次元画像を生成する生成手段と、複数の画素値列の各々において、深さ方向において選択される画素値の選択範囲を設定する設定手段と、設定された選択範囲に応じて所定の選択基準を変更する基準変更手段と、を配する。【選択図】図3