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

关于affine_trans_region最后一个参数,帮助上可选值是:


'constant', 'nearest_neighbor'


VS2013 halcon10 这两个值都会崩溃。


void Test()
        {
            HObject rRect;
            HOperatorSet.GenRectangle1(out rRect,0, 0, 100, 100);
            HTuple matIdentity;
            HOperatorSet.HomMat2dIdentity(out matIdentity);         
            HObject rDilation = new HObject();
            HOperatorSet.GenEmptyObj(out rDilation);
            HOperatorSet.AffineTransRegion(rRect, out rDilation, matIdentity, "nearest_neighbor");       
        }

最后一个参数改成: "true"或"false"都可以。


HOperatorSet.AffineTransRegion(rRect, out rDilation, matIdentity, "true");


halcon18 这两个值 true false 都可以,其它值不行。


相关文章
|
IDE PyTorch 网络安全
|
算法 C# C++
HALCON error #1201: Wrong type of control parameter: 1 in operator threshold
HALCON error #1201: Wrong type of control parameter: 1 in operator threshold
|
8月前
|
iOS开发
Xcode报错“compact unwind compressed function offset doesn‘t fit in 24 bits
Xcode报错“compact unwind compressed function offset doesn‘t fit in 24 bits
75 1
Input operand 1 has a mismatch in its core dimension 0, with gufunc signature (n?,k),(k,m?)->(n?,m?)
Input operand 1 has a mismatch in its core dimension 0, with gufunc signature (n?,k),(k,m?)->(n?,m?)
412 0
Input operand 1 has a mismatch in its core dimension 0, with gufunc signature (n?,k),(k,m?)->(n?,m?)
|
JSON 数据格式
遇到【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】的解决办法
|
计算机视觉
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
490 0
|
Python
解决办法:RuntimeWarning: numpy.dtype size changed, may indicate binary incompatibility. Expected 96
解决办法:RuntimeWarning: numpy.dtype size changed, may indicate binary incompatibility. Expected 96
581 0
解决办法: error: passing ‘const VideoFrame’ as ‘this’ argument discards qualifiers [-fpermissive]
解决办法: error: passing ‘const VideoFrame’ as ‘this’ argument discards qualifiers [-fpermissive]
244 0
成功解决ValueError: numpy.ufunc size changed, may indicate binary incompatibility. Expected 216 from C h
成功解决ValueError: numpy.ufunc size changed, may indicate binary incompatibility. Expected 216 from C h
成功解决ValueError: numpy.ufunc size changed, may indicate binary incompatibility. Expected 216 from C h

热门文章

最新文章

下一篇
开通oss服务