PROBLEM TO BE SOLVED: To accurately detect an abnormal portion having a pixel value different from neighboring pixels.SOLUTION: In an image processing apparatus 10, a computing unit 20 includes an approximate value calculating unit 21 that calculates an approximate value that becomes consecutive inside an examination area for a pixel value of each pixel of the examination area based on the pixel value inside an image, a validity evaluating unit 22 that evaluates whether the approximate value is valid on the pixel value, an area dividing unit 23 that divides the examination area with the approximate value that is evaluated as being invalid, an examination area re-setting unit 24 that sets each divided area obtained by the area dividing unit as a new examination area and controls a repetition of processing, and an abnormal portion detecting unit 25 that detects an abnormal portion based on the pixel value inside the image and the approximate value that has been evaluated as being valid by the validity evaluating unit 22.COPYRIGHT: (C)2012,JPO&INPIT【課題】周囲の画素と異なる画素値の異常部を精度良く検出すること。【解決手段】本発明のある実施の形態の画像処理装置10において、演算部20は、画像内の検査対象領域の画素の画素値をもとに、検査対象領域の各画素の画素値に対して、検査対象領域内で連続的となる近似値算出部21と、近似値が検査対象領域の画素値に対して妥当か否かを評価する妥当性評価部22と、妥当性評価部22が近似値を妥当でないと評価した検査対象領域を分割する領域分割部23と、分割後の各領域を新たな検査対象領域に設定し、処理の繰返しを制御する対象領域再設定部24と、画像内の画素の画素値と妥当性評価部22が妥当と評価した近似値とをもとに異常部を検出する異常部検出部25とを備える。【選択図】図1