Learn R Programming

ANTsR (version 0.3.3)

antsImageHeaderInfo: Read file info from image header

Description

Read file info from image header

Usage

antsImageHeaderInfo(filename)

Arguments

filename
name of image file to scan for info

Value

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.

Examples

Run this code
antsImageHeaderInfo( getANTsRData("r16") )  

Run the code above in your browser using DataLab