Learn R Programming

VBmix (version 0.3.2)

pixmapToVector:

Description

converts a pixmapGrey object to a numeric vector. The pixel matrix is casted to a vector by appending successive columns.

Usage

pixmapToVector(p)

Arguments

p
pixmapGrey object.

Value

numeric vector containing pixel intensities.

See Also

pixmapGrey reBuild readPixmapFile

Examples

Run this code
# use with path to actual train-... file
#temp <- readPixmapFile("data/train-images-idx3-ubyte")
#temp2 <- pixmapToVector(temp[[3]])

Run the code above in your browser using DataLab