Pixel interpolation circuit, pixel interpolation method, and recording medium
AssigneeCasio Computer Co., Ltd.
InventorShohei Sakamoto
Life of this patent
Estimating the term…
Abstract
A correlation along a horizontal direction and a correlation along a vertical direction are calculated with respect to a neighboring region around an interpolation target pixel by using respective pixel values of R pixels, G pixels, and B pixels in Bayer data. The pixel value of the G pixel to be interpolated for the interpolation target pixel is determined based upon pixel values of pixels adjacent to the interpolation target pixel along a direction exhibiting a stronger correlation between the calculated correlations. The interpolation target pixel in the Bayer data is interpolated by using the G pixel of the pixel value determined.
Claims8
A pixel interpolation circuit comprising:
- a pixel interpolation unit which determines, by using only a pixel value of a G pixel in a neighboring region around an interpolation target pixel having no G pixel value in Bayer data, a G pixel value for the interpolation target pixel, and generates an interpolation image signal by interpolating the determined G pixel value in the interpolation target pixel;
- a correlation calculation unit which calculates correlation in a horizontal direction and correlation in a vertical direction with respect to the neighboring region around the interpolation target pixel, by performing computations between a pixel value of a given pixel that is an R pixel, a G pixel, or a B pixel, and a pixel value of a neighboring pixel in a neighboring region around the given pixel, which is different from the given pixel in color component, in the Bayer data;
- a pixel value determination unit which determines a G pixel value for the interpolation target pixel, based upon pixel values of pixels adjacent to the interpolation target pixel along one of the horizontal direction and the vertical direction that exhibits a stronger correlation between the correlations calculated by the correlation calculation unit;
- a G image signal acquisition unit which acquires a G image signal including only G pixel values determined by the pixel value determination unit;
- a high-pass filter which removes low frequency components of the G image signal acquired by the G image signal acquisition unit;
- and
- an adding unit which adds a G pixel value in the G image signal whose low frequency components have been removed by the high-pass filter, to the interpolation image signal generated by the pixel interpolation unit;
- wherein the pixel value determination unit determines a pixel value, which is acquired by calculating a sum of an average value of pixel values of pixels adjacent to the interpolation target pixel along the one of the horizontal direction and the vertical direction that exhibits the stronger correlation between the correlations calculated by the correlation calculation unit, and an average value of pixel values of the pixels adjacent to the interpolation target pixel along the horizontal direction and the vertical direction, according to a predetermined ratio, as the G pixel value.
A non-transitory computer-readable recording medium storing a program which is executable by a computer to cause the computer to function as elements including:
- a pixel interpolation unit which determines, by using only a pixel value of a G pixel in a neighboring region around an interpolation target pixel having no G pixel value in Bayer data, a G pixel value for the interpolation target pixel, and generates an interpolation image signal by interpolating the determined G pixel value in the interpolation target pixel;
- a correlation calculation unit which calculates correlation in a horizontal direction and correlation in a vertical direction with respect to the neighboring region around the interpolation target pixel, by performing computations between a pixel value of a given pixel that is an R pixel, a G pixel, or a B pixel, and a pixel value of a neighboring pixel in a neighboring region around the given pixel, which is different from the given pixel in color component, in the Bayer data;
- a pixel value determination unit which determines a G pixel value for the interpolation target pixel, based upon pixel values of pixels adjacent to the interpolation target pixel along one of the horizontal direction and the vertical direction that exhibits a stronger correlation between the correlations calculated by the correlation calculation unit;
- a G image signal acquisition unit which acquires a G image signal including only G pixel values determined by the pixel value determination unit;
- a high-pass filter which removes low frequency components of the G image signal acquired by the G image signal acquisition unit;
- and
- an adding unit which adds a G pixel value in the G image signal whose low frequency components have been removed by the high-pass filter, to the interpolation image signal generated by the pixel interpolation unit;
- wherein the pixel value determination unit determines a pixel value, which is acquired by calculating a sum of an average value of pixel values of pixels adjacent to the interpolation target pixel along the one of the horizontal direction and the vertical direction that exhibits the stronger correlation between the correlations calculated by the correlation calculation unit, and an average value of pixel values of the pixels adjacent to the interpolation target pixel along the horizontal direction and the vertical direction, according to a predetermined ratio, as the G pixel value.
Dependencies are inferred from the claim text.