Learn R Programming

ANTsR (version 0.3.3)

antsImagePhysicalSpaceConsistency: Check for physical space consistency

Description

Check if two antsImage objects occupy the same physical space

Usage

antsImagePhysicalSpaceConsistency(img1, img2, coordinate.tolerance = 0.01, direction.tolerance = 0.01, data.type = FALSE)

Arguments

img1
Image object of S4 class antsImage.
img2
Image object of S4 class antsImage.
coordinate.tolerance
floating point error tolerance in origin
direction.tolerance
floating point error tolerance in direction matrix
data.type
boolean, if TRUE check pixeltype and components, default is FALSE

Value

Boolean indicating consistency of physical space

Examples

Run this code

img1 <- makeImage(c(10,10), rnorm(100))
img2 <- makeImage(c(10,10), rnorm(100))
check <- antsImagePhysicalSpaceConsistency(img1, img2)


Run the code above in your browser using DataLab