genMask: Generate (and scale) mask from responses

Description Usage Arguments Value Examples

View source: R/RC.R

Description

Generate (and scale) mask from responses.

Usage

1
genMask(response, stim, noiseMatrix, baseImg, scaling = "matched")

Arguments

response

Numerical vector specifying the reponses.

stim

Numerical vector specifying the stimuli number.

noiseMatrix

Matrix of noise pattern as generated with noiseMatrix <- rcirc::generateStimuli2IFC(..., return_as_dataframe = TRUE).

baseImg

Numerical vector containing the baseImg image or string pointing to the baseImg image file. If baseImg is a string, then the baseImg image must in .png or .jpeg.

scaling

String|Scalar|NULL specifying the scaling method. '"matched"' is the default method. If a scalar is provided (e.g. 5) than the '"constant"' method will be applied. If 'NULL' no scaling is applied.

Value

List with the (un)scaled Noise mask ($mask) and the base image as a vector ($baseImgVect).

Examples

1

matschmitz/schmitz documentation built on Dec. 10, 2019, 10:50 a.m.