| Logic-methods | R Documentation |
Methods for performing logical operations (& and
|) on neuroimaging volume objects. Results are always returned as
LogicalNeuroVol objects that preserve spatial metadata.
## S4 method for signature 'DenseNeuroVol,DenseNeuroVol'
Logic(e1, e2)
## S4 method for signature 'SparseNeuroVol,SparseNeuroVol'
Logic(e1, e2)
## S4 method for signature 'SparseNeuroVol,NeuroVol'
Logic(e1, e2)
## S4 method for signature 'NeuroVol,SparseNeuroVol'
Logic(e1, e2)
## S4 method for signature 'NeuroVol,logical'
Logic(e1, e2)
## S4 method for signature 'logical,NeuroVol'
Logic(e1, e2)
e1, e2 |
Neuroimaging volume objects or logical values. |
A LogicalNeuroVol.
sp <- NeuroSpace(c(5L, 5L, 5L), c(1, 1, 1))
v1 <- DenseNeuroVol(array(sample(0:1, 125, replace = TRUE), c(5, 5, 5)), sp)
v2 <- DenseNeuroVol(array(sample(0:1, 125, replace = TRUE), c(5, 5, 5)), sp)
intersection <- v1 & v2
union_mask <- v1 | v2
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.