This function takes a charisma object and produces a summary table showing the proportion of pixels classified into each discrete color category.
Value
A data frame with one row per image showing the proportion of pixels assigned to each color category. Row names are set to the basename of the image file path.
Details
The summary table shows the percentage of pixels classified into each of the discrete color categories defined in the Color Look-Up Table (CLUT). This provides a quantitative overview of the color composition of the analyzed image.
Examples
# \donttest{
# Run charisma on an image
img <- system.file("extdata", "Tangara_fastuosa_LACM60421.png",
package = "charisma")
result <- charisma(img)
#> Warning: if any are empty, remove them
#> Discrete color classes identified: k=7
#> (black, blue, brown, green, grey, orange, yellow)
#> Image classification in progress...
#> Using single set of coldists for all images.
#>
# Summarize the color classification results
summary_table <- summarize(result)
print(summary_table)
#> black white grey brown red orange yellow green
#> Tangara_fastuosa_LACM60421.png 1 0 1 1 0 1 1 1
#> blue purple k
#> Tangara_fastuosa_LACM60421.png 1 0 7
# }
