antsMatrix-class | R Documentation |
An S4 class to hold an antsMatrix imported from ITK types C++ type used to represent an element of the matrix pointer to the actual image C++ type 'itk::image< pixeltype , dimension >::Pointer'
## S4 method for signature 'antsMatrix'
initialize(.Object, elementtype)
.Object |
input object to convert |
elementtype |
string e.g. "float" |
elementtype
string of the type of storage of the matrix e.g. "float"
pointer
the memory location
mat <- as.antsMatrix(matrix(rnorm(10), nrow = 2))
as.data.frame(mat)
as.matrix(mat)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.