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:
Type of pixel (scalar, vector, etc).
Type of pixel values (int, float, etc).
Number of image dimensions.
Number of pixel dimensions.
Size of image dimensions.
Pixel resolution.
Spatial origin of image
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.