decompose3(MultiChannelImage : Image1, Image2,
Image3 : : )
MultiChannelImage:输入的多通道图像(应该是 3 通道?)
Image1, Image2, Image3:输出,转化后的单通道图像,1 是 red,2 是 green,3 是 blue
rgb1_to_gray(RGBImage : GrayImage : : )
把一张 RGB图像转化为灰度图像
RGBImage:输入的 RGB图像
gen_disc_se( : SE : Type, Width, Height, Smax : )
创建一个椭圆形结构元素,用于图像的腐蚀膨胀
SE:输出,生成后的结构元素,图像类型
Type:结构元素的图像像素类型,默认是’byte’,可选:’byte’,’uint2’,’real’,详见
Halcon的图像像素类型
gray_erosion(Image, SE : ImageErosion : : )
使用结构元素对图像做腐蚀操作(结构元素可以是gen_disc_se的输出)
Image:要做腐蚀操作的图像
gray_dilation(Image, SE : ImageDilation : : )
使用结构元素对图像做膨胀操作(结构元素可以是gen_disc_se的输出)
Image:要做膨胀操作的图像