Make index to segment mapping area. The obtained index is further utilized in mean.qntmap().

segment(x, ...)

# S3 method for character
segment(x, ...)

Arguments

x

A path to the PNG image file.

...

ignored

Value

A character vector indicating pixel colors in RGBA style for input image.

See also

Examples

x <- system.file("img", "Rlogo.png", package = "png") head(segment(x))
#> [1] "#00000000" "#00000000" "#00000000" "#00000000" "#00000000" "#00000000"