View source: R/antsImageHeaderInfo.R
antsImageHeaderInfo | R Documentation |
Read file info from image header
antsImageHeaderInfo(filename)
filename |
name of image file to scan for info |
outputs a list containing:
pixelclass: Type of pixel (scalar, vector, etc).
pixeltype: Type of pixel values (int, float, etc).
nDimensions: Number of image dimensions.
nComponents: Number of pixel dimensions.
dimensions: Size of image dimensions.
spacing: Pixel resolution.
origin: Spatial origin of image
pixelclass: Spatial directions of image axes.
Duda JT
antsImageHeaderInfo(getANTsRData("r16"))
img <- antsImageRead(getANTsRData("r16"))
antsImageHeaderInfo(img)
antsImageHeaderInfo(getANTsRData("r16"))
testthat::expect_error(antsImageHeaderInfo(""))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.