Channel Statistics
The ChannelStats class is similar to the ImageStats class except that it only calculates
the normal statistics for each pixel value on a per channel basis.
Tutorials
To see how the ChannelStats class can be used while doing exploratory data analysis, check out the EDA Part 1 tutorial.
How To Guides
There is a how-to guide that applies to the ChannelStats class.
DataEval API
- class dataeval.metrics.ChannelStats(flags: ImageStatistics | None = None)
- compute() Dict[str, Any]
Computes the specified measures on the cached values
- Returns:
Dictionary results of the specified measures
- Return type:
Dict[str, Any]
- evaluate(images: TBatch) Dict[str, Any]
Calculate metric results given a single batch of images
- reset() None
Resets the internal metric cache
- update(images: Iterable[_SupportsArray[dtype[Any]] | _NestedSequence[_SupportsArray[dtype[Any]]] | bool | int | float | complex | str | bytes | _NestedSequence[bool | int | float | complex | str | bytes]]) None
Updates internal metric cache for later calculation
- Parameters:
batch (Sequence) – Sequence of images to be processed