Commit bdfb774d authored by Pierre Paleo's avatar Pierre Paleo
Browse files

Activate rotation if tilt is detected

parent e1ff166c
......@@ -247,7 +247,7 @@ class ProcessConfig:
if self.get_radios_rotation_mode() == "chunk":
tasks.append("rotate_projections")
options["rotate_projections"] = {
"angle": nabu_config["preproc"]["rotate_projections"],
"angle": nabu_config["preproc"]["rotate_projections"] or dataset_infos.detector_tilt,
"center": nabu_config["preproc"]["rotate_projections_center"],
"mode": "chunk",
}
......@@ -291,7 +291,7 @@ class ProcessConfig:
tasks.append("rotate_projections")
options["rotate_projections"] = {
"angle": nabu_config["preproc"]["rotate_projections"],
"center": nabu_config["preproc"]["rotate_projections_center"],
"center": nabu_config["preproc"]["rotate_projections_center"] or dataset_infos.detector_tilt,
"mode": "full",
}
#
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment