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
|
12月前
Parsing error: The keyword ‘const‘ is reserved
Parsing error: The keyword ‘const‘ is reserved
“error“: { “root_cause“: [{ “type“: “circuit_breaking_exception“, “reason“: “[parent] D【已解决】
“error“: { “root_cause“: [{ “type“: “circuit_breaking_exception“, “reason“: “[parent] D【已解决】
76 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
|
11月前
|
【ERROR】‘<>‘ operator is not allowed for source level below 1.7
【ERROR】‘<>‘ operator is not allowed for source level below 1.7
129 0
|
12月前
|
tracker_query_storage fail, error no: 28, error info: No space left on device
tracker_query_storage fail, error no: 28, error info: No space left on device
236 0
Uncaught runtime errors: × ERROR Avoided redundant navigation to current location: “/xxx“.
Uncaught runtime errors: × ERROR Avoided redundant navigation to current location: “/xxx“.
339 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‘
208 0
Optional int parameter ‘id‘ is present but cannot be translated into a null value due to being ……
Optional int parameter ‘id‘ is present but cannot be translated into a null value due to being ……
379 0