Local image information

Is there a standard measure of local information?
Let’s say a portion of an image mostly a single color, or too dark or saturated to contain useful information, is there a good operator to return a pixel-wise local measure of this?