Function tryRgbCumulativeCounts
Compute inclusive cumulative counts for each stored RGB byte, through that byte. At index 255 each channel equals includedPixels. The result remains all zero for a valid all-excluded histogram. A malformed public record (any channel total differs from includedPixels) returns false and leaves published unchanged. No raster access or allocation occurs.
bool tryRgbCumulativeCounts(
ref const(RgbHistogram256) histogram,
ref ulong[256][3] published
) pure nothrow @nogc @safe;
Parameters
| Name | Description |
|---|---|
| histogram | Completed RGB histogram returned by tryRgbHistogram256. |
| published | Three 256-entry cumulative arrays, assigned on success. |
Returns
true for a valid record, false otherwise.