dots_imagedots_imageDotsImageDotsImagedots_image (算子)
名称
dots_imagedots_imageDotsImageDotsImagedots_image — 增强图像中的圆点。
签名
void DotsImage(const HObject& Image, HObject* DotImage, const HTuple& Diameter, const HTuple& FilterType, const HTuple& PixelShift)
HImage HImage::DotsImage(Hlong Diameter, const HString& FilterType, Hlong PixelShift) const
HImage HImage::DotsImage(Hlong Diameter, const char* FilterType, Hlong PixelShift) const
HImage HImage::DotsImage(Hlong Diameter, const wchar_t* FilterType, Hlong PixelShift) const
(
Windows only)
描述
dots_imagedots_imageDotsImageDotsImageDotsImagedots_image enhances circular dots of diameter
DiameterDiameterDiameterDiameterdiameterdiameter in the input image ImageImageImageImageimageimage. Hence,
dots_imagedots_imageDotsImageDotsImageDotsImagedots_image is especially suited for the segmentation of dot
prints, e.g., in OCR applications. The enhancement is performed by
using matched filters with filter masks that are tuned for a
particular dot size. For example, for DiameterDiameterDiameterDiameterdiameterdiameter = 5 the
filter mask is given by:
The parameter FilterTypeFilterTypeFilterTypeFilterTypefilterTypefilter_type selects whether 'dark'"dark""dark""dark""dark""dark",
'light'"light""light""light""light""light", or 'all'"all""all""all""all""all" dots in the image should be
enhanced. The PixelShiftPixelShiftPixelShiftPixelShiftpixelShiftpixel_shift can be used either to increase
the contrast of the output image (PixelShiftPixelShiftPixelShiftPixelShiftpixelShiftpixel_shift > 0) or to
dampen the values in extremely bright areas that would be cut off
otherwise (PixelShiftPixelShiftPixelShiftPixelShiftpixelShiftpixel_shift = -1).
注意
请注意,若使用域缩减后的图像作为输入,滤波器算子可能会返回意外结果。请参阅 滤波器 一章
执行信息
- 多线程类型:可重入(与非独占算子并行运行)。
- 多线程作用域:全局(可从任何线程调用)。
- 在元组级别上自动并行化。
- 在通道级别上自动并行化。
- 在域级别上自动并行化。
参数
ImageImageImageImageimageimage (输入对象) (multichannel-)image(-array) → objectHImageHObjectHImageHobject (byte / uint2)
输入图像。
DotImageDotImageDotImageDotImagedotImagedot_image (输出对象) (multichannel-)image(-array) → objectHImageHObjectHImageHobject * (byte / uint2)
输出图像。
DiameterDiameterDiameterDiameterdiameterdiameter (输入控制) integer → HTupleintHTupleHtuple (integer) (int / long) (Hlong) (Hlong)
Diameter of the dots to be enhanced.
默认值:
5
值列表:
3, 5, 7, 9, 11, 13, 15, 17, 19, 21, 23
FilterTypeFilterTypeFilterTypeFilterTypefilterTypefilter_type (输入控制) string → HTuplestrHTupleHtuple (string) (string) (HString) (char*)
Enhance dark, light, or all dots.
默认值:
'light'
"light"
"light"
"light"
"light"
"light"
值列表:
'all'"all""all""all""all""all", 'dark'"dark""dark""dark""dark""dark", 'light'"light""light""light""light""light"
PixelShiftPixelShiftPixelShiftPixelShiftpixelShiftpixel_shift (输入控制) integer → HTupleintHTupleHtuple (integer) (int / long) (Hlong) (Hlong)
Shift of the filter response.
默认值:
0
值列表:
-1, 0, 1, 2
可能的后继
thresholdthresholdThresholdThresholdThresholdthreshold
替代
laplacelaplaceLaplaceLaplaceLaplacelaplace,
laplace_of_gausslaplace_of_gaussLaplaceOfGaussLaplaceOfGaussLaplaceOfGausslaplace_of_gauss,
diff_of_gaussdiff_of_gaussDiffOfGaussDiffOfGaussDiffOfGaussdiff_of_gauss,
derivate_gaussderivate_gaussDerivateGaussDerivateGaussDerivateGaussderivate_gauss,
convol_imageconvol_imageConvolImageConvolImageConvolImageconvol_image
模块
基础