Learn R Programming

charisma (version 1.0.0)

summarize: Summarize color classification results

Description

This function takes a charisma object and produces a summary table showing the proportion of pixels classified into each discrete color category.

Usage

summarize(charisma_obj)

summarise(charisma_obj)

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.

Arguments

charisma_obj

A charisma object (output from charisma or charisma2) containing color classification results.

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.

See Also

charisma for the main classification pipeline, validate for CLUT validation

Examples

Run this code
# \donttest{
# Run charisma on an image
img <- system.file("extdata", "Tangara_fastuosa_LACM60421.png",
                   package = "charisma")
result <- charisma(img)

# Summarize the color classification results
summary_table <- summarize(result)
print(summary_table)
# }

Run the code above in your browser using DataLab