首页 > 解决方案 > 项目没有错误,但我看不到相机图像

问题描述

Netbeans图像处理,项目没有报错,但是相机不开机蓝屏给

    CLKernel[] kernels = buildKernels(fastCompilerOptions, "JavaCV.cl", "pyrDown", "remap", "remapBayer");
    this.pyrDownKernel    = kernels[0];
    this.remapKernel      = kernels[1];
    this.remapBayerKernel = kernels[2];
}

这不是一个错误,但我收到了这样的警告。

编译失败 CLDevice [id:20385744 名称:Intel(R) HD Graphics 520 类型:GPU 配置文件:FULL_PROFILE] 构建日志:2:85:29:错误:标量操作数类型的等级高于向量元素的类型。('double' 和 'float4' (4 'float' 值的向量)) float4 rgb = (1.0/256.0) (S(x2-2, y2-2) + S(x2+2, y2-2) + S (x2-2, y2+2) + S(x2+2, y2+2)) + ~~~~~~~~~~~^~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2:86 :29: 错误:标量操作数类型的等级高于向量元素的类型。('double' 和 'float4' (4 'float' 值的向量)) (4.0/256.0)(S(x2-1, y2-2) + S(x2+1, y2-2) + S(x2-2, y2-1) + S(x2+2, y2-1) + ~~~~~~ ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~ 2:88:29:错误:标量操作数类型的等级高于向量元素的类型。('double'和'float4 ' (4 个“浮点”值的向量)) (6.0/256.0) (S(x2 , y2-2) + S(x2-2, y2 ) + S(x2+2, y2 ) + S(x2 , y2+ 2)) + ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2:89:29:错误:标量操作数类型的等级高于向量元素的类型. ('double' 和 'float4' (4 'float' 值的向量)) (16.0/256.0)(S(x2-1, y2-1) + S(x2+1, y2-1) + S(x2-1, y2+1) + S(x2+1, y2+1)) + ~~~~ ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~ 2:90:29:错误:标量操作数类型的等级高于向量元素的类型。('double' 和 'float4' (4 'float' 值的向量)) (24.0/256.0)*(S(x2 , y2-1) + S(x2-1, y2 ) + S(x2+1, y2 ) + S(x2 , y2+1)) +

2:91:29: error: scalar operand type has greater rank than the type of the vector element. ('double' and 'float4' (vector of 4 'float' values))
                (36.0/256.0)* S(x2  , y2  );
                ~~~~~~~~~~~~^ ~~~~~~~~~~~~~ [error: CL_BUILD_PROGRAM_FAILURE]
    at com.jogamp.opencl.CLException.newException(CLException.java:84)
    at com.jogamp.opencl.CLProgram.build(CLProgram.java:392)
    at com.jogamp.opencl.CLProgram.build(CLProgram.java:273)
    at org.bytedeco.javacv.JavaCVCL.buildKernels(JavaCVCL.java:251)
    at org.bytedeco.javacv.JavaCVCL.buildKernels(JavaCVCL.java:233)
    at org.bytedeco.javacv.JavaCVCL.<init>(JavaCVCL.java:162)`enter code here`
    at org.bytedeco.javacv.JavaCVCL.<init>(JavaCVCL.java:105)
    at org.bytedeco.javacv.GLCanvasFrame.main(GLCanvasFrame.java:325)

标签: javaimage-processingnetbeansface-detection

解决方案


推荐阅读