一、Rgb1ToGray—将RGB图像转换为灰度图像。【HDevelop—rgb1_to_gray】
方法一:面向过程
HObject ho_GrayImage;
HOperatorSet.Rgb1ToGray(ho_Image, out ho_GrayImage);
方法二:面向对象
HImage ho_GrayImage = new HImage();
ho_GrayImage = ho_Image.Rgb1ToGray();
方法一:面向过程
HObject ho_GrayImage;
HOperatorSet.Rgb1ToGray(ho_Image, out ho_GrayImage);
方法二:面向对象
HImage ho_GrayImage = new HImage();
ho_GrayImage = ho_Image.Rgb1ToGray();