ggmagiceye: Convert an autostereogram raster to a ggplot raster

Description Usage Arguments Value Examples

View source: R/magiceye-to-ggplot.R

Description

Convert an autostereogram raster to a ggplot raster

Usage

1
ggmagiceye(magiceye_raster)

Arguments

magiceye_raster

Output from *_to_magiceye()

Value

A ggplot version of

Examples

1
2
3
4
5
6
7
8
# Import a jpeg or png
 demo_file <- system.file("extdata", "demo_r.png",
                          package = "rstereogram", mustWork = TRUE)
 demo_image <- png::readPNG(demo_file)

 demo_image %>%
    image_to_magiceye() %>%
    ggmagiceye()

ryantimpe/MagicEye documentation built on April 12, 2021, 5:59 p.m.