1. An apparatus configured to filter an image, comprising: a memory; and a processor coupled to the memory, the processor, in conjunction with the memory, configured to: calculate a perceptual masking factor at a pixel location at a block boundary of the image, calculate a parameter for a filter at the pixel location at the block boundary, and filter the image around the pixel location at the block boundary employing the filter with the calculated parameter.