|
@@ -71,7 +71,7 @@ __global__ void Thumbnail_ushort2(cudaTextureObject_t ushort2_tex, |
|
|
{ |
|
|
{ |
|
|
ushort2 pixel = tex2D<ushort2>(ushort2_tex, x, y); |
|
|
ushort2 pixel = tex2D<ushort2>(ushort2_tex, x, y); |
|
|
atomicAdd(&histogram[(pixel.x + 128) >> 8], 1); |
|
|
atomicAdd(&histogram[(pixel.x + 128) >> 8], 1); |
|
|
atomicAdd(&histogram[256 + (pixel.y + 128) >> 8], 1); |
|
|
|
|
|
|
|
|
atomicAdd(&histogram[256 + ((pixel.y + 128) >> 8)], 1); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|