用法:
cucim.skimage.exposure.is_low_contrast(image, fraction_threshold=0.05, lower_percentile=1, upper_percentile=99, method='linear')
確定圖像是否對比度低。
- image:array-like
正在測試的圖像。
- fraction_threshold:浮點數,可選
低對比度分數閾值。當圖像的亮度範圍小於其數據類型全範圍的這一部分時,圖像被認為是低對比度的。 [1]
- lower_percentile:浮點數,可選
計算圖像對比度時忽略低於此百分位數的值。
- upper_percentile:浮點數,可選
計算圖像對比度時忽略高於此百分位數的值。
- method:str,可選
對比度確定方法。目前唯一可用的選項是“linear”。
- out:bool
當圖像被確定為低對比度時為真。
參數:
返回:
參考:
例子:
>>> import cupy as cp >>> image = cp.linspace(0, 0.04, 100) >>> is_low_contrast(image) True >>> image[-1] = 1 >>> is_low_contrast(image) True >>> is_low_contrast(image, upper_percentile=100) False
相關用法
- Python cucim.skimage.exposure.histogram用法及代碼示例
- Python cucim.skimage.exposure.rescale_intensity用法及代碼示例
- Python cucim.skimage.exposure.cumulative_distribution用法及代碼示例
- Python cucim.skimage.exposure.adjust_gamma用法及代碼示例
- Python cucim.skimage.feature.shape_index用法及代碼示例
- Python cucim.skimage.restoration.richardson_lucy用法及代碼示例
- Python cucim.skimage.util.invert用法及代碼示例
- Python cucim.skimage.data.binary_blobs用法及代碼示例
- Python cucim.skimage.filters.roberts_neg_diag用法及代碼示例
- Python cucim.skimage.color.lch2lab用法及代碼示例
- Python cucim.skimage.measure.label用法及代碼示例
- Python cucim.skimage.color.rgb2gray用法及代碼示例
- Python cucim.skimage.filters.gabor用法及代碼示例
- Python cucim.skimage.transform.rescale用法及代碼示例
- Python cucim.skimage.filters.roberts_pos_diag用法及代碼示例
- Python cucim.skimage.segmentation.random_walker用法及代碼示例
- Python cucim.skimage.filters.roberts用法及代碼示例
- Python cucim.skimage.morphology.dilation用法及代碼示例
- Python cucim.skimage.feature.corner_foerstner用法及代碼示例
- Python cucim.skimage.measure.moments_coords用法及代碼示例
注:本文由純淨天空篩選整理自rapids.ai大神的英文原創作品 cucim.skimage.exposure.is_low_contrast。非經特殊聲明,原始代碼版權歸原作者所有,本譯文未經允許或授權,請勿轉載或複製。