PixelStatsOutput#
- class dataeval.metrics.stats.PixelStatsOutput(source_index: list[SourceIndex], box_count: NDArray[np.uint16], mean: NDArray[np.float16], std: NDArray[np.float16], var: NDArray[np.float16], skew: NDArray[np.float16], kurtosis: NDArray[np.float16], histogram: NDArray[np.uint32], entropy: NDArray[np.float16])#
Output class for
pixelstats()stats metric- mean#
Mean of the pixel values of the images
- Type:
NDArray[np.float16]
- std#
Standard deviation of the pixel values of the images
- Type:
NDArray[np.float16]
- skew#
Skew of the pixel values of the images
- Type:
NDArray[np.float16]
- kurtosis#
Kurtosis of the pixel values of the images
- Type:
NDArray[np.float16]
- histogram#
Histogram of the pixel values of the images across 256 bins scaled between 0 and 1
- Type:
NDArray[np.uint32]
- entropy#
Entropy of the pixel values of the images
- Type:
NDArray[np.float16]
- get_channel_mask(channel_index: int | Iterable[int] | None, channel_count: int | Iterable[int] | None = None) list[bool]#
Boolean mask for results filtered to specified channel index and optionally the count of the channels per image.
- Parameters:
channel_index (int | Iterable[int] | None) – Index or indices of channel(s) to filter for
channel_count (int | Iterable[int] | None) – Optional count(s) of channels to filter for