halcon - binary_threshold, intensity, expand_gray_ref

1.binary_threshold(Image : Region : Method,LightDark : UsedThreshold)   使用二值化阈值分割图像;

Method有两种,max_separability''smooth_histo',都是自动确定分割的阈值,LightDark = light,选择大于等于 确定的阈值的 region;LightDark = black ,选择小于等于确定的阈值的region; UsedThreshold 是 自动确定的阈值;


2.intensity(Regions, Image : : : Mean, Deviation)   :  计算灰度值图像的给定redion部分的灰度值的 平均值和偏差;


3.expand_gray_ref(Regions, Image, ForbiddenArea :RegionExpand : Iterations, Mode, RefGray, Threshold : ) 

填充基于灰度图像或彩色图像的 region对应的那部分图像,或者分离重叠的图像部分;

Regions: Regions for which the gaps are to be closed, or which are to be separated.

Image: Image (possibly multi-channel) for gray value or color comparison.

ForbiddenArea : Regions in which no expansion takes place.

4.paint_region(Region, Image : ImageResult : Grayval, Type: ) 将Region 以指定的灰度值Grayval在Image上按照Type类型进行绘制,结果输出到ImageResult;



猜你喜欢

转载自blog.csdn.net/u010096608/article/details/80940916