Click here to Skip to main content
15,867,308 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Suppose I have 3D volume of image consisting a stack of 150 images of 256X 256

I displayed it glTexImage3D api.Then I pointed a point in the volume using mouse.

Say mouse point be at (189,376) . If it may really 56th slice (127 row index, 38 column index) . How to get this relation mathematically

Can I get some sample code to achieve this.


Regards,
Dileep S.
Posted

1 solution

Could you please elaborate the question.

How do you display the images. It will be nice if you can attach a picture.

Jogi
 
Share this answer
 
Comments
dileep Perumbavoor 5-Nov-14 7:13am    
I tried this example to display the image as in the article
http://www.codeproject.com/Articles/352270/Getting-started-with-Volume-Rendering
and mouse movement as in
http://www.codeproject.com/Articles/35139/Interactive-Techniques-in-Three-dimensional-Scenes
then trying reach the answer to the question

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900