importImages: Import Images

Description Usage Arguments Details See Also Examples

Description

Import images from the folder.

Usage

1
importImages(path = ".", display = FALSE)

Arguments

path

string input; directory of the folder, default is set to the working directory.

display

boolean input; toggle display of the images.

Details

The path of the folder should end with /, so that function will import all filenames following that symbol.

See Also

EBImage::readImage

Examples

1
2
3
4
5
library(fr)

# Import all images in the directory "data/jaffe/"
imgData <- importImages("~/Documents/Data/jaffe/")
showFace(imgData) # display the images

alstat/face documentation built on May 11, 2019, 11:29 p.m.