Darks/flats handling improvements v2
1. API improvements
-
update_dataset_info_flats_darks()
:dataset_into.darks/flats
should benumpy.ndarray
, notDataUrl
. See the comments in function - Conversely, use
FlatField
instead ofFlatFieldDataUrls
in pipelines - Remove deprecations with
processes_file
indataset_analyzer
- Rename
FlatFieldArrays
toFlatField
(i.e do the alias the other way around)
2. Use another dataset "as" a series of flats/darks
Sometimes a sample is contained within a non-trivial medium. A full tomography of the "top" of the container is done, then this scan is used as a reference to normalize the other scans. This first scan is hereby denoted as "reference scan".
This reference scan contains only projections (?). These projections are used as flats by other datasets.
The flats reduction should be done by angular range, with a granularity defined by user. For example:
-
flat_0 = median(flat(-10), ..., flat(10))
: the reduced flat for angletheta=0
degree is obtained by reducing the projections from angle -10 degrees to 10 degrees flat_90 = median(flat(80), ..., flat(100))
Edited by Pierre Paleo