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 都可以,其它值不行。


相关文章
|
算法 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
Invalid mapping pattern detected: /download/{{fileName}} ^Not allowed to nest variable c
Invalid mapping pattern detected: /download/{{fileName}} ^Not allowed to nest variable c
|
7月前
|
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
70 1
|
C++
Reference Parameter
Reference Parameter(引用参数)是一种 C++ 编程语言中的参数传递方式。它允许将一个变量的引用(而不是副本)作为函数参数传递。引用参数的主要优点是可以避免在函数内部对实参进行拷贝操作,从而提高代码的效率。
89 1
|
Linux
Specified sample format -1 is invalid or not supported
Specified sample format -1 is invalid or not supported
236 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 ……
324 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
485 0
SAP WM Storage Type Capacity Check Method 5 (Usage check based on SUT)
SAP WM Storage Type Capacity Check Method 5 (Usage check based on SUT)
SAP WM Storage Type Capacity Check Method 5 (Usage check based on SUT)

热门文章

最新文章