powered by
Constructor for ms.image-class objects.
msImage(values, name = character(), scale = TRUE)
ms.image-class object.
numeric matrix representing the pixels intensities. Rows and columns represent the geometrical shape of the image.
image name.
logical (default = TRUE). Whether the intensities should be scaled in [0, 1].
Paolo Inglese p.inglese14@imperial.ac.uk
## 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