load_pgm_images: Load pgm Images.

Description Usage Arguments Value Examples

View source: R/pca.R

Description

Load (new) image(s) to compute eigenfaces or search similar faces in the training data set. Only images in the pgm image format (greymap) are supported.

Usage

1
load_pgm_images(path, pattern = NULL, max_images = 0L)

Arguments

path

character; Specify the path to the image(s). (required)

pattern

character; Regular expression used to filter images of the data set. Only image files matching the RegEx will be used. (optional)

max_images

integer, Number of images that will be loaded. (optional)

Value

A double vector containing the loaded image(s).

Examples

1
2
3
4
5
6
## Not run: 
images <- load_pgm_images("C:/Users/me/data/lfwcrop_grey/faces",
                          pattern="(0001)|(0002)|(0003)|(0004)",
                          max_images=1000L)

## End(Not run)

JohannesKlueh/REigenfaces documentation built on Oct. 24, 2020, 7:45 p.m.