showPictures: Displays a picture, such as an MNIST digit or CIFAR image...

Description Usage Arguments Value

Description

Displays a picture, such as an MNIST digit or CIFAR image Assumes the image is stored in a rowwise-fashion in the vector x

Assumes the image is stored in a rowwise-fashion.

Shows multiple colored or grayscale pictures

Usage

1
2
3
4
5
showSinglePicture(x, sidelength = NULL, col = gray(256:1/256), ...)

showSingleColorPicture(x, sidelength = NULL, normalize = TRUE, ...)

showPictures(data, nrow, ncol, idx = NULL, isColor = FALSE, ...)

Arguments

x

the data to depict, a grayscale channel in showSinglePicture, or in showSingleColorPicture it is assumed to be a vector where the first third of the elements describe the red color channel, the next ones the green channel and the last third the blue channel; in showPictures its interpretation is controlled by the parameter isColor.

sidelength

the height of the resulting picure in pixels; on NULL, a square picture is assumed

col

as passed to function image, see ?image

...

as passed to function image, see ?image

normalize

logical, whether x should be normalized

data

contains the pixel data, one picture in each column

nrow, ncol

define the arrangement of the pictures

idx

defines the enumeration of the pictures, i.e. the order in which the columns of data should be processed; on NULL, 1,2,3... is assumed

isColor

logical, indicates whether data is to be interpreted as single channel or 3-way-channel (RGB)

Value

NULL


bioinf-jku/librfn-R documentation built on May 12, 2019, 9:24 p.m.