painting: Create a painting from a picture using supercells

Description Usage Arguments Details Value Examples

View source: R/painting.R

Description

Create a painting from a picture using supercells

Usage

1

Arguments

x,

object of class stars, the picture to be processed.

...

further arguments passed to supercells()

Details

This function takes an image and applies the concept of superpixels as implemented in the supercells package to get a painting like representation.

Value

<<<<<<< HEAD Object of class sf containing the boundaries of the supercells and the ======= Object of class sf containig the boundaries of the supercells and the >>>>>>> osmmaps average hex color value.

Examples

1
2
3
4
5
6
ifl = system.file("img/lake.jpg", package = "aRts")
lake = stars::read_stars(ifl)
lake_ptg = painting(lake)
par(mfrow = c(1, 2))
plot(lake, rgb = 1:3, main = "", reset = FALSE, useRaster = TRUE)
plot(lake_ptg)

hewag1975/aRts documentation built on Jan. 8, 2022, 12:04 a.m.