主权项 |
1. A method of scaling an image comprising:
receiving raw image data comprising a plurality of input pixel values, respective ones of the input pixel values corresponding to a respective pixel of an image sensor; and filtering the raw image data according to a Bayer-consistent ruleset by a first scaling factor in a first direction, and a second scaling factor in a second direction perpendicular to the first direction, wherein the first scaling factor is different from the second scaling factor, and the Bayer-consistent ruleset results in a Bayer-consistency coefficient C of greater than or equal to 0.65, where C is defined according to the following expression (1):
C=0.5γ+0.5β (1), where γ and β are defined according to the following expressions (2) and (3), respectively:γ=14∑cΣcsub-tile(filtercoefficientsforccoloredpixels)2Σallsub-tiles(filtercoefficientsforccoloredpixels)2,(2)β=max(1-14∑c(dchNΔh)2+(dcvMΔv)2,0),(3) where dch and dcv are the horizontal and vertical distances, respectively, between a center of gravity of the filter coefficients for the color c and a geometric pixel center of a corresponding c color output pixel, N is a horizontal scaling factor, M is a vertical scaling factor, Δh is a horizontal length of the input pixel, and Δv is a vertical length of an input pixel. |