View source: R/construct_funcs.R
msImage | R Documentation |
Constructor for ms.image-class objects.
msImage(values, name = character(), scale = TRUE)
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]. |
ms.image-class object.
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.