Dominant Color Area Percentage Analyzer
Dominant observed nonoverlapping flag colour areas with ties and unsegmented denominator retained; no segmentation, pixel approximation or dominant unknown-region claim.
Description
Dominant color area requires disjoint measured regions and a complete area denominator.
Dominant color area requires disjoint measured regions and a complete area denominator.1
Keeping unsegmented area in that denominator prevents observed colors from being treated as the whole flag.
When to use Dominant Color Area Percentage Analyzer
Use this tool when you need to reproduce the stated calculation from measured records or independently selected model inputs. Establish the flag dimensions, orientation, specification, palette, or visual annotations needed for this particular calculation.
How to use Dominant Color Area Percentage Analyzer and understand its results
- Establish the flag dimensions, orientation, specification, palette, or visual annotations needed for this particular calculation.
- Enter independentlyMeasuredColorIds, disjointColorAreas, unknownUnsegmentedArea, following the field table and rules below, then run the tool.
- Read result. Use the output meanings below to interpret units, signs, flags, and any nested result fields.
- Correct reported input issues and run again. For a successful result, check the stated evidence coverage and assumptions before using it in your review.
| Input field | Meaning | Value type | Requirement |
|---|---|---|---|
| independentlyMeasuredColorIds | Independently measured color ids | list of string | Required |
| disjointColorAreas | Disjoint color areas | list of number | Required |
| unknownUnsegmentedArea | Unknown unsegmented area | number | Required |
Supply unique nonblank color IDs with aligned nonnegative disjoint areas and a nonnegative unknown area. The combined area must be positive. Return all colors tied for maximum observed area, percentages using the combined denominator, and unknown percentage. A dominant observed label need not dominate the unknown region.
percentage_i=100A_i/(ΣA+unknownArea) Symbols follow the input and output meanings and the calculation rules above.
| Output field | Meaning | Value type |
|---|---|---|
| result | Calculated observation or reference | object |
| result.dominantObservedColorIds | Dominant Observed Color Ids | list |
| result.observedColorAreaPercentages | Observed Color Area Percentages | list |
| result.unknownAreaPercentage | Unknown Area Percentage | number |
{
"input": {
"independentlyMeasuredColorIds": [
"red",
"blue",
"white"
],
"disjointColorAreas": [
2,
3,
3
],
"unknownUnsegmentedArea": 2
},
"output": {
"result": {
"dominantObservedColorIds": [
"blue",
"white"
],
"observedColorAreaPercentages": [
20,
30,
30
],
"unknownAreaPercentage": 20
}
}
} Limitations and assumptions
The calculation uses supplied geometry, observations, or annotations. It does not establish an official construction specification, national identity, or universal design quality.
Missing required fields, unknown fields, wrong types, and violated calculation rules are input issues. Numeric values must be finite; nonfinite results are rejected. Evidence arrays must be dense, with no missing cells. Numeric observation lists allow at most 10,000 entries, subject to any smaller bounds stated above. String lists allow at most 128 strings of at most 128 characters. Extremely large composite outputs are rejected.
Alternative or Complementary methods
For a related review, use Color Count Penalty Scorer: A color-count penalty is a design policy applied to distinct palette IDs. Deduplication prevents repeated occurrences of one color from being counted as extra colors. For a complementary step, use Stripe Sequence Vector Encoder: An ordered stripe palette vector represents each stripe by its position in a declared palette. The same colors in another order therefore produce a different vector.
References
-
Dominant Color Area Percentage Analyzer — tool.io
Similar or alternative tools
- Color Count Penalty Scorer
A color-count penalty is a design policy applied to distinct palette IDs. Deduplication prevents repeated occurrences of one color from being counted as extra colors.
- Stripe Sequence Vector Encoder
An ordered stripe palette vector represents each stripe by its position in a declared palette. The same colors in another order therefore produce a different vector.