1. A method of detecting block noise in an image, the method, comprising: computing difference magnitudes in pixel values for adjacent pixels in the image; eliminating a set of difference magnitudes from the difference magnitudes resulting from features in the image; applying a median filter to the image to generate an output; subtracting the output from the difference magnitudes; performing edge detection in the image to detect edge pixel locations.