as.raster.ijtiff_img: Convert an ijtiff_img object to a raster object for plotting
Description
This function converts an ijtiff_img object to a raster object that can
be used with base R graphics functions. The function extracts the first frame
of the image and converts it to an RGB raster representation.
Usage
# S3 method for ijtiff_img
as.raster(x, ...)
Value
A raster object compatible with graphics::plot.raster(). The
raster will represent the first frame of the input image.
Arguments
x
An ijtiff_img object. This should be a 4D array with
dimensions representing (y, x, channel, frame).