NIFTIMetaInfo: Create NIFTI Format Metadata Object

View source: R/meta_info.R

NIFTIMetaInfoR Documentation

Create NIFTI Format Metadata Object

Description

Creates a NIFTIMetaInfo object containing format-specific metadata for NIFTI format neuroimaging files.

Usage

NIFTIMetaInfo(descriptor, nifti_header)

Arguments

descriptor

NIFTIFormat object specifying file format details

nifti_header

List containing NIFTI header information

Details

Create NIFTIMetaInfo Object

The NIFTIMetaInfo object extends MetaInfo with NIFTI-specific features:

  • NIFTI header fields (qform, sform matrices)

  • Data scaling (slope, intercept)

  • File organization (separate vs. single file)

  • Orientation information

Validation ensures:

  • Valid NIFTI format

  • Consistent dimensions

  • Valid transformation matrices

  • Proper data scaling

Value

A NIFTIMetaInfo object

See Also

MetaInfo, readNIftiHeader

Examples

## Not run: 
# Read NIFTI header
header <- readNIftiHeader("brain.nii")

# Create format descriptor
fmt <- NIFTIFormat()

# Create metadata
meta <- NIFTIMetaInfo(fmt, header)

# Check dimensions
dim(meta)

## End(Not run)


bbuchsbaum/neuroim2 documentation built on Jan. 2, 2025, 3:38 p.m.