TomographicImaging / CIL

A versatile python framework for tomographic imaging
https://tomographicimaging.github.io/CIL/
Apache License 2.0
97 stars 45 forks source link

Average along one axis DataSetProcessor #30

Closed paskino closed 11 months ago

paskino commented 6 years ago

It may be useful to have a DataSetProcessor to calculate the average of a DataSet along an axis and collapse that axis. For instance, when flats and darks are calculated they are a stack of N images. It may be useful to have a processor that averages the slices out and creates a 2D DataSet out of it.

paskino commented 2 years ago

Check if the mean method of a datacontainer can be used with the axis parameter.

https://github.com/TomographicImaging/CIL/blob/0ffe468218c888ae4a9b1bc1f4e8015738314d30/Wrappers/Python/cil/framework/framework.py#L2701

https://numpy.org/doc/stable/reference/generated/numpy.mean.html

gfardell commented 11 months ago

closed by #1515