Skip to content

Commit

Permalink
Updated project files
Browse files Browse the repository at this point in the history
  • Loading branch information
Arman committed Sep 25, 2024
1 parent 76dce6c commit 0ea21ae
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions registration_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,20 @@
# ----------------------------------------------- MAIN FUNCTIONS ------------------------------------------------------

def rigid_registration(fixed_image_path, moving_image_path, registered_image_path, transform_matrix_path):
"""
Function to perform rigid registration between two images.
Parameters
fixed_image_path : str: Path to the fixed image.
moving_image_path : str: Path to the moving image.
registered_image_path : str: Path to the registered image.
transform_matrix_path : str: Path to the transform matrix.
Returns:
None.
Side Effects:
Saves registered image and transform matrix to disk (to registered_image_path and transform_matrix_path).
"""
# Read the images
fixed_image = sitk.ReadImage(fixed_image_path, sitk.sitkFloat32)
moving_image = sitk.ReadImage(moving_image_path, sitk.sitkFloat32)
Expand Down

0 comments on commit 0ea21ae

Please sign in to comment.