PROBLEM TO BE SOLVED: To accurately detect an abnormal portion from an intraluminal image.SOLUTION: In the image processing apparatus 1, a closed region extracting part 22 includes: an initial closed region setting part 23 for setting an initial shape of a closed region an energy calculating part 24 for calculating values of a plurality of types of energy at least including the energy determined by the contour of the closed region and the energy determined by the gradient strength in the boundary of the closed region an energy weighted-sum calculating part 27 for calculating a weighted sum of the values of the plurality of types of energy an update range determining part 29 for determining an update range for updating the shape of the closed region based on the value of one of the plurality of types of energy and a closed region updating part 28 for updating the shape of the closed region within the update range.COPYRIGHT: (C)2012,JPO&INPIT【課題】生体内管腔画像から異常部を精度良く検出すること。【解決手段】本発明のある実施の形態の画像処理装置1において、閉領域抽出部22は、閉領域の初期形状を設定する初期閉領域設定部23と、少なくとも閉領域の外形によって定まるエネルギーおよび閉領域における勾配強度によって定まるエネルギーを含む複数のエネルギーの値を算出するエネルギー算出部24と、複数のエネルギーの加重和を算出するエネルギー加重和算出部27と、複数のエネルギーのうちのいずれか1つの値をもとに閉領域の形状を更新する更新範囲を決定する更新範囲決定部29と、加重和をもとに、閉領域の更新範囲内の形状を更新する閉領域更新部28とを備える。【選択図】図1