Learn R Programming

SPUTNIK (version 1.4.2)

msImage: Constructor for ms.image-class objects.

Description

Constructor for ms.image-class objects.

Usage

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

Value

ms.image-class object.

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].

Author

Paolo Inglese p.inglese14@imperial.ac.uk

Examples

Run this code
## 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)

Run the code above in your browser using DataLab