View source: R/class_constructors.R
ijtiff_img | R Documentation |
ijtiff_img
class.A class for images which are read or to be written by the ijtiff
package.
ijtiff_img(img, ...)
as_ijtiff_img(img, ...)
img |
An array representing the image.
|
... |
Named arguments which are set as attributes. |
A 4 dimensional array representing an image, indexed by img[y, x, channel, frame]
, with selected attributes.
img <- matrix(1:4, nrow = 2) # to be a single-channel, grayscale image
ijtiff_img(img, description = "single-channel, grayscale")
img <- array(seq_len(2^3), dim = rep(2, 3)) # 1 channel, 2 frame
ijtiff_img(img, description = "blah blah blah")
img <- array(seq_len(2^3), dim = c(2, 2, 2, 1)) # 2 channel, 1 frame
ijtiff_img(img, description = "blah blah")
img <- array(seq_len(2^4), dim = rep(2, 4)) # 2 channel, 2 frame
ijtiff_img(img, software = "R")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.