The imstats_view is a tool that lets you specify image boxes with ds9. In each box we compute the histogram (with clip_imhist.sh), fit a peak and make a plot. This is a rather detailed process, but sometimes useful. Follow the link just given to see an example of how this can be done.