在HDevelop中
read_image (Image9, 'D:/bb/tu/9.jpg') rgb1_to_gray (Image9, GrayImage) count_channels (GrayImage, Channels) *计算图像的通道数
在QtCreator中
HObject ho_Image9, ho_GrayImage;
HTuple hv_Channels;
ReadImage(&ho_Image9, "D:/bb/tu/9.jpg"); Rgb1ToGray(ho_Image9, &ho_GrayImage); CountChannels(ho_GrayImage, &hv_Channels); //计算图像的通道数