D number of pixels, wherein D is an integer not equal to M, wherein the pyramid filter includes:a plurality of delay elements for storing a set of pixels selected from the intermediate pixel values, each set being separated by 2N pixels of the intermediate pixel values, wherein N is an integer; a plurality of multiplier circuits, each multiplier circuit being coupled to one delay element; a plural