halcon提取单一颜色,根据实际情况,用不同灰度图相减。
重点内容
decompose3 (Image,R, G, B)
gen_rectangle1 (ROI_1, Row2-100, Column2-100, Row2+100, Column2+400)
reduce_domain (R, ROI_1, ImageReduced1)
reduce_domain (G, ROI_1, ImageReduced2)
reduce_domain (B, ROI_1, ImageReduced3)
sub_image (ImageReduced1, ImageReduced2, ImageSub, 1, 128) *提取出红色区域
halcon提取单一颜色区域
最新推荐文章于 2024-07-19 08:52:41 发布