antsTransformIndexToPhysicalPoint: Get Spatial Point from Index

Description Usage Arguments Value Examples

Description

Get spatial point from index of an antsImage.

Usage

1

Arguments

x

image object of S4 class antsImage to get values from.

index

image index

Value

array of pixel values

Examples

1
2
3
4
5
6
7
8
9
img <- makeImage(c(10,10),rnorm(100))
pt <- antsTransformIndexToPhysicalPoint(img, c(2,2))
arr = as.array(img)
testthat::expect_error(
antsTransformIndexToPhysicalPoint(arr,c(2,2)), "antsImage")
testthat::expect_error(
antsTransformIndexToPhysicalPoint(img,c("2",2)), "index must be") 
testthat::expect_error(
antsTransformIndexToPhysicalPoint(img,c(2,2,2)), "matrix must be of")  

muschellij2/atropos documentation built on May 4, 2019, 3:17 p.m.