clCreateImage2D - Load RGB image
问题 I'm trying to load an OpenCV image ( IplImage ) into GPU with clCreateImage2D . Reason of using IplImage is, i want to load any kind of image.(jpg, bmp, png). I can load image using clCreateImage2D with CL_MEM_READ_ONLY | CL_MEM_COPY_HOST_PTR mem_flags, and CL_RGB and CL_UNORM_SHORT_565 type. But in kernel function read_imagef function is not accept CL_UNORM_SHORT_565 type. So, how can i send RGB image to OpenCL kernel function? Edit: I converted the input image to 32bit. Bu tnow what would