摘要 |
PROBLEM TO BE SOLVED: To raise the freedom of shading-pixel arrangement and detect a phase difference with high accuracy.SOLUTION: An image sensor that is one aspect of the present disclosure comprises: a pixel unit in which shading pixels are arranged between ordinary pixels that are arranged lengthwise and crosswise; a setting unit (texture determination unit 32) for determining texture around the shading pixel as a pixel of interest present in an attention area, and setting a weighting coefficient on the basis of the texture; an arithmetic unit (correlation arithmetic unit 33) for calculating a correlation value between the pixel value of the shading pixel as the pixel of interest and the pixel value of the ordinary pixels around the shading pixel; and a generation unit (phase difference calculation unit 34) for multiplying the correlation value calculated for the shading pixel by the weighting coefficient, and generating a correlation histogram by integrating the resultant value as many as the shading pixels present in the attention area. The present disclosure can be applied to an image-capturing device provided with an image plane phase difference AF. |