diff --git a/httomo_backends/methods_database/packages/backends/httomolib/httomolib.yaml b/httomo_backends/methods_database/packages/backends/httomolib/httomolib.yaml index 9a010f3b..9d6fd29b 100644 --- a/httomo_backends/methods_database/packages/backends/httomolib/httomolib.yaml +++ b/httomo_backends/methods_database/packages/backends/httomolib/httomolib.yaml @@ -15,6 +15,14 @@ misc: memory_gpu: None save_result_default: False padding: False + blend: + seam_blend_stitched_data: + pattern: projection + output_dims_change: True + implementation: cpu + memory_gpu: None + save_result_default: False + padding: False morph: data_reducer: pattern: all diff --git a/httomo_backends/methods_database/packages/backends/httomolib/httomolib_modules.yaml b/httomo_backends/methods_database/packages/backends/httomolib/httomolib_modules.yaml index 3e3462b6..2f0d4d5d 100644 --- a/httomo_backends/methods_database/packages/backends/httomolib/httomolib_modules.yaml +++ b/httomo_backends/methods_database/packages/backends/httomolib/httomolib_modules.yaml @@ -1,5 +1,6 @@ - httomolib.misc.utils - httomolib.misc.rescale +- httomolib.misc.blend - httomolib.misc.morph - httomolib.misc.images - httomolib.misc.segm diff --git a/httomo_backends/scripts/yaml_pipelines_generator.py b/httomo_backends/scripts/yaml_pipelines_generator.py index 1d5aad73..dd34e574 100644 --- a/httomo_backends/scripts/yaml_pipelines_generator.py +++ b/httomo_backends/scripts/yaml_pipelines_generator.py @@ -210,6 +210,17 @@ def yaml_pipelines_generator( key="metadata_path", comment="Provide an absolute path to the text file with distortion coefficients.", ) + elif "seam_blend" in method_name: + pipeline_full.yaml_set_comment_before_after_key( + i, + "--- Applying seam blending with ramp filter after data is stitched. --- ", + indent=0, + ) + pipeline_full += yaml_template_method + pipeline_full[i]["parameters"].yaml_add_eol_comment( + key="path_to_stiched_params_file", + comment="Provide an absolute path to the text file with seam index and blending width.", + ) elif "data_resampler" in method_name: pipeline_full.yaml_set_comment_before_after_key( i, diff --git a/httomo_backends/scripts/yaml_templates_generator.py b/httomo_backends/scripts/yaml_templates_generator.py index 4f16cd21..158fb92a 100644 --- a/httomo_backends/scripts/yaml_templates_generator.py +++ b/httomo_backends/scripts/yaml_templates_generator.py @@ -227,6 +227,7 @@ def _get_discard_keys() -> List[str]: "min_mem_usage_filter", "min_mem_usage_ifft2", "calc_peak_gpu_mem", + "shift_seam_index", ] return discard_keys