Skip to content

Commit

Permalink
Cast moving/fixed to output pixel type
Browse files Browse the repository at this point in the history
  • Loading branch information
Evert de Man committed Nov 22, 2024
1 parent 577520a commit 107b611
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions ants/registration/registration.py
Original file line number Diff line number Diff line change
Expand Up @@ -416,12 +416,13 @@ def registration(
# initx = invertAntsrTransform( initx )
# writeAntsrTransform( initx, tempTXfilename )
# initx = tempTXfilename

moving = moving.clone(output_pixel_type)
fixed = fixed.clone(output_pixel_type)
# NOTE: this may be better for general purpose applications: TBD
# moving = ants.iMath( moving.clone("float"), "Normalize" )
# fixed = ants.iMath( fixed.clone("float"), "Normalize" )
warpedfixout = moving.clone(output_pixel_type)
warpedmovout = fixed.clone(output_pixel_type)
warpedfixout = moving.clone()
warpedmovout = fixed.clone()
f = get_pointer_string(fixed)
m = get_pointer_string(moving)
wfo = get_pointer_string(warpedfixout)
Expand Down

0 comments on commit 107b611

Please sign in to comment.