| asMaskVector | R Documentation |
A mask selects spatial locations, for example to restrict voxelApply() to
a region of interest. It may be given in several forms, and this function
reduces any of them to one logical value per location.
asMaskVector(mask, spatialDims)
mask |
A logical array, a numeric array in which non-zero values are selected, a sparse image whose own mask is used, or any other image, which is treated as a numeric array. |
spatialDims |
The spatial dimensions the mask must cover, or an image or imageGeometry to take them from. |
A logical vector with one element per spatial location.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.