halcon-decompose3将三通道图像转换为三个单通道图像

在HDevelop中

read_image (Image, 'D:/bb/tu/RGB.png')
decompose3(Image,R,G,B)
*将三通道图像转换为三个图像
*参数1:原图像-3通道图像

 

在QtCreator中

    HObject  ho_Image, ho_R, ho_G, ho_B;
    ReadImage(&ho_Image, "D:/bb/tu/RGB.png");
    Decompose3(ho_Image, &ho_R, &ho_G, &ho_B);
      //将三通道图像转换为三个图像
      //参数1:原图像-3通道图像

 

 

 

 

 

 

 

posted @ 2022-02-10 13:29  天子骄龙  阅读(933)  评论(0)    收藏  举报