Make index to segment mapping area.
The obtained index is further utilized in mean.qntmap().
segment(x, ...) # S3 method for character segment(x, ...)
| x | A path to the PNG image file. |
|---|---|
| ... | ignored |
A character vector indicating pixel colors in RGBA style for input image.
#> [1] "#00000000" "#00000000" "#00000000" "#00000000" "#00000000" "#00000000"