Make a version of `compute_pixel_statistics` which operates on a single channel rather than on an iterable.