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")#>#>#> [,1] [,2] #> [1,] 1 3 #> [2,] 2 4 #> ── TIFF tags ───────────────────────────────────────────────────────────────────#>img <- array(seq_len(2^3), dim = rep(2, 3)) # 1 channel, 2 frame ijtiff_img(img, description = "blah blah blah")#>#>#> [,1] [,2] #> [1,] 1 3 #> [2,] 2 4 #> ── TIFF tags ───────────────────────────────────────────────────────────────────#>img <- array(seq_len(2^3), dim = c(2, 2, 2, 1)) # 2 channel, 1 frame ijtiff_img(img, description = "blah blah")#>#>#> [,1] [,2] #> [1,] 1 3 #> [2,] 2 4 #> ── TIFF tags ───────────────────────────────────────────────────────────────────#>#>#>#> [,1] [,2] #> [1,] 1 3 #> [2,] 2 4 #> ── TIFF tags ───────────────────────────────────────────────────────────────────#>