hexrd.imageseries.stats module
Aggregate Statistics for Imageseries
The functions here operate on the frames of an imageseries and return a single aggregate image. For each function, there is a corresponding iterable that allows you to run the function in smaller bits; the bits are either groups of frames or groups of rows, depending on the function. The iterable returns a sequence of images, the last being the final result.
For example:
# Using the standard function call
img = stats.average(ims)
# Using the iterable with 10 chunks
for img in stats.average_iter(ims, 10):
# update progress bar
pass
NOTES
Perhaps we should rename min -> minimum and max -> maximum to avoid conflicting with the python built-ins
- hexrd.imageseries.stats.average_iter(ims, nchunk, nframes=0)[source]
average over frames
Note: average returns a float even if images are uint