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


相关文章
|
3月前
GEE错误——Layer error: Image.connectedPixelCount: Segment size calculation on floating point bands is n
GEE错误——Layer error: Image.connectedPixelCount: Segment size calculation on floating point bands is n
31 0
|
7月前
|
算法 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
|
3月前
|
前端开发
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>错误
28 0
|
5月前
|
JavaScript
Uncaught runtime errors: × ERROR Avoided redundant navigation to current location: “/xxx“.
Uncaught runtime errors: × ERROR Avoided redundant navigation to current location: “/xxx“.
60 0
GenImageInterleaved Wrong type of control parameter 1
GenImageInterleaved Wrong type of control parameter 1
|
9月前
|
Linux
Specified sample format -1 is invalid or not supported
Specified sample format -1 is invalid or not supported
134 0
Specified sample format -1 is invalid or not supported
|
计算机视觉
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
404 0
|
编解码 定位技术
Google Earth Engine——Error: Image.clipToBoundsAndScale, argument ‘input‘: Invalid type的错误解决
Google Earth Engine——Error: Image.clipToBoundsAndScale, argument ‘input‘: Invalid type的错误解决
260 0
Google Earth Engine——Error: Image.clipToBoundsAndScale, argument ‘input‘: Invalid type的错误解决
成功解决lightgbm.basic.LightGBMError: Parameter max_depth should be of type int, got “0.02“
成功解决lightgbm.basic.LightGBMError: Parameter max_depth should be of type int, got “0.02“
|
前端开发
Google Earth Engine——Layer error: Description length exceeds maximum.解决办法
Google Earth Engine——Layer error: Description length exceeds maximum.解决办法
582 0
Google Earth Engine——Layer error: Description length exceeds maximum.解决办法