builRasterImageFromCols: Build a image slice from specified datacube columns.

Description Usage Arguments Value

View source: R/libimgramdisk.R

Description

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

Usage

1
builRasterImageFromCols(Img, Cols, method = "max", Normalization = NULL)

Arguments

Img

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

Cols

the columns indexes from which data will be taken.

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

a matrix with the same size as image size containing the pixel values.


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