Commit d8fd866c authored by bliss administrator's avatar bliss administrator
Browse files

Move roi profiles check size to avoid sinogram error due to a different

scatter plot axis size + Improve parameters estimation for pcotomo +
Correction of bugs
parent a16eac94
......@@ -681,25 +681,6 @@ class TomoCcd(TomoParameters):
counters = [self.detector.image]
if sinogram:
for roi_name in self.detector.roi_profiles.keys():
roi = self.detector.roi_profiles.get(roi_name)
if (
roi.x + roi.width > self.detector.image.width
or roi.y + roi.height > self.detector.image.height
):
log_warning(
self,
f"roi profile {roi_name} is going to be removed because it does not fit into image roi",
)
self.detector.roi_profiles.remove(roi_name)
if len(self.detector.roi_profiles.get_rois()) == 0:
self.detector.roi_profiles["sino"] = [
0,
self.detector.image.height / 2,
self.detector.image.width,
1,
]
counters = [self.detector]
builder = ChainBuilder(counters)
......
This diff is collapsed.
Markdown is supported
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