unravel.warp.to_fixed module#

Use warp_to_fixed from UNRAVEL to forward warp a moving image (e.g., from atlas space) to fixed image space (e.g., tissue space). The input/output do not need padding.

Note

  • Run this from the folder containing reg_outputs.

  • This script is for warping between different atlas spaces. For warping from atlas space to tissue space, use to_native.

Usage:#

warp_to_fixed -f reg_inputs/autofl_50um_masked.nii.gz -m path/moving_img.nii.gz -o path/warped_img.nii.gz [-ro reg_outputs] [-fri autofl_50um_masked_fixed_reg_input.nii.gz] [-i multiLabel] [-v]

unravel.warp.to_fixed.parse_args()[source]#
unravel.warp.to_fixed.calculate_padded_dimensions(original_dimensions, pad_fraction=0.15)[source]#
unravel.warp.to_fixed.forward_warp(fixed_img_path, reg_outputs_path, fixed_reg_in, moving_img_path, interpol, output=None)[source]#

Warp image from atlas space to tissue space and scale to full resolution

unravel.warp.to_fixed.main()[source]#