halcon 灰度图转彩色图并在彩色图上绘制region

  • Post author:
  • Post category:其他


read_image(Image1, ‘printer_chip/printer_chip_01’)

get_image_size(Image1, Width1, Height1)

get_image_pointer1(Image1,Pointer1, Type, Width1, Height1)

gen_image3(ImageRGB, ‘byte’, Width1, Height1, Pointer1,Pointer1,Pointer1)

threshold(Image1, Region1, 128, 255)

paint_region(Region1, ImageRGB, ImageResult1, [0,0,255], ‘margin’)

结果图:



版权声明:本文为liweisheng92原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。