Tuesday, July 10, 2012

Slicing Test Cases and Rendering in OpenGL



Slices of Cylinder Along Y(-Z) axis
Rendering Slices of Cylinder Along Z axis in OpenGL in Real Time

In the last update I had the slices of spheres and cloud. This time to really test the slicing algorithm, I used a cylinder and sliced it along many different directions. Along Z axis, there are rectangular slices. Along Y axis, there are circular slices. Along Y(-Z) there are elliptical slices. Thus, the slicer passed all the tests.

Further, I have used OpenGL for rendering the results dynamically. First I tested with a 100 x 150 image. It was running real time at that resolution. But then I increased the resolution to 510 x 335, at which the slicer became really "not real time".

Thankfully, I had spent time in the earlier stages of the project working on multi threading. I added multi threading to my slicing algorithm and now it runs in real time!

No comments:

Post a Comment