Method for bayer mosaic image conversion
View Patent ↗A method of, and an apparatus for, image conversion. The three color channels of a Bayer mosaic image are up-interpolated from input space to output space. The pixels sampled from each two-dimensional color plane of the Bayer image are convolved with a coefficient kernel for each color. To facilitate reconstruction and resampling, the color space for a dominant pixel color of the Bayer image is effectively rotated. The generation of each color value for a given pixel coordinate is carried out in parallel using an identical convolve unit and a dedicated coefficient kernel for each color.
1. A method of interpolating a Bayer image of red, green and blue pixels from a captured input space to an output space for printing, said Bayer image having one of the colors being 50% of the pixels, while the other two colors each are 25% of the pixels the method including the steps of:
receiving the Bayer image captured using a Bayer color filter array; and
mapping each of the colors to the output space in accordance with the following equations:
x ′=( x/ops )+ k 1
y ′=( y/ops )+ k 2
where x,y is a coordinate in the output space, x′y′ is the coordinate in the input space, ops is the number of pixels in the output space per input space sample, and k 1 & k 2 are either 0 or −0.5 depending on the color and the desired relative rotational orientation of the image.
2. The method of claim 1 wherein, for the green pixels in the input space, each coordinate of the input space is multiplied by 1/√2.
3. The method of claim 1 wherein, for the green pixels in the input space, each coordinate of the input space is multiplied by 1/√2.