项目中没有错误,但看不到摄像机图像

时间:2019-07-19 08:29:56

标签: java image-processing netbeans face-detection

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个“ float”值的向量))                  (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)

0 个答案:

没有答案