利用CUDA加速opencv cvtColor
__global__ void rgb_to_ycrcb(uchar3 *input,uchar3 *out,int h,int w,float *y){ unsigned int x=blockDim.x*blockIdx.x+threadIdx.x; unsigned int y=blockDim.y*blockIdx.y+threadIdx.y; if(x<w&&y<h) { uchar3 rgb=input[y*w+x];