fast_threshold fast_threshold FastThreshold FastThreshold fast_threshold (算子)
名称
fast_threshold fast_threshold FastThreshold FastThreshold fast_threshold — 使用全局阈值对图像进行快速阈值处理。
签名
描述
fast_threshold fast_threshold FastThreshold FastThreshold FastThreshold fast_threshold selects the pixels from the input image
whose gray values g fulfill the following condition:
To reduce the processing time, the selection is done in two steps: At first,
all points lying on selected horizontal lines that are specified by their
distance MinSize MinSize MinSize MinSize minSize min_size are processed. In the next step the neighborhood
(size (2*MinSize+1) x
(2*MinSize+1)) of all previously selected points are
processed.
注意
On multi-core computers supporting the SSE2 instruction set, threshold threshold Threshold Threshold Threshold threshold
is most likely faster than fast_threshold fast_threshold FastThreshold FastThreshold FastThreshold fast_threshold .
fast_threshold fast_threshold FastThreshold FastThreshold FastThreshold fast_threshold may only be preferred to threshold threshold Threshold Threshold Threshold threshold if those
features are not available, e.g., on embedded platforms.
执行信息
多线程类型:可重入(与非独占算子并行运行)。
多线程作用域:全局(可从任何线程调用)。
在元组级别上自动并行化。
在内部数据级别上自动并行化。
参数
Image Image Image Image image image (输入对象) singlechannelimage(-array) → object HImage HObject HImage Hobject (byte / uint2 / direction / cyclic / real)
输入图像。
Region Region Region Region region region (输出对象) region(-array) → object HRegion HObject HRegion Hobject *
分割区域。
MinGray MinGray MinGray MinGray minGray min_gray (输入控制) number → HTuple Union[int, float] HTuple Htuple (real / integer) (double / int / long) (double / Hlong) (double / Hlong)
Lower threshold for the gray values.
默认值:
128
建议值:
0.0, 10.0, 30.0, 64.0, 128.0, 200.0, 220.0, 255.0
值范围:
0.0
≤
MinGray
MinGray
MinGray
MinGray
minGray
min_gray
≤
255.0 (lin)
最小增量:
1
建议增量:
5.0
MaxGray MaxGray MaxGray MaxGray maxGray max_gray (输入控制) number → HTuple Union[int, float] HTuple Htuple (real / integer) (double / int / long) (double / Hlong) (double / Hlong)
Upper threshold for the gray values.
默认值:
255.0
建议值:
0.0, 10.0, 30.0, 64.0, 128.0, 200.0, 220.0, 255.0
值范围:
0.0
≤
MaxGray
MaxGray
MaxGray
MaxGray
maxGray
max_gray
≤
255.0 (lin)
最小增量:
1
建议增量:
5.0
MinSize MinSize MinSize MinSize minSize min_size (输入控制) number → HTuple int HTuple Htuple (integer) (int / long) (Hlong ) (Hlong )
Minimum size of objects to be extracted.
默认值:
20
建议值:
5, 10, 15, 20, 25, 30, 40, 50, 60, 70, 100
值范围:
2
≤
MinSize
MinSize
MinSize
MinSize
minSize
min_size
≤
200 (lin)
最小增量:
1
建议增量:
2
复杂度
Let A be the area of the output region and height the
height of Image Image Image Image image image . Then the runtime
complexity is O(A + height / MinSize MinSize MinSize MinSize minSize min_size ).
结果
fast_threshold fast_threshold FastThreshold FastThreshold FastThreshold fast_threshold 在所有参数正确时返回 2 (H_MSG_TRUE )。通过 set_system set_system SetSystem SetSystem SetSystem set_system 算子设置标志 'no_object_result' "no_object_result" "no_object_result" "no_object_result" "no_object_result" "no_object_result" 、'empty_region_result' "empty_region_result" "empty_region_result" "empty_region_result" "empty_region_result" "empty_region_result" 和 'store_empty_region' "store_empty_region" "store_empty_region" "store_empty_region" "store_empty_region" "store_empty_region" 的值,可确定系统对输入图像和输出区域的行为方式。如有必要,则抛出异常。
可能的前趋
histo_to_thresh histo_to_thresh HistoToThresh HistoToThresh HistoToThresh histo_to_thresh ,
min_max_gray min_max_gray MinMaxGray MinMaxGray MinMaxGray min_max_gray ,
sobel_amp sobel_amp SobelAmp SobelAmp SobelAmp sobel_amp ,
binomial_filter binomial_filter BinomialFilter BinomialFilter BinomialFilter binomial_filter ,
gauss_filter gauss_filter GaussFilter GaussFilter GaussFilter gauss_filter ,
reduce_domain reduce_domain ReduceDomain ReduceDomain ReduceDomain reduce_domain ,
fill_interlace fill_interlace FillInterlace FillInterlace FillInterlace fill_interlace
可能的后继
connection connection Connection Connection Connection connection ,
dilation1 dilation1 Dilation1 Dilation1 Dilation1 dilation1 ,
erosion1 erosion1 Erosion1 Erosion1 Erosion1 erosion1 ,
opening opening Opening Opening Opening opening ,
closing closing Closing Closing Closing closing ,
rank_region rank_region RankRegion RankRegion RankRegion rank_region ,
shape_trans shape_trans ShapeTrans ShapeTrans ShapeTrans shape_trans ,
skeleton skeleton Skeleton Skeleton Skeleton skeleton
替代
threshold threshold Threshold Threshold Threshold threshold ,
gen_grid_region gen_grid_region GenGridRegion GenGridRegion GenGridRegion gen_grid_region ,
dilation_rectangle1 dilation_rectangle1 DilationRectangle1 DilationRectangle1 DilationRectangle1 dilation_rectangle1 ,
dyn_threshold dyn_threshold DynThreshold DynThreshold DynThreshold dyn_threshold
另见
class_2dim_sup class_2dim_sup Class2dimSup Class2dimSup Class2dimSup class_2dim_sup ,
hysteresis_threshold hysteresis_threshold HysteresisThreshold HysteresisThreshold HysteresisThreshold hysteresis_threshold
模块
基础