PROBLEM TO BE SOLVED: To detect a contour edge of an object from an object image with accuracy.SOLUTION: An image processing device 1 of one embodiment of the present invention includes: a gradient strength calculation unit 16 that calculates gradient strength of each pixel based on a pixel value of an intraluminal image imaging mucosal architecture a candidate edge detection unit 17 that detects contour candidate edge positions based on the gradient strength of each pixel a reference area setting unit 18 that sets a reference area referred to when a contour edge position is selected from among the contour candidate edge positions based on the gradient strength of each pixel and a contour edge selection unit 19 that selects one of the contour candidate edge positions in the reference area as the contour edge position.COPYRIGHT: (C)2012,JPO&INPIT【課題】対象画像から対象物の輪郭エッジを精度良く検出すること。【解決手段】本発明のある実施の形態の画像処理装置1は、粘膜構造を撮像した管腔内画像の画素値をもとに、各画素の勾配強度を算出する勾配強度算出部16と、各画素の勾配強度をもとに輪郭候補エッジ位置を検出する候補エッジ検出部17と、各画素の勾配強度をもとに、輪郭候補エッジ位置の中から輪郭エッジ位置を選択する際に参照する参照範囲を設定する参照範囲設定部18と、参照範囲内の輪郭候補エッジ位置の中から1つを選択し、輪郭エッジ位置とする輪郭エッジ選択部19とを備える。【選択図】図1