halcon image channel separation, drawing colored lines, etc., channel merging

halcon image channel separation, drawing colored lines, etc., channel merging

Image channel separation

* 输入的三通道图片,得到每个通道的图片
decompose3(Image, Image1, Image2, Image3)

draw colored lines

paint_region (RegionLines1, ImageR, ImageR, 0, 'fill')
paint_region (RegionLines1, ImageG, ImageG, 255, 'fill')
paint_region (RegionLines1, ImageB, ImageB, 255, 'fill')

channel merge

compose3(ImageR,ImageG,ImageB,out_image)

Guess you like

Origin blog.csdn.net/qq_41648925/article/details/126052027