Load 3D Binary Image

Hi
i am naive at cuda.
I need to load 3D binary image in cuda and do some operation on it.
are there any builtin function that can help me do this?

Also i need to do 3D matrix manipulation (addition for instance)
i was confuse about declaring and accessing it??

Thank you for your time

I’m not sure, but I think simpleTexture3D example from the SDK might help you.

Hey Bog thanks for the reply.

Well ya i have been though that example SimpleTextre3D and i am having problem like mentioned in this thread

http://forums.nvidia.com/index.php?showtopic=99226

The error is when in make call to cudaBindTextureToArray(tex, d_image,channelDesc) method it gives the error ‘invalid texture reference

i dont know what wrong with this code… may be u have any idea regarding this.??