An image processing apparatus or the like is provided, which is able to accurately identify an abnormality in a microstructure of a subject even if a difference in resolution of the microstructure is caused due to a difference in imaging distance. An image processing apparatus 1 includes: an imaging distance estimating unit 110 that estimates an imaging distance to a subject shown in an image an examination region setting unit 120 that sets an examination region in the image, such that an index indicating a spread of a distribution of imaging distance of the subject shown in the examination region is within a given range and an abnormal structure identifying unit 130 that identifies, by using texture feature data enabling identification of an abnormality in a microstructure of the subject shown in the examination region, whether or not the microstructure of the subject shown in the examination region is abnormal, the texture feature data being specified according to the examination region.