halcon画像のチャンネル分離、色付きの線の描画など、チャンネルの結合

halcon画像のチャンネル分離、色付きの線の描画など、チャンネルの結合

画像チャンネル分離

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

色付きの線を描く

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

チャンネルマージ

compose3(ImageR,ImageG,ImageB,out_image)

おすすめ

転載: blog.csdn.net/qq_41648925/article/details/126052027