CerebNet.apply_warp¶
- CerebNet.apply_warp.main(img_path, lbl_path, warp_path, result_path, patch_size)[source]¶
Load, warp, crop, and save both an image and its corresponding label based on a given warp field.
- Parameters:
- img_path
Path
,str
Path to the T1-weighted MRI image to be warped.
- lbl_path
Path
,str
Path to the label image corresponding to the T1 image, to be warped similarly.
- warp_path
Path
,str
Path to the warp field file used to warp the images.
- result_path
Path
,str
Directory path where the warped and cropped images will be saved.
- patch_size
tuple
of
int
The dimensions (height, width, depth) cropped images after warping.
- img_path