display: Basic image display.

Description Usage Arguments Examples

View source: R/graphics.R

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

1
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

1
2
3
4
5
6
7
8
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
}

ijtiff documentation built on June 28, 2021, 9:07 a.m.