用法:
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
当图像被确定为低对比度时为真。
参数:
返回:
注意:
对于布尔图像,仅当所有值都相同时,此函数才返回 False(忽略方法、阈值和百分位数参数)。
参考:
例子:
>>> image = np.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 skimage.exposure.histogram用法及代码示例
- Python skimage.exposure.adjust_gamma用法及代码示例
- Python skimage.exposure.rescale_intensity用法及代码示例
- Python skimage.exposure.cumulative_distribution用法及代码示例
- 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.is_low_contrast。非经特殊声明,原始代码版权归原作者所有,本译文未经允许或授权,请勿转载或复制。