HALCON error #1201: Wrong type of control parameter: 1 in operator threshold

简介: HALCON error #1201: Wrong type of control parameter: 1 in operator threshold

HALCON error #1201: Wrong type of control parameter: 1 in operator threshold

错误代码

HTuple tMin, tMax;
    tMin.Append(3).Append(5.5);
    tMax.Append(4.0).Append(8);
    Hobject region;
    Halcon::threshold(img, ®ion,tMin, tMax);

错误原因

tMin各元素类型不一致,改成一致就好了。

修改后:

HTuple tMin, tMax;
    tMin.Append(3).Append(5);
    tMax.Append(4.0).Append(8.0);
    Hobject region;
    Halcon::threshold(img, ®ion,tMin, tMax);

开发环境:

VS2013、Win10


附属内容

开发测试运行环境

操作系统:Win10或win7

开发环境:VS2022或VS2019

C++17

视频课程

CSDN学院有基础算法的C++实现的课程,请使劲戳下面的链接。

https://edu.csdn.net/course/detail/38771

C++入职培训,C#入职培训等课程可以学习

https://edu.csdn.net/lecturer/6176

相关下载

本人算法的总结《闻缺陷则喜算法册》,可到CSDN下载频道下载,doc版的。

https://download.csdn.net/download/he_zhidan/88348653

目录
打赏
0
0
0
0
36
分享
相关文章
HALCON error #1302: Wrong value of control parameter: 2 in operator affine_trans_region
HALCON error #1302: Wrong value of control parameter: 2 in operator affine_trans_region
“error“: { “root_cause“: [{ “type“: “circuit_breaking_exception“, “reason“: “[parent] D【已解决】
“error“: { “root_cause“: [{ “type“: “circuit_breaking_exception“, “reason“: “[parent] D【已解决】
83 1
Invalid mapping pattern detected: /download/{{fileName}} ^Not allowed to nest variable c
Invalid mapping pattern detected: /download/{{fileName}} ^Not allowed to nest variable c
error Parsing error: x-invalid-end-tag
error Parsing error: x-invalid-end-tag
|
11月前
|
【ERROR】‘<>‘ operator is not allowed for source level below 1.7
【ERROR】‘<>‘ operator is not allowed for source level below 1.7
135 0
报错:error Parsing error: x-invalid-end-tag
报错:error Parsing error: x-invalid-end-tag
202 0
遇到【Unexpected character (‘“‘ (code 34)): was expecting comma to separate Object entries】的解决办法
遇到【Unexpected character (‘“‘ (code 34)): was expecting comma to separate Object entries】的解决办法
遇到【Unexpected character (‘“‘ (code 34)): was expecting comma to separate Object entries】的解决办法
Uncaught runtime errors: × ERROR Avoided redundant navigation to current location: “/xxx“.
Uncaught runtime errors: × ERROR Avoided redundant navigation to current location: “/xxx“.
345 0
error C2041: illegal digit ‘9‘ for base ‘8‘ | error C2059: syntax error: ‘bad suffix on number‘
error C2041: illegal digit ‘9‘ for base ‘8‘ | error C2059: syntax error: ‘bad suffix on number‘
217 0
AI助理

你好,我是AI助理

可以解答问题、推荐解决方案等