Add files via upload

This commit is contained in:
David Rotermund 2024-02-27 18:18:47 +01:00 committed by GitHub
parent d211fd7050
commit 82dcb250c5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 4 additions and 0 deletions

View file

@ -26,6 +26,7 @@ def perform_donor_volume_rotation(
]: ]:
mylogger.info("Calculate rotation between donor data and donor ref image") mylogger.info("Calculate rotation between donor data and donor ref image")
angle_donor = calculate_rotation( angle_donor = calculate_rotation(
input=donor, input=donor,
reference_image=ref_image_donor, reference_image=ref_image_donor,
@ -43,6 +44,7 @@ def perform_donor_volume_rotation(
mylogger.info("Average over both rotations") mylogger.info("Average over both rotations")
angle_donor_volume = (angle_donor + angle_volume) / 2.0 angle_donor_volume = (angle_donor + angle_volume) / 2.0
angle_donor_volume *= 0.0
mylogger.info("Rotate acceptor data based on the average rotation") mylogger.info("Rotate acceptor data based on the average rotation")
for frame_id in range(0, angle_donor_volume.shape[0]): for frame_id in range(0, angle_donor_volume.shape[0]):

View file

@ -45,6 +45,8 @@ def perform_donor_volume_translation(
mylogger.info("Average over both translations") mylogger.info("Average over both translations")
tvec_donor_volume = (tvec_donor + tvec_volume) / 2.0 tvec_donor_volume = (tvec_donor + tvec_volume) / 2.0
tvec_donor_volume *= 0.0
mylogger.info("Translate acceptor data based on the average translation vector") mylogger.info("Translate acceptor data based on the average translation vector")
for frame_id in range(0, tvec_donor_volume.shape[0]): for frame_id in range(0, tvec_donor_volume.shape[0]):
acceptor[frame_id, ...] = tv.transforms.functional.affine( acceptor[frame_id, ...] = tv.transforms.functional.affine(