1. A method of context-adaptive pixel processing comprising: classifying, via an electronic device, a first plurality of pixels of a frame into one class of a plurality of classes; determining a respective weighting-value for each of the first plurality of pixels of the frame, wherein each weighting-value is based at least in part on a comparison of a classification of a particular one of the pixels with a classification of other pixels near the particular pixel; and smoothing one or more of the weighting-values.