rorygoodwith / fragmentr

An R package that adds graded fragmentation effects to magick images

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

fragmentr

Graded Fragmentation Effects for Magick Images in R

Fragmentr is an R package with one function, image_fragment, which copies an image a set number of times and partially obscures the foreground of each copy with coloured squares. The proportion of each image copy that is obscured by these white squares increases according to a power function, meaning the resulting image copies range from completely unobscured to almost totally obscured (see example below).

image

These images are often used in cognitive psychology experiments where participants gradually reveal an obscured stimulus in an attempt to identify it at the highest level of obscurity possible (e.g. Berry et al., 2014).

Installation

You can install Fragmentr with the following R code:

devtools::install_github("rorygoodwith/fragmentr")

About

An R package that adds graded fragmentation effects to magick images


Languages

Language:R 100.0%