Learn R Programming

SPUTNIK (version 1.1)

msImage: 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.

Examples

Run this code
# NOT RUN {
## 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