dumppix outputs pixel information from a FITS image to stdout, in ASCII format. This is convenient to examine closely image values. You can also use Perl or awk to filter the output to compute basic statistics over lines of pixels.
dumppix man page