Learn R Programming

OpenImageR (version 1.3.0)

imageShow: display an image

Description

This function displays an image

Usage

imageShow(file_path, clear_viewer = FALSE)

Value

displays an image

Arguments

file_path

if file_path is a character string, then a shiny application is utilized. If file_path is a matrix, data.frame OR a 3-dimensional array (where the third dimension is equal to 3) then the grid.raster function of the base grid package is used.

clear_viewer

a boolean. If TRUE then the previous image will be removed in the viewer before displaying the next one

Details

This function displays an image using either a character path, a 2- or a 3-dimensional object where the third dimension is equal to 3

Examples

Run this code

# path = system.file("tmp_images", "1.png", package = "OpenImageR")

# imageShow(path)

Run the code above in your browser using DataLab