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

相关文章
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
|
5月前
|
Java
【ERROR】‘<>‘ operator is not allowed for source level below 1.7
【ERROR】‘<>‘ operator is not allowed for source level below 1.7
52 0
|
6月前
Parsing error: The keyword ‘const‘ is reserved
Parsing error: The keyword ‘const‘ is reserved
|
Linux
Specified sample format -1 is invalid or not supported
Specified sample format -1 is invalid or not supported
217 0
Specified sample format -1 is invalid or not supported
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 ……
305 0
解决Invalid prop: type check failed for prop “model“. Expected Object, got Array问题
解决Invalid prop: type check failed for prop “model“. Expected Object, got Array问题
解决Invalid prop: type check failed for prop “model“. Expected Object, got Array问题
|
C语言
error: implicit declaration of function ‘VerifyFixClassname‘ is invalid in C99 [-Werror,-Wimplicit-f
error: implicit declaration of function ‘VerifyFixClassname‘ is invalid in C99 [-Werror,-Wimplicit-f
148 0
|
计算机视觉
opencv出错:error: (-213:The function/feature is not implemented) Unknown/unsupported array type
opencv出错:error: (-213:The function/feature is not implemented) Unknown/unsupported array type
469 0