genCI: Generate Classification Image (CI)

genCIR Documentation

Generate Classification Image (CI)

Description

Generate the combinaed of the noise mask (mask) and the base image.

Usage

genCI(
  response,
  stim,
  noiseMatrix,
  baseImg,
  scaling = "matched",
  outputPath = "combined.png"
)

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.

outputPath

String specifying the file path of the ouput CI. Default is '"combined.png"'.

Examples

NULL

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