spatial_gradient | R Documentation |
The spatial_gradient function calculates the spatial gradient of a NeuroVol
instance within the specified mask.
spatial_gradient(vol, mask, sigma = 0.5)
vol |
A |
mask |
A |
sigma |
A numeric value controlling the spatial weighting function. Default is 0.5. |
A NeuroVol
instance containing the spatial gradient values for the input vol
.
spatial_laplacian
, weighted_spatial_adjacency
mask <- NeuroVol(array(1, c(20,20,20)), NeuroSpace(c(20,20,20)))
input_vol <- NeuroVol(array(runif(202020), c(20,20,20)),
NeuroSpace(c(20,20,20)))
gradient_vol <- spatial_gradient(input_vol, mask)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.