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
|
14天前
|
Java
【ERROR】‘<>‘ operator is not allowed for source level below 1.7
【ERROR】‘<>‘ operator is not allowed for source level below 1.7
7 0
|
2月前
|
前端开发
Google Earth Engine(GEE)——argument ‘input‘: Invalid type. Expected type: Image<unknown bands>错误
Google Earth Engine(GEE)——argument ‘input‘: Invalid type. Expected type: Image<unknown bands>错误
36 0
GenImageInterleaved Wrong type of control parameter 1
GenImageInterleaved Wrong type of control parameter 1
|
11月前
|
Linux
Specified sample format -1 is invalid or not supported
Specified sample format -1 is invalid or not supported
156 0
Specified sample format -1 is invalid or not supported
|
11月前
YOLO V5出现RuntimeError: result type Float can‘t be cast to the desired output type long int解决方法
YOLO V5出现RuntimeError: result type Float can‘t be cast to the desired output type long int解决方法
561 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 ……
221 0
成功解决absl.flags._exceptions.UnrecognizedFlagError: Unknown command line flag 'data_format'
成功解决absl.flags._exceptions.UnrecognizedFlagError: Unknown command line flag 'data_format'
FFmpeg Invalid data found when processing input
FFmpeg Invalid data found when processing input
420 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
429 0