用法:
skimage.exposure.cumulative_distribution(image, nbins=256)
返回給定圖像的累積分布函數 (cdf)。
- image:數組
圖像陣列。
- nbins:int 可選
圖像直方圖的 bin 數量。
- img_cdf:數組
累積分布函數的值。
- bin_centers:數組
箱子的中心。
參數:
返回:
參考:
例子:
>>> from skimage import data, exposure, img_as_float >>> image = img_as_float(data.camera()) >>> hi = exposure.histogram(image) >>> cdf = exposure.cumulative_distribution(image) >>> np.alltrue(cdf[0] == np.cumsum(hi[0])/float(image.size)) True
相關用法
- Python skimage.exposure.histogram用法及代碼示例
- Python skimage.exposure.adjust_gamma用法及代碼示例
- Python skimage.exposure.rescale_intensity用法及代碼示例
- Python skimage.exposure.is_low_contrast用法及代碼示例
- Python skimage.feature.graycomatrix用法及代碼示例
- Python skimage.color.lab2lch用法及代碼示例
- Python skimage.draw.random_shapes用法及代碼示例
- Python skimage.feature.blob_doh用法及代碼示例
- Python skimage.feature.blob_dog用法及代碼示例
- Python skimage.filters.unsharp_mask用法及代碼示例
- Python skimage.registration.optical_flow_tvl1用法及代碼示例
- Python skimage.filters.rank.noise_filter用法及代碼示例
- Python skimage.filters.gaussian用法及代碼示例
- Python skimage.feature.graycoprops用法及代碼示例
- Python skimage.segmentation.active_contour用法及代碼示例
- Python skimage.feature.corner_orientations用法及代碼示例
- Python skimage.morphology.h_minima用法及代碼示例
- Python skimage.filters.threshold_otsu用法及代碼示例
- Python skimage.feature.structure_tensor用法及代碼示例
- Python skimage.transform.hough_circle_peaks用法及代碼示例
注:本文由純淨天空篩選整理自scikit-image.org大神的英文原創作品 skimage.exposure.cumulative_distribution。非經特殊聲明,原始代碼版權歸原作者所有,本譯文未經允許或授權,請勿轉載或複製。