unravel.cluster_stats.crop module#
Use cstats_crop
(crop
) from UNRAVEL to load image, load bounding box, crop cluster, and save as .nii.gz.
Note
-x and -z need to be provided if the resolution is not extracted from the image metadata.
Use -a, -b, or -c to specify the crop method.
Usage with all clusters:#
cstats_crop -i path/img.nii.gz -o path/output_img.nii.gz -a [-x $XY] [-z $Z] [-v]
Usage with a bounding box:#
cstats_crop -i path/img.nii.gz -o path/output_img.nii.gz -b path/bbox.txt [-x $XY] [-z $Z] [-v]
Usage with a cluster ID:#
cstats_crop -i path/img.nii.gz -o path/output_img.nii.gz -c 1 [-x $XY] [-z $Z] [-v]