An image processing device processes an image acquired by an imaging unit (200) capable of magnified observation. This image processing device contains: motion information acquisition units (320,330a) which acquire motion information, which is information representing the relative motion of the imaging unit (200) with respect to the subject of imaging an imaging magnification calculation unit (340a) which calculates an imaging magnification for the imaging unit (200) and an image extraction unit (350a) which extracts, as an extracted image, an image in a specific region from the captured image acquired by the imaging unit (200). The image extraction unit (350a) sets the position of the specific region in the captured image on the basis of the motion information, as well as sets the size of a margin region on the basis of the imaging magnification and motion information, said size of a margin region being the size of the region of the captured image excluding the specific region.Linvention porte sur un dispositif de traitement dimage qui traite une image acquise pour une unité dimagerie (200) apte à une observation grossie. Ce dispositif de traitement dimage contient : des unités dacquisition dinformations de mouvement (320, 330a) qui acquièrent des informations de mouvement, qui sont des informations représentant le mouvement relatif de lunité de limagerie (200) par rapport au sujet dimagerie une unité de calcul de grossissement dimagerie (340a) qui calcule un grossissement dimagerie pour lunité dimagerie (200) et une unité dextraction dimage (350a) qui extrait, en tant quimage extraite, une image dans une région spécifique de limage capturée acquise par lunité dimagerie (200). Lunité dextraction dimage (350a) règle la position de la région spécifique dans limage capturée sur la base des informations de mouvement, et règle la dimension dune région de marge sur la base du grossissement dimagerie et des informations de mouvement, ladite dimension dune région de marg