fslmaths erode
# FSL: fsl dilate or fsl erode:
# Kernel operations (set BEFORE filtering operation if desired):
# -kernel 3D : 3x3x3 box centered on target voxel (set as default kernel)
# -kernel 2D : 3x3x1 box centered on target voxel
# Spatial Filtering operations:
# N.B. all options apart from -s use the default kernel or that
# previously specified by -kernel
# -dilM : Mean Dilation of non-zero voxels
# -dilD : Modal Dilation of non-zero voxels
# -dilF : Maximum filtering of all voxels
# -dilall : Apply -dilM repeatedly until the entire FOV is covered
# -ero : Erode by zeroing non-zero voxels when zero voxels found in kernel
# -eroF : Minimum filtering of all voxels
# dilation example
# -odt sets the output data type.
# odt options are char short int float double
fslmaths mask -kernel 3D -dilM mask -odt short
# erosion example
fslmaths mask -kernel 2D -ero mask -odt short
Are there any code examples left?
New code examples in category Shell/Bash
-
Shell/Bash 2022-03-27 22:30:33 wise highlight ubuntu
-
Shell/Bash 2022-03-27 22:25:19 how to send a pull request in git
-
Shell/Bash 2022-03-27 21:55:06 how to open terminal in sublime text ubuntu
-
Shell/Bash 2022-03-27 21:25:19 how to switch branch
-
Shell/Bash 2022-03-27 21:20:25 python
-
Shell/Bash 2022-03-27 21:20:04 set user as admin gitlab
-
Shell/Bash 2022-03-27 21:10:09 apache2 mod_jk proxy to tomcat connector
-
Shell/Bash 2022-03-27 20:35:12 chown
-
Shell/Bash 2022-03-27 20:15:08 awk last match