showFace: Displays Image

Description Usage Arguments Examples

Description

This function uses PCA to compute the eigenfaces and recognizes the data.

Usage

1
showFace(x, all = TRUE, method = "raster", ...)

Arguments

x

a data frame consisting the suitability scores of a given characteristics (terrain, soil, water and temperature) for a given crop (e.g. coconut, cassava, etc.);

method

the method for computing the overall suitability, which includes the "minimum", "maximum", "sum", "product", "average", "exponential" and "gamma". If NULL, "minimum" is used.

interval

if NULL, the interval used are the following: 0-25 suitable, N), 25 75 the values of the end points of the intervals.

output

the output to be returned, either the scores or class. If NULL, both are returned.

Examples

1
2
3
4
5
6
7
8
9
To reproduce this example, please refer to \code{https://github.com/alstat/rface}

# Call the Face Recognition package
library(rface)
# Import all images in the directory "data/jaffe/"
imgData <- importImages("~/Downloads/jaffe_training/", display = FALSE)

# Show imported images
showFace(imgData)

alstat/rface documentation built on May 10, 2019, 10:25 a.m.