摘要 |
An image processing apparatus includes a calculating unit, an edge-position detecting unit, an identifying unit, and a subject-region detecting unit. For each color separation image, the calculating unit calculates a gradient direction of an edge gradient and an edge intensity at each position on the basis of a color captured image. The edge-position detecting unit detects edge positions in each color separation image on the basis of the gradient directions of the edge gradients and the edge intensities. For each position, the identifying unit identifies the gradient direction of the edge gradient and the edge intensity at the position in one of the plural color separation images that includes the largest edge intensity at the position. The subject-region detecting unit detects a subject region on the basis of the detected edge positions, the identified gradient directions of the edge gradients, and the identified edge intensities. |