签名:
- dots_image(Image : DotImage : Diameter, FilterType, PixelShift : )
复制代码
说明:
dots_image增强输入图像image中直径为diameter的圆形点。
因此,dots_image特别适合于点打印的分割,例如在OCR应用中。
通过使用匹配滤波器来执行增强,该匹配滤波器具有针对特定点尺寸调整的滤波器屏蔽。
例如,对于直径= 5,过滤掩模由下式给出:
参数FilterType选择是否应该增强图像中的“暗(dark)”、“亮(light)”或“所有(all)”点。
PixelShift可用于增加输出图像的对比度(PixelShift > 0)或抑制极亮区域的值,否则这些区域会被切断(PixelShift = -1)。
请注意,如果使用缩小定义域的图像(reduce_domain)作为输入,过滤器操作符可能会返回意外的结果。
实例:
- read_image (Image, 'needle1')
- get_image_size (Image, Width, Height)
- read_image (ImageNoise, 'angio-part')
- crop_part (ImageNoise, ImagePart, 0, 0, Width, Height)
- mult_image (Image, ImagePart, ImageResult, 0.015, 0)
- dots_image (ImageResult, DotImage, 5, 'dark', 2)
- threshold (DotImage, Region, 80, 255)
复制代码
|