Patent ID: 9635286
Date: 2017-04-25
CPC Classifications: G03B,G06K,G06T,H04N

Claim:
1. An image processing apparatus including a first imaging element for capturing a first image and a second imaging element for capturing a second image, the image processing apparatus comprising: a memory; and a processor that executes a program to implement the following: a selection unit configured to select any one of the first image and the second image as a selected image by calculating a first average of the pixels included in a first selected block indicating an average brightness of first pixels included in the first image and a second average of the pixels included in a second selected block indicating an average brightness of second pixels included in the second image, and comparing the first average with the second average to determine a smaller one of the first average and the second average to be a smaller average, thereby selecting the one of the first image and the second image with which the smaller average is associated to be the selected image, wherein the first pixels and the second pixels respectively belong to a duplicated area, the duplicated area being an area of a captured object overlapping in respective images captured by the first imaging element and the second imaging element, and wherein the duplicated area is divided to generate evaluation blocks having the same size, and the selected block is a block selected from the respective evaluation blocks; and the selection unit is further configured to set the selected blocks for excluding a range in the area of the image; a calculation unit configured to calculate a correction coefficient for correcting a pixel before correction based on a selected pixel and the pixel before correction, wherein the selected pixel is included in the selected image and the pixel before correction is included in an image before correction, the image before correction being one of the first image and the second image, which is not selected as the selected image; a correction unit configured to correct the pixel before correction based on the correction coefficient to generate an image after correction; and an image generation unit configured to generate an image to be output based on the selected image and the image after correction.