PROBLEM TO BE SOLVED: To provide an image processing device or the like that can highly accurately discriminate between a mucosal region and a non-mucosal region such as residue included in an intraluminal image.SOLUTION: The image processing device is provided which discriminates between a mucosal region and a non-mucosal region included in an intraluminal image, the image processing device includes: a residue candidate region detecting unit 16 that detects a residue candidate region to be discriminated whether it is a mucosal region or not, on the basis of a feature amount of each pixel constituting the intraluminal image a structure edge region detecting unit 17 that detects a structure edge included in the intraluminal image and an approximate structure edge line calculating unit 18 and an overlap determining unit 19 that discriminate whether the residue candidate region is a mucosal region or not, on the basis of a relative positional relationship between the structure edge and the residue candidate region.COPYRIGHT: (C)2012,JPO&INPIT【課題】管腔内画像において粘膜領域と残渣等の非粘膜領域とをより高い精度で判別することができる画像処理装置等を提供する。【解決手段】画像処理装置は、管腔内画像に含まれる粘膜領域と非粘膜領域とを判別する画像処理装置において、管腔内画像を構成する各画素の特徴量に基づいて、粘膜領域であるか否かの判別対象とする残渣候補領域を検出する残渣候補領域検出部16と、管腔内画像に含まれる構造エッジを検出する構造エッジ領域検出部17と、構造エッジと残渣候補領域との相対的な位置関係に基づいて、残渣候補領域が粘膜領域であるか否かを判別する近似構造エッジ線算出部18及び交差判定部19とを備える。【選択図】図1