iMathOps: Operations for iMath Operator

iMathOpsR Documentation

Operations for iMath Operator

Description

Examples, description and categorization of iMath operations.

Format

A data frame listing the following variables.

Operation

Name of operation

OperationType

Enumerated type of the operation (filter, etc)

Parameters

descriptive parameters

Example

working example code

Description

free text description

OutputDimensionalityChange

NA if not image, otherwise increment to output image dimensionality relative to input image

Examples

data(iMathOps)
i <- antsImageRead(getANTsRData("r16"), 2)
roiImg <- getMask(i)
roiImg2 <- iMath(roiImg, "ME", 25)
if (sum(roiImg == 1) == sum(roiImg2 == 1)) stop("erosion failure")
roiImg2 <- iMath(roiImg, "MD", 25)
if (sum(roiImg == 1) == sum(roiImg2 == 1)) stop("dilation failure")
for (j in c(1:nrow(iMathOps)))
{
  op <- as.character(iMathOps$Operation[j])
}

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