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, &region,tMin, tMax);
错误原因:
 tMin各元素类型不一致,改成一致就好了。
修改后:
HTuple tMin, tMax;
    tMin.Append(3).Append(5);
    tMax.Append(4.0).Append(8.0);
    Hobject region;
    Halcon::threshold(img, &region,tMin, tMax);
开发环境:
VS2013、Win10

posted on 2023-04-15 14:05  闻缺陷则喜何志丹  阅读(147)  评论(0编辑  收藏  举报  来源