Skip to contents

Display an image that has been read in by read_tif() as it would look in 'ImageJ'. This function is really just imager's plot.cimg() on the inside, with some handling.

Usage

display(img, ...)

Arguments

img

An ijtiff_img object.

...

Passed to imager's `plot.cimg().

Examples

img <- read_tif(system.file("img", "Rlogo.tif", package = "ijtiff"))
#> Reading image from /usr/local/lib/R/site-library/ijtiff/img/Rlogo.tif
#> Reading an 8-bit, float image with dimensions 76x100x4x1 (y,x,channel,frame) . . .
display(img)

display(img[, , 1, 1]) # first (red) channel, first frame

display(img[, , 2, ]) # second (green) channel, first frame

display(img[, , 3, ]) # third (blue) channel, first frame

display(img, basic = TRUE) # displays first (red) channel, first frame
#> Warning: "basic" is not a graphical parameter