mincIO.print-methods: Methods to Print Minc Summary Information

Description Usage Arguments Value Methods Author(s) See Also Examples

Description

The print generic function is a polymorphous function that has been overloaded to produce summary information for the full range of mincIO class objects.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
## S4 method for signature 'MincInfo'
print(x)

## S4 method for signature 'MincSlice'
print(x)

## S4 method for signature 'MincSliceIO'
print(x, ...)

## S4 method for signature 'MincVolumeIO'
print(x, ...)

## S4 method for signature 'MincVoxelIO'
print(x, ...)

Arguments

x

The object to be summarized.

...

Other yet to be defined parameters.

Value

This function is run for its side-effect.

Methods

x = "MincInfo"

Print summary information for a MincInfo object.

x = "MincSlice"

Print summary information for a MincSlice object.

x = "MincSliceIO"

Print summary information for a MincSliceIO object.

x = "MincVolumeIO"

Print summary information for a MincVolumeIO object.

x = "MincVoxelIO"

Print summary information for a MincVoxelIO object.

Author(s)

Jim Nikelski nikelski@bic.mni.mcgill.ca

See Also

mincIO.printMincInfo plot-methods

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
## Not run: 
\dontshow{
# clear debug flag and get full volume pathname
# ... dunno why zzz.R debug setting is not passed
    R_DEBUG_rmincIO <- 0      
    volDir <- system.file("packageData/volumes", package="rmincIO")
}
# print all sorts of stuff
v305 <- file.path(volDir, "average305_PET_t1_tal_lin.mnc")

volInfo <- mincIO.readMincInfo(v305)            #
print(volInfo)                                  # print volume info

vol <- mincIO.readVolume(v305)                  #
print(vol)                                      # print volume info

# get a slice and print info
sx <- mincIO.getSliceX(vol, 60)                 #
print(sx)                                       # print slice info

# read slice 80 across all frames
v4d <- file.path(volDir, "functional_4D.mnc")
sliceMatrix <- mincIO.readBySlice(v4d, 80)      # load the slice matrix
print(sliceMatrix)                              # print summary info

## End(Not run)

jnikelski/rmincIO documentation built on May 19, 2019, 2:58 p.m.