I have a 2D grey image (0…255) which I access via a 2D texture. If the texture is
cudaReadModeNormalizedFloat I have to multiply by 255.0f to get back the gray value.
So I thought I would use cudaReadModeElementType instead and access the gray value
as an int directly. Mostly the two yield similar values but there are
slight differences. Larger differences appear to lie where the image intensity changes
rapidly. I have checked all tex2D use integer values for the x and y coordinates,
so I do not think its a question of tex2D interpolating between pixel values.
What else should I check.