Histogram#
- class Histogram(image: ImageWholeFeaturesMixin, nbins: int = 256, sorted: bool | str = False, span: Literal['dtype'] | tuple[float, float] | None = 'dtype', clip: bool = False, opt: str | None = None)[source]#
Create histogram instance
- Parameters:
image (Image) – image to histogram
nbins (int, optional) – number of histogram bins, defaults to 256
sorted (bool) – sort bins by count rather than value, defaults to False
span (str, tuple(float, float), None) – histogram span definition, defaults to
'dtype';'dtype'means full span of image type,Nonemeans finite data min/max,(a,b)means explicit rangeclip (bool, optional) – clip out-of-span values to span endpoints before binning, defaults to False. If False, out-of-span values are ignored.
opt (str, optional) – deprecated histogram option string, use
sortedinstead; supported legacy value is'sorted'
Create
Histograminstance by computing the histogram over each image plane.- Seealso:
hist
Methods
peaks(**kwargs)Histogram peaks
plot([type, block, filled, stats, style, ...])Plot histogram
Properties
cdfCumulative histogram values
hHistogram count values
ncdfNormalized cumulative histogram values
xHistogram bin values