An image processing apparatus and the like capable of acquiring a learning sample appropriately reflecting a state inside a lumen are provided. The image processing apparatus 1 includes a mucosal region extracting unit 110 that extracts a mucosal region from an intraluminal image obtained by imaging inside the lumen of a living body, a mucosal region extracting unit 110 that acquires the surface condition of the mucosal area, and acquires an intraluminal image And an image generation unit 120 for generating an image different from the intraluminal image by processing the mucosal area in the intraluminal image.管腔内の状態を適切に反映した学習サンプルを取得することができる画像処理装置等を提供する。画像処理装置1は、生体の管腔内を撮像した管腔内画像から粘膜領域を抽出する粘膜領域抽出部110と、粘膜領域の表面性状を取得し、該表面性状に基づいて管腔内画像における粘膜領域を加工することにより、上記管腔内画像とは異なる画像を生成する画像生成部120とを備える。