Provided are an image processing device, an image processing method, and a program such that a learning sample that appropriately reflects a state inside a lumen is generated. An image processing device 1 includes: a surface shape estimation unit 10 that estimates a surface shape of a subject within an intraluminal image of a living body; an imaging perspective changing unit 11 that changes an imaging perspective of the surface shape; and an image generation unit 12 that generates a virtual image of the subject that has been imaged from the changed imaging perspective.L'invention concerne un dispositif de traitement d'image, un procédé de traitement d'image et un programme, de telle sorte qu'un échantillon d'apprentissage qui reflète de manière appropriée un état à l'intérieur d'une lumière est généré. Un dispositif de traitement d'image (1) comprend : une unité d'estimation de forme de surface (10) qui estime une forme de surface d'un sujet dans une image intra-luminale d'un corps vivant ; une unité de changement de perspective d'imagerie (11) qui change une perspective d'imagerie de la forme de surface ; et une unité de génération d'image (12) qui génère une image virtuelle du sujet qui a été imagé à partir de la perspective d'imagerie changée.管腔内の状態を適切に反映した学習サンプルを生成することができる画像処理装置、画像処理方法およびプログラムを提供する。画像処理装置1は、生体の管腔内画像に映る対象の表面形状を推定する表面形状推定部10と、表面形状に対する撮像視点を変更する撮像視点変更部11と、変更後の撮像視点から撮像した場合の対象の仮想画像を生成する画像生成部12と、を備える。