builRasterImageFromMass: Build a image slice from specified datacube masses.

Description Usage Arguments Value

View source: R/libimgramdisk.R

Description

Builds a image from the selected masses in the rMSI object. The image is returned arranged in a matrix containing each pixel value.

Usage

1
2
3
4
5
6
7
builRasterImageFromMass(
  Img,
  Mass,
  Tolerance,
  method = "max",
  Normalization = NULL
)

Arguments

Img

the rMSI object where the data is stored (ramdisk).

Mass

the slected mass.

Tolerance

a tolerance expressed in daltons around the slected mass.

method

the method used to calculate the pixel value. Can be max or mean.

Normalization

optionally a vector of the normalization factor for each pixel.

Value

list with a matrix with the same size as image size containing the pixel values, used mass and tolerance.


prafols/rMSI documentation built on Dec. 12, 2021, 7:29 p.m.