antsMatrix_class: antsMatrix Class

antsMatrix-classR Documentation

antsMatrix Class

Description

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'

Usage

## S4 method for signature '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)
as.matrix(mat)

stnava/ANTsR documentation built on April 16, 2024, 12:17 a.m.