WebPImage.BinarizeFixed
WebPImage.BinarizeFixed method
使用预定义阈值对图像进行二值化,将其转换为二进制图像,像素根据相对于阈值的强度被分类为前景或背景。将此方法纳入图像处理工作流,以促进分割和特征提取任务,提升后续分析的准确性和效率。
public override void BinarizeFixed(byte threshold)
| 参数 | 类型 | 描述 |
|---|---|---|
| threshold | Byte | 阈值。如果像素的对应灰度值大于阈值,则赋值为255,否则为0。 |
另请参见
- class WebPImage
- namespace Aspose.Imaging.FileFormats.Webp
- assembly Aspose.Imaging