antsMatrix_class.Rd
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 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
#> V1 V2 V3 V4 V5 #> 1 -1.566553 0.4912507 -0.02955138 2.0067201 0.7381628 #> 2 -0.407824 0.9052590 -0.54550874 -0.1244967 0.9815328as.matrix(mat)#> V1 V2 V3 V4 V5 #> [1,] -1.566553 0.4912507 -0.02955138 2.0067201 0.7381628 #> [2,] -0.407824 0.9052590 -0.54550874 -0.1244967 0.9815328