【问题标题】:gen_contour_region_xld control parameter error in c#c#中的gen_contour_region_xld控制参数错误
【发布时间】: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


【解决方案1】:

最后我发现这是一个错字,在针对 VS 编码时,我安装了 export 的代码,所以这引入了一个错字,由 HOperateSet.,它给了我 GenContourGeionXld,应该是 GenRegionContourXld。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-12-07
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多