RandMatImagePatch: Create a Random Matrix: image-patch

Description Usage Arguments Value Examples

View source: R/RandMat.R

Description

Create a Random Matrix: image-patch

Usage

1
RandMatImagePatch(p, d, ih, iw, pwMin, pwMax, ...)

Arguments

p

the number of dimensions.

d

the number of desired columns in the projection matrix.

ih

the height (px) of the image.

iw

the width (px) of the image.

pwMin

the minimum patch size to sample.

pwMax

the maximum patch size to sample.

...

used to handle superfluous arguments passed in using paramList.

Value

A random matrix to use in running RerF.

Examples

1
2
3
4
5
6
7
8
p <- 28^2
d <- 8
ih <- iw <- 28
pwMin <- 3
pwMax <- 6
paramList <- list(p = p, d = d, ih = ih, iw = iw, pwMin = pwMin, pwMax = pwMax)
set.seed(8)
(a <- do.call(RandMatImagePatch, paramList))

rerf documentation built on May 2, 2019, 8:16 a.m.