Learn R Programming

ANTsR (version 0.3.1)

antsImage-class: An S4 class for an antsImage

Description

C++ type used to represent an ITK image pointed to by 'pointer'. the actual image is of C++ type 'itk::image< pixeltype , dimension >::Pointer'

Usage

# S4 method for antsImage
show(object)

# S4 method for antsImage initialize(.Object, pixeltype = "float", dimension = 3, components = 1)

# S4 method for antsImage dim(x)

# S4 method for antsImage min(x)

# S4 method for antsImage max(x)

# S4 method for antsImage var(x)

# S4 method for antsImage sd(x)

# S4 method for antsImage is.na(x)

# S4 method for antsImage as.numeric(x, mask = logical(), region = new("antsRegion", index = integer(), size = integer()))

# S4 method for antsImage as.matrix(x, mask = logical(), region = new("antsRegion", index = integer(), size = integer()))

# S4 method for antsImage as.array(x, mask = logical(), region = new("antsRegion", index = integer(), size = integer()))

# S4 method for antsImage,ANY ==(e1, e2)

# S4 method for antsImage,ANY !=(e1, e2)

# S4 method for antsImage,ANY <=(e1, e2)

# S4 method for antsImage,ANY >=(e1, e2)

# S4 method for antsImage,ANY <(e1, e2)

# S4 method for antsImage,ANY >(e1, e2)

Arguments

object

input object to convert

.Object

input object to convert

pixeltype

string e.g. "float" "unsigned char" "int"

dimension

dimensionality of the image

components

number of components per pixel

x

input object to convert

mask

mask for the region

region

antsRegion for the image

e1

internal control for types

e2

internal control for types

Methods (by generic)

  • show:

  • initialize:

  • dim:

  • min:

  • max:

  • var:

  • sd:

  • is.na:

  • as.numeric:

  • as.matrix:

  • as.array:

  • ==:

  • !=:

  • <=:

  • >=:

  • <:

  • >:

Slots

pixeltype

usually float, can be other types unsigned char, int, double etc noting that short is not supported

dimension

usually 2 or 3 but can be 4

components

number of pixel components

pointer

the memory location