Dear mwpark,
Do you want to convert .raw file to jpg format just to view the output. May I know the purpose.
dwImageCUDA can stores data in pitch linear(dptr) format and block linear format(cudaArray). So you need to corresponding cudamemcpy function to copy the data from GPU to CPU to access it on CPU. Please check CUDA Runtime API :: CUDA Toolkit Documentation.
If you want to access the data inside a CUDA kernel on GPU, please refer runKernel function in image_streamer_simple sample.
Dear mwpark,
Could you explain a bit more about your usecase like do you connect camera to PX2 and get raw images first and then convert them to jpeg? or you already have set of raw image and you planning to convert to jpeg?
Dear mwpark,
Please check with cudaMemcpy2D function. You can check <driveworks_PATH>/samples/src/sensors/camera_gsml_raw/main.cpp as a reference to check cudaMemcpy2D usage.