halcon中將xld輪廓或者region區域繪製在影像上並儲存

double64發表於2024-11-10

1)單通道影像的繪製

draw_circle (WindowHandle, Row, Column, Radius)
gen_circle (Circle, Row, Column, Radius)
paint_region (Circle, Image, ImageR, 0, 'fill')
paint_region (Circle, Image, ImageG, 255, 'fill')
paint_region (Circle, Image, ImageB, 0, 'fill')
compose3 (ImageR, ImageG, ImageB, MultiChannelImage)
*儲存影像
write_image (MultiChannelImage1,'bmp' , 0, 'C:/Users/世紀森林/Desktop/picture/region轉影像.bmp')

2)多通道影像的繪製

draw_circle (WindowHandle, Row, Column, Radius)
gen_circle (Circle, Row, Column, Radius)
paint_region (Circle, MultiChannelImage1, ImageResult, [0,255,0], 'fill')



源自:https://blog.csdn.net/m0_67136031/article/details/127173761

相關文章