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 class 'antsMatrix'
initialize(.Object, elementtype)

Arguments

.Object

input object to convert

elementtype

string e.g. "float"

Slots

elementtype

string of the type of storage of the matrix e.g. "float"

pointer

the memory location

Examples

mat <- as.antsMatrix(matrix(rnorm(10), nrow = 2))
as.data.frame(mat)
#>           V1         V2          V3         V4         V5
#> 1 0.34646246 -0.7476043 -0.05491287 -0.5216233 -0.3200209
#> 2 0.07104987 -0.8720899 -1.01387691 -0.6274773 -0.3834559
as.matrix(mat)
#>              V1         V2          V3         V4         V5
#> [1,] 0.34646246 -0.7476043 -0.05491287 -0.5216233 -0.3200209
#> [2,] 0.07104987 -0.8720899 -1.01387691 -0.6274773 -0.3834559