level 1
hands133
楼主
如题,我想在Android studio上调用getStructuringElement,但是总是不通过:'(
Mat kernel = Imgproc.getStructuringElement(Imgproc.MORPH_CROSS,
new Size(3,3),
new Point(3,3));
还是
int kernelsize = 3;
Mat kernel = Imgproc.getStructuringElement(Imgproc.MORPH_CROSS,
new Size(kernelsize*2+1),
new Point(kernelsize*2+1));
都会报错
错误信息:
Error:(573, 79) 错误: 无法取消引用int
Error:(1967, 21) 错误: 找不到符号
符号: 变量 nativeObj
位置: 类型为Bitmap的变量 src
Error:(2672, 54) 错误: 找不到符号
符号: 变量 op
位置: 类 Imgproc
Error:Execution failed for task ':openCVLibrary341:compileDebugJavaWithJavac'.
> Compilation failed; see the compiler error output for details.
2018年04月07日 15点04分
1
Mat kernel = Imgproc.getStructuringElement(Imgproc.MORPH_CROSS,
new Size(3,3),
new Point(3,3));
还是
int kernelsize = 3;
Mat kernel = Imgproc.getStructuringElement(Imgproc.MORPH_CROSS,
new Size(kernelsize*2+1),
new Point(kernelsize*2+1));
都会报错
错误信息:
Error:(573, 79) 错误: 无法取消引用int
Error:(1967, 21) 错误: 找不到符号
符号: 变量 nativeObj
位置: 类型为Bitmap的变量 src
Error:(2672, 54) 错误: 找不到符号
符号: 变量 op
位置: 类 Imgproc
Error:Execution failed for task ':openCVLibrary341:compileDebugJavaWithJavac'.
> Compilation failed; see the compiler error output for details.