1. A filtering method for a pixel P of a block B in a reconstructed image, comprising: selecting one of a plurality of filtering masks based upon a position of said pixel P in said block B; and averaging said pixel P and candidate pixels within the selected filtering mask.