msImage: Constructor for ms.image-class objects.

View source: R/construct_funcs.R

msImageR Documentation

Constructor for ms.image-class objects.

Description

Constructor for ms.image-class objects.

Usage

msImage(values, name = character(), scale = TRUE)

Arguments

values

numeric matrix representing the pixels intensities. Rows and columns represent the geometrical shape of the image.

name

image name.

scale

logical (default = TRUE). Whether the intensities should be scaled in [0, 1].

Value

ms.image-class object.

Author(s)

Paolo Inglese p.inglese14@imperial.ac.uk

Examples

## Load package
library("SPUTNIK")

## MS image
imShape <- c(40, 50)
matIm <- matrix(rnorm(200), imShape[1], imShape[2])
im <- msImage(values = matIm, name = "random", scale = TRUE)

SPUTNIK documentation built on Nov. 24, 2022, 5:06 p.m.