View source: R/class_constructors.R
| as_EBImage | R Documentation | 
This is for interoperability with the the EBImage package.
as_EBImage(img, colormode = NULL, scale = TRUE, force = TRUE)
| img | An ijtiff_img object (or something coercible to one). | 
| colormode | A numeric or a character string containing the color mode
which can be either  | 
| scale | Scale values in an integer image to the range  | 
| force | This function is designed to take ijtiff_imgs as input. To
force any old array through this function, use  | 
The guess for the colormode is made as follows: * If img has an attribute
color_space with value "RGB", then colormode is set to "Color". *
Else if img has 3 or 4 channels, then colormode is set to "Color". *
Else colormode is set to "Grayscale".
An EBImage::Image.
if (rlang::is_installed("EBImage")) {
  img <- read_tif(system.file("img", "Rlogo.tif", package = "ijtiff"))
  str(img)
  str(as_EBImage(img))
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.