1. A method for converting input data produced by sampling a color image having pixels arranged in a first grid into output data resulting in a reproduction of the color image having pixels arranged in a second grid, each pixel of the input data and of the output data comprising a plurality of sub-pixels, each sub-pixel of a pixel being associated with a color component of the color image, the method comprising: (a) producing a sub-pixel of a color component of the output data by filtering the sub-pixels of the corresponding color component of the input data using a filtering function locally related to this sub-pixel of the output data.