data duplication
The parameter stitching/avoid_data_duplication allows you to activate or deactivate data duplication with some limitations / rules (see below)
[stitching]
...
avoid_data_duplication = True
Warning
Avoiding data duplication relies on HDF5 mechanisms. Nevertheless those are limited. For example we cannot redefine a way to read a dataset (from the right to the left for example). This is why, to avoid data duplication, you must make sure frames are not flipped from one volume to the other.
pre-processing stitching
If stitching is done over projections, as the output provides flat-field normalized projection it will always duplicate data, except when the projections of the are already normalized and
avoid_data_duplication is set to True.
post-processing stitching
If stitching is done over reconstructed volumes, then in any case the stitching areas between volumes will be created (as this is new). But the remaining area will correspond to raw volumes, and we can avoid copying this part (for HDF5 input and output volumes only).
If avoid_data_duplication is set to True, then the part corresponding to the raw volume will simply be linked to the original reconstructed volumes.
Warning
if avoid_data_duplication is True this also means that the stitched reconstructed volume will contain relative links to the reconstructed volumes. So if those are moved / removed or if the stitched volume is moved this means that the links will break.