摘要 |
An image processing procedure receives mosaic image data and calculates vertical and horizontal-direction color difference components for each pixel. The image processing procedure subsequently selects an R pixel or a B pixel from the mosaic image data, and compares a variation of the vertical-direction color difference component with a variation of the horizontal-direction color difference component with regard to each of at least the selected pixels to detect edge directions of the at least selected pixels. The edge directions thus obtained are collected in an edge direction map, and then the edge directions are compared with the surrounding edge directions to remove edge noise in advance. The image processing procedure refers to the detected edge directions, and interpolates a missing color component in each pixel of the mosaic image data with the settings of one color component in each pixel in the mosaic image data.
|