pixels: Get pixel values

Description Usage Arguments Value Examples

View source: R/patch.R

Description

Get pixel values

Usage

1
pixels(stimuli, color = c("hex", "rgb", "hsv", "lab"))

Arguments

stimuli

list of class stimlist

color

type of color values to return

Value

data frame of pixel x and y values, plus colour values for each image

Examples

1
2
3
4
# this can take a long time with big images
demo_stim("test") %>%
  resize(5/338) %>% # resize to 5x5 pixels for demo
  pixels()

facelab/webmorph documentation built on April 11, 2021, 6:34 a.m.