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 respective ones of the plurality of pixels 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.