Description Usage Arguments Details Value Author(s) Examples
Get a binary mask image from the given image after thresholding.
1 |
img |
Input image. Can be a filename of a 3D image or an |
lowThresh |
An inclusive lower threshold for voxels to be included in the mask. |
highThresh |
An inclusive upper threshold for voxels to be included in the mask. |
cleanup |
If |
If cleanup
is TRUE
, the following steps are applied
Erosion with radius 2 voxels
Retain largest component
Dilation with radius 1 voxel
Morphological closing
These functions are available in ImageMath, see the operations “ME”, “GetLargestComponent”, “MD”, “FillHoles”.
Object of type antsImage
containing the masked image. The voxel
intensities will be binarized, 1 for voxels in the mask and 0 outside.
Shrinidhi KL, Cook PA
1 2 3 4 5 | ## Not run:
# input_img.nii is a 3D image
mask_img <- get_mask( "input_img.nii" , 500 , 1e9 )
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.