У меня проблема с транспонированием изображения:
Я вызываю метод ядра:
// index of the pixel on the image
int index_in = index_x + index_y * width;
int index_out = index_x + index_y*height;
// Allocate the shared memory
__shared__ unsigned int onchip_storage[16][16];
// Load the inputs to the shared memory
onchip_storage[threadIdx.y][threadIdx.x] = in[index_in];
// Save the output value to the memory
out[index_out] = onchip_storage[threadIdx.x][threadIdx.y];
Я повернул изображение, но цвета почему-то не такие оригинальные. Есть идеи?
Заранее спасибо.