ijtiff (version 2.3.4)

display: Basic image display.

Description

Display an image that has been read in by read_tif() as it would look in 'ImageJ'. This function is really just EBImage::display() on the inside. If you do not have EBImage installed, a more basic display is offered.

Usage

display(img, method = NULL, basic = FALSE, normalize = TRUE)

Arguments

img

An ijtiff_img object.

method

The way of displaying images. Defaults to "browser" when R is used interactively, and to "raster" otherwise. The default behavior can be overridden by setting options("EBImage.display"). This has no effect when basic = TRUE.

basic

Force the basic (non-EBImage) display.

normalize

Normalize the image before displaying (for better contrast)? This only has an effect if the EBImage functionality is used. The basic display always normalizes.

Examples

Run this code
if (requireNamespace("EBImage")) {
  img <- read_tif(system.file("img", "Rlogo.tif", package = "ijtiff"))
  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
}

Run the code above in your browser using DataLab