摘要 |
Abstract An image processing apparatus includes a calculating unit, an edge-position detecting unit, an identifying unit, and a subject-region detecting unit. The calculating unit calculates, for each of plural color separation images, a gradient direction of an edge gradient and an edge intensity at each position on the basis of a color captured image. The plural color separation images result from separation of the color captured image into multiple color components. The color captured image includes an image of a subject captured with an imaging apparatus. The edge-position detecting unit detects edge positions in each of the plural color separation images, on the basis of the gradient directions of the edge gradients and the edge intensities calculated by the calculating unit. The identifying unit identifies, for each position, the gradient direction of the edge gradient and the edge intensity at the position in a color separation image among 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 edge positions detected by the edge-position detecting unit and the gradient directions of the edge gradients and the edge intensities identified by the identifying unit. The subject region is a portion of the color captured image that corresponds to the image of the subject. Lx |