An image processing apparatus 110 for applying a mask to the object, an input unit 120 for acquiring an image 122, (i) to detect the object in the image, to obtain the (ii) an output image 60 , a processor 130 for applying the mask to the object in the image, with a, the processor sets the object contours of (j) the object, on the basis of (jj) the object contour, said object generates smaller masks than, (jjj) by placing the mask so as to cover the objects to mask the body of the while clearly keeping the boundary region of the object the object, and said mask to said object It is configured to apply the image processing apparatus.オブジェクトにマスクを適用する画像処理装置110であって、画像122を取得するための入力部120と、(i)前記画像内の前記オブジェクトを検出し、(ii)出力画像60を取得するために、前記画像内の前記オブジェクトに前記マスクを適用するためのプロセッサ130と、を備え、前記プロセッサは、(j)前記オブジェクトのオブジェクト輪郭を設定し、(jj)前記オブジェクト輪郭に基づいて、前記オブジェクトよりも小さなマスクを生成し、(jjj)前記オブジェクトの境界領域を明瞭に保ったまま前記オブジェクトのボディをマスクするために前記オブジェクトを覆うように前記マスクを配置することにより、前記オブジェクトに前記マスクを適用するよう構成されている、画像処理装置。