Method and apparatus 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 sampling a Bayer image having two dimensional planes of red, green and blue pixels, the method including the steps of:
rotating the green plane by 45° to provide a rotated green plane having a relative rotational orientation;
sequentially sampling m 2 pixels in an m×m pixel block of the rotated green plane, thereby providing m 2 samples of the rotated green plane, where m is an integer greater than 1;
providing an address for the m 2 samples by determining a starting address for a first of the samples, in response to the relative rotational orientation of the rotated green plane; and
applying thereafter a predetermined fixed sequence of offsets to obtain addresses of the remaining samples of the rotated green plane.
2. The method of claim 1 wherein m=4 and there are sixteen offsets.
3. An apparatus for sampling a Bayer image having two dimensional planes of red, green and blue pixels, the apparatus comprising:
an input receiving mechanism to rotate the green plane by 45° and to provide a rotated green plane having a relative rotational orientation;
a sampler to sequentially sample m 2 pixels in an m×m pixel block of the rotated plane and to provide m 2 samples of the rotated green plane where m is an integer greater than 1;
address generating mechanism to provide an address for the m 2 samples by determining a starting address for a first of the samples and thereafter applying a predetermined fixed sequence of offsets to obtain addresses of the remaining samples of the rotated green plane.