Learn R Programming

ANTsR (version 1.0)

antsImagePhysicalSpaceConsistency: Check for physical space consistency

Description

Check if two antsImage objects occupy the same physical space

Usage

antsImagePhysicalSpaceConsistency(img1, img2, coordinate.tolerance = 1e-06,
  direction.tolerance = 1e-06)

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

Value

Boolean indicating consistency of physical space

Examples

Run this code
# NOT RUN {
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