A processing apparatus according to the present invention is a processing apparatus that acquires an image pickup signal picked up by an endoscope having an image pickup element having a plurality of pixels, comprising: an error detecting section for detecting an error for each pixel A state detection unit for detecting an external state in the vicinity of the endoscope and a correction process for correcting the luminance value of the error pixel which is a pixel whose error has been detected by the error detection unit according to the detection result of the state detection unit And a condition setting unit that sets a condition of image processing by the image processing unit according to the detection result of the state detection unit.本発明にかかる処理装置は、複数の画素を有する撮像素子を備えた内視鏡が撮像した撮像信号を取得する処理装置であって、撮像信号をもとに、画素ごとにエラーを検出するエラー検出部と、内視鏡近傍の外部状態を検知する状態検知部と、エラー検出部によりエラーが検出された画素であるエラー画素の輝度値を状態検知部の検知結果に応じて補正する補正処理を含む画像処理を撮像信号に施す画像処理部と、状態検知部の検知結果に応じて、画像処理部による画像処理の条件を設定する条件設定部と、を備えた。