public void pyrDown(CLImage2d srcImg, CLImage2d dstImg) { CLEventList list = null;//new CLEventList(1); pyrDownKernel.putArg(srcImg).putArg(dstImg).rewind(); executeKernel(pyrDownKernel, 0, 0, alignCeil(dstImg.width, 2), alignCeil(dstImg.height, 64), 2, 64, list); // execute program // finish(); // CLEvent event = list.getEvent(0); // System.out.println("pyrDown: " + (event.getProfilingInfo(CLEvent.ProfilingCommand.END) - // event.getProfilingInfo(CLEvent.ProfilingCommand.START))/1000000.0); }
public void remap(CLImage2d srcImg, CLImage2d dstImg, CLImage2d mapxImg, CLImage2d mapyImg, long sensorPattern) { CLEventList list = null;//new CLEventList(1); CLKernel kernel; if (sensorPattern != -1L) { kernel = remapBayerKernel.putArg(srcImg).putArg(dstImg).putArg(mapxImg).putArg(mapyImg).putArg(sensorPattern).rewind(); } else { kernel = remapKernel.putArg(srcImg).putArg(dstImg).putArg(mapxImg).putArg(mapyImg).rewind(); } executeKernel(kernel, 0, 0, alignCeil(dstImg.width, 2), alignCeil(dstImg.height, 64), 2, 64, list); // execute program // finish(); // CLEvent event = list.getEvent(0); // System.out.println("remap: " + (event.getProfilingInfo(CLEvent.ProfilingCommand.END) - // event.getProfilingInfo(CLEvent.ProfilingCommand.START))/1000000.0); }
final int globalSize = JavaCVCL.alignCeil(inputData.roiWidth, localSize); final int reduceSize = globalSize/localSize;
final int globalSize = JavaCVCL.alignCeil(inputData.roiWidth, localSize); final int reduceSize = globalSize/localSize;
final int globalSize = JavaCVCL.alignCeil(inputData.roiWidth, localSize); final int reduceSize = globalSize/localSize;