httomo.transform_layer.TransformLayer#

class httomo.transform_layer.TransformLayer(comm: mpi4py.MPI.Comm, repo=httomo_backends.methods_database.query.MethodDatabaseRepository, save_all=False, out_dir: PathLike | None = None)[source]#

Methods

__init__(comm[, repo, save_all, out_dir])

insert_data_reducer(pipeline)

This will always insert data reducer as method 0 right after the loader

insert_globstats_after_sweep(pipeline)

Global statistics method is inserted to perform data rescaling before image saving

insert_rescaletoint_after_stats_sweep(pipeline)

Data rescaler goes after global statistics method.

insert_save_images_after_sweep(pipeline)

For sweep methods we add image saving method after the global statistics and rescaler methods.

insert_save_methods(pipeline)

transform(pipeline)

insert_data_reducer(pipeline: Pipeline) Pipeline[source]#

This will always insert data reducer as method 0 right after the loader

insert_globstats_after_sweep(pipeline: Pipeline) Pipeline[source]#

Global statistics method is inserted to perform data rescaling before image saving

insert_rescaletoint_after_stats_sweep(pipeline: Pipeline) Pipeline[source]#

Data rescaler goes after global statistics method. Note that currently the intermediate data will be also saved as rescaled.

insert_save_images_after_sweep(pipeline: Pipeline) Pipeline[source]#

For sweep methods we add image saving method after the global statistics and rescaler methods.

insert_save_methods(pipeline: Pipeline) Pipeline[source]#
transform(pipeline: Pipeline) Pipeline[source]#