generateStimuli2IFC: Generates 2IFC stimuli

Description Usage Arguments Details Value

View source: R/rcicr_2IFC.R

Description

Generate stimuli for 2 images forced choice reverse correlation task.

Usage

1
2
3
4
generateStimuli2IFC(base_face_files, n_trials = 770, img_size = 512,
  stimulus_path = "./stimuli", label = "rcic", use_same_parameters = TRUE,
  seed = 1, maximize_baseimage_contrast = TRUE, noise_type = "sinusoid",
  nscales = 5, sigma = 25)

Arguments

base_face_files

List containing base face file names (jpegs) used as base images for stimuli

n_trials

Number specifying how many trials the task will have (function will generate two images for each trial per base image: original and inverted/negative noise)

img_size

Number specifying the number of pixels that the stimulus image will span horizontally and vertically (will be square, so only one integer needed)

stimulus_path

Path to save stimuli and .Rdata file to

label

Label to prepend to each file for your convenience

use_same_parameters

Boolean specifying whether for each base image, the same set of parameters is used, or unique set is created for each base image

seed

Integer seeding the random number generator (for reproducibility)

maximize_baseimage_contrast

Boolean specifying wheter the pixel values of the base image should be rescaled to maximize its contrast.

noise_type

String specifying noise pattern type (defaults to sinusoid; other options: gabor).

nscales

Integer specifying the number of incremental spatial scales. Defaults to 5. Higher numbers will add higher spatial frequency scales.

sigma

Number specifying the sigma of the Gabor patch if noise_type is set to gabor (defaults to 25)

Details

Will save the stimuli as jpeg's to a folder, including .Rdata file needed for analysis of data after data collection. This .Rdata file contains the parameters that were used to generate each stimulus.

Value

Nothing, everything is saved to files.


rcicr documentation built on May 2, 2019, 5:24 p.m.