plotImage: Display an image in a plot window

Description Usage Arguments Details Value Examples

View source: R/01_raw_image_handling.R

Description

Plots an image as an image.

Usage

1
plotImage(img)

Arguments

img

Either a path to an image or a loadImage object.

Details

Redundant, but a nice sanity check. Used in a few other functions in colordistance package. Takes either a path to an image (RGB or PNG) or an image object as read in by loadImage.

Value

A plot of the provided image in the current plot window.

Examples

1
2
3
4
5
colordistance::plotImage(system.file("extdata",
"Heliconius/Heliconius_A/Heliconius_01.jpeg", package="colordistance"))
colordistance::plotImage(loadImage(system.file("extdata",
"Heliconius/Heliconius_A/Heliconius_01.jpeg", package="colordistance"),
lower=rep(0.8, 3), upper=rep(1, 3)))

colordistance documentation built on March 21, 2021, 1:06 a.m.