genMask: Generate (and scale) mask from responses

View source: R/RC.R

genMaskR Documentation

Generate (and scale) mask from responses

Description

Generate (and scale) mask from responses.

Usage

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

NULL

matschmitz/schmitz documentation built on May 15, 2022, 4:15 p.m.