Description Usage Arguments Value Author(s) Examples
Convert/coerce an antsImage
object to a numeric vector
. More precisely, extract a numeric vector
from an antsImage
.
1 | as.numeric( x [, mask] [, region] )
|
x |
Image object of S4 class 'antsImage' to be coerced. |
mask |
|
region |
|
numeric vector
of dimensions equal to that of 'region' considered – Success ; NA – Failure
Shrinidhi KL
1 2 3 4 5 6 | ## Not run:
# extract a vector from an image 'img' of class 'antsImage' by considering only the region starting at index (1,1,1) with size (10,10,10)
reg = new( "antsRegion" , index = c(1,1,1) , size = c(10,10,10) )
vect = as.numeric( img , region = reg )
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.