It seems that man can only load pgm or ppm format images into memories by using the functions below ???
CUT_SAFE_CALL(cutSavePGMf(name1, img1.h_data, dataW1, dataH1));
CUT_SAFE_CALL(cutLoadPGMf(name1, &indata, &dataW1, &dataH1));
other format (jpg,png) can’t be loaded??? only pgm or ppm ??? why ?
the problem is how to transfer the imagedata from openCV to cuda?
that is: transfer the data format char (0 to 255 ) to the float format (0.0f to 1.0f) ???
By using openCV all the loaded imagedata (by using the function cvLoadImage) are saved in IplImage->imageData , which is char*. So how can I used these imagedata in Cuda ? because Cuda handle only float formats, which means the imageData are from 0.0f to 1.0f but in OpenCV the imageData are saved