2024-05-21【Halcon】实现分离通道、创建矩形、获取灰度级、求最大最小均值、求大于某一灰度级的像素点数read_image(Image,'D:/image/123.jpg')rgb1_to_gray(Image,GrayImage)gen_rectangle1(Rectangle,100,100,200,200)rectangle1_domain(GrayImage,ImageReduced,100,100,200,200)crop_domain(ImageReduced,ImagePart)get_region_points(ImageP