java - 项目没有错误,但我看不到相机图像
问题描述
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)
解决方案
推荐阅读
- r - R 滞后于任意数量的缺失值
- python - 为什么在 Tensorboard Graphs 中显示两个模型?
- haskell - 如何在没有映射或列表理解的情况下在 Haskell 中编写简单的递归双循环
- android-studio - 地图活动作为主要活动开始
- php - 使用 PHP 通过 Telegram-Bot API 发送图像
- python - 我不知道如何解决以下错误;RuntimeError:线程“Thread-1”和“Thread-2”中没有当前事件循环
- java - Java 8 URL 连接是否默认使用 TLS?
- scala - 使用 circe 解码各种类型列表的问题
- visual-studio - vs2017中禁用启动和无调试工具启动
- delphi - 中性语言的文化代码是什么,例如德语(Neural)?