I am new to CUDA and I ran into a problem with cutLoadPGMf.
My PGM image size is 2736x3648 pixels. I did a simple program:
float* dataf = (float*)malloc(2736*3648*sizeof(float)); unsigned int width, height; cutLoadPGMf("IMG_0011.pgm", &dataf, &width, &height); printf("Loaded %d x %d pixels\n", width, height);
And the printf told me that the width is 86 and the height is 3. And I cannot see why?
Can anybody give me a hint?