【发布时间】:2019-11-14 23:57:53
【问题描述】:
在我用 HDevelop 开发代码后,
find_local_deformable_model (ImageReduced1, ImageRectified, VectorField, DeformedContours, ModelID...)
gen_region_contour_xld (DeformedContours, EdgeRegion, 'margin')
union1(EdgeRegion, RegionUnion)
region_features(RegionUnion,['width','height'],WidthAndHeight)
它可以运行,但是我将它导出到C#之后,它不能,报告: HALCON 错误 #1301:操作员中控制参数 1 的值错误
当我将它导出到 cpp 时,它也可以运行。
有什么问题?
【问题讨论】:
-
嗨 Ben,C# 中抛出的错误是哪个运算符?它在 region_features 中吗?如果是的话,这条线是如何导出的?在 HALCON 19.05 中,它被导出到
HOperatorSet.RegionFeatures(ho_RegionUnion, (new Tuple("width")).TupleConcat("height"), out hv_WidthAndHeight);,它可以正常工作。 -
错误来自C#中的HOperatorSet.GenContourRegionXld,在HALCON观察调试窗口中,我可以看到DeformedContours图像的xld对象,因为它停止了,所以我不能去regionFeatures操作符跨度>
标签: halcon