A device and method are provided to generate an image with a wide dynamic range, based on one photographed image. An exposure time control is executed in which different exposure times are set in units of rows of a pixel portion, in units of pixel regions, or similar, and different, multiple pixel information which are the pixel values of the pixels set with different exposures are obtained. For example, high sensitivity pixel information is obtained from long exposure pixels, low sensitivity information is obtained from short exposure pixels, and a pixel value for the output image is calculated based on the pixel information with these different sensitivities. For example, for high luminosity regions, the sensitivity pixel information may have a saturated value, and so a large weight is set to the low sensitivity pixel information, also for low luminosity regions, the SN ratio of low sensitivity pixel information is estimated to be poor, and so a large weight is set to the high sensitivity pixel information to determine the output pixel value.