rgb_decomposition: Generate an RGB decomposition for a group of images inside a...

Description Usage Arguments Examples

View source: R/ipa.R

Description

Generate an RGB decomposition for a group of images inside a directory

Usage

1
2
3
4
5
6
rgb_decomposition(
  subdirectory,
  extension = "jpg",
  RData = TRUE,
  recursive = TRUE
)

Arguments

subdirectory

main directory to search for images

extension

images format or extension [default: jpg]

RData

boolean flag on whether to store the layers as RData or CSV

recursive

boolean flag on whether to recursively search for images

Examples

1
2
3
4
5
6
7
8
9
## Not run: 
    test_data <- data.frame(name = c("R", "G", "B"), values = c(2, 2, 2))
    RGB <- c("red", "green", "blue")
    png("test_plot.png")
    barplot(height = test_data$values, names = test_data$name, col = RGB)
    dev.off()
    rgb_decomposition(".", "png", recursive = FALSE)

## End(Not run)

villegar/IPA documentation built on Aug. 11, 2021, 12:50 a.m.