plotImage: Plot an image

Description Usage Arguments Details Examples

Description

Plot an image

Usage

1
plotImage(image, type = "original", grayscale = FALSE, main = "")

Arguments

image

matrix of pixel values to be plotted

type

either "original" for images on the original scale (pixel values 0-255), "residuals" for residual pixel values (-255 to 255), or "any" for plotting using the range available (i.e. the minimum value is plotted as black and the maximum is white, with a linear scale for intermediate values). "original" is the default.

grayscale

logical value indicating whether or not the grayscale is to be plotted. FALSE is the default.

main

title for plots with grayscale. The default is an empty string.

Details

This function plots an image in the same orientation as the matrix of pixel values, i.e. the top-left pixel of the image is the first entry of the matrix, and the bottom-right pixel is the last entry.

Examples

1
2
3
4
## Not run: 
plotImage(processedExample, type = "any")

## End(Not run)

xhtai/cartridges documentation built on June 1, 2019, 2:58 p.m.