halcon(改变图像灰度值)

    xiaoxiao2022-07-13  142

    dev_clear_window () dev_close_window () read_image (Image, 'printer_chip/printer_chip_01') get_image_size (Image, Width, Height) dev_open_window (0, 0, Width, Height, 'black', WindowHandle) *改变图像的灰度值(改变尺寸可变) for i := 1 to Height-1 by 1 for j := 1 to Width-1 by 1 set_grayval (Image, i, j, 250) endfor endfor

     

    最新回复(0)