images2matrix: Convert image files into matrix from folder. Each row...

Description Usage Arguments Value Examples

Description

Convert image files into matrix from folder. Each row corresponds to one image

Usage

1
images2matrix(inputFolder, w = 28, h = 28, class)

Arguments

inputFolder

Folder that content supported image bmp, jpeg, bnp.

w

The resized width of image (pixels).

h

The resized length of image (pixels)

class

class label as integer (1, 2, 3,...).

Value

a data frame. The first column is the label of each image. the other column are the value of the pixels.

Examples

1
2
3
4
## Not run: 
images2matrix("folder/path/", w= 28, h = 28, class= 1)

## End(Not run)

kmezhoud/papSmear documentation built on May 25, 2019, 8:32 p.m.