PROBLEM TO BE SOLVED: To accurately detect a mask shape.SOLUTION: An image processing device includes: an edge detection part for detecting a boundary point between a first region that includes a subject which is an observation object and a second region that does not include a subject a first estimation part for estimating a first shape as a shape of the boundary between the first region and the second region on the basis of the boundary point and a second estimation part for estimating a second shape as a shape of the boundary between the first region and the second region on the basis of the boundary point and the estimated first shape. The subject which is an observation object is a living body imaged by an endoscope device. This technology can be applied to an image processing device for processing an image taken by an endoscope device.COPYRIGHT: (C)2015,JPO&INPIT【課題】マスク形状を正確に検出できるようにする。【解決手段】観察対象となる被写体を含む第1の領域と被写体を含まない第2の領域の境界点を検出するエッジ検出部と、境界点に基づいて、第1の領域と第2の領域の境界の形状として第1の形状を推定する第1の推定部と、境界点および推定された第1の形状に基づいて、第1の領域と第2の領域の境界の形状として第2の形状を推定する第2の推定部とを備える。観察対象となる被写体は、内視鏡装置により撮影された生体である。本技術は、内視鏡装置により撮像された画像を処理する画像処理装置に適用できる。【選択図】図1