Skip to content

Commit d7bfecb

Browse files
committed
Use biased center
1 parent cbb5a66 commit d7bfecb

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

derotation/analysis/full_derotation_pipeline.py

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -189,10 +189,14 @@ def load_data(self):
189189
logging.info(f"Filename: {self.filename}")
190190

191191
# by default the center of rotation is the center of the image
192-
self.center_of_rotation = (
193-
self.num_lines_per_frame // 2,
194-
self.num_lines_per_frame // 2,
195-
)
192+
if not self.config["biased_center"]:
193+
self.center_of_rotation = (
194+
self.num_lines_per_frame // 2,
195+
self.num_lines_per_frame // 2,
196+
)
197+
else:
198+
self.center_of_rotation = tuple(self.config["biased_center"])
199+
196200
self.hooks = {}
197201
self.rotation_plane_angle = 0
198202
self.rotation_plane_orientation = 0

derotation/config/full_rotation.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,3 +37,5 @@ analog_signals_processing:
3737
interpolation:
3838
line_use_start: True
3939
frame_use_start: True
40+
41+
biased_center: [129, 121]

0 commit comments

Comments
 (0)