- Finding the voxel size
Create a new script that stores the values of pixdim1, pixdim2 and
pixdim3 (the voxel sizes in mm) each in a separate variable for an
image, where the name is specified as the first argument.
Hint: see fslval usage in previous slide
- Displaying voxel size
Echo the value of these variables in a line of the form:
1.0 * 2.0 * 1.0
where the numbers are the stored values.
Hint: remember to use a backslash before the *
- Test the script and keep it for later modification.
Look here for the cheat.
|
|