imageMatrix {tofsims} | R Documentation

## generic method to obtain imageMatrix

### Description

generic method to obtain imageMatrix

Method imageMatrix for class MassImage

### Usage

    imageMatrix(object, ...)

    ## S4 method for signature 'MassImage'
    imageMatrix(object)

    ## S4 method for signature 'PCA'
    imageMatrix(object, comp, ...)

### Arguments

`object` | object of class MassImage
`...` | additional args
`comp` | numeric which component

### Value

numeric matrix

matrix numeric

### Examples

    library(tofsimsData)
    data(tofsimsData)
    ## the TIC matrix can be extracted
    dataMatrix <- imageMatrix(testImage)
    dim(dataMatrix)
    ## the matrix can be visualized with the
    ## normal image() function
    image(dataMatrix)

[Package tofsims version 1.8.0 Index]