visfeats.hsv_features#
- visfeats.hsv_features(image: Image, bins: int = 100, return_hsv: Literal[False] = False) dict[str, float]#
- visfeats.hsv_features(image: Image, bins: int = 100, *, return_hsv: Literal[True]) tuple[dict[str, float], NDArray[float64]]
Compute the mean and entropy of the HSV channels of an image.
- Parameters:
- Returns:
- features
dictof {str:float} A mapping of feature names to values:
Key
Description
hue_meanCircular mean hue in [0, 1).
saturation_meanMean saturation in [0, 1].
value_meanMean value (brightness) in [0, 1].
hue_entropyEntropy of the hue histogram.
saturation_entropyEntropy of the saturation histogram.
value_entropyEntropy of the value histogram.
- hsv
ndarray, shape (height,width, 3) Raw per-pixel HSV values. Only returned when
return_hsv=True.
- features
Notes
The image is converted to RGB, then to HSV using
skimage.color.rgb2hsv().