Skip to content

Mariam-maghraby/Volume-Rendering-VTK-Project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Open in Visual Studio Code

Details of implementaion:

  • In this task we have used the VC model to achieve the goals of the task.
  • We have used the html files to make the User Interface with the help of the CSS.
  • Then used the controller file as the JavaScript file to controll our view.
  • In the controller we have 3 major scenes to show.
  • One for the clipping and cropping in a chest volume model.
  • Another one is for emphasizing the iso rendering operation.
  • The third one is to demonstrate the concept of the ray casting.
  • We have used the VTK library embeded in our javaScript code.
  • The VTK APIs have helped us in visualizing these concepts with the help of javascript code blocks and functions.
  • The controlling of swaping between the scenes is done by controlling the display modo of each part of the HTML elements.

Results:

  • Now we can cut the volume of the chest using an interactive widget in the three perpendicular planes where this interactive widget gives the user the ability to control which action he wants to perform via checkbox, the user can check if he wants to make the points on the plane to be pickable or not and control all the visibility options.
  • We used surface rendering on the skull with an adjustable iso value in a control panel.
  • Also there is a second example for the chest where we performed ray casting rendering with a transfer function in a widget, and there are multiple interactions in this widget where if the user double clicked, he will create a gaussian at that given position and can delete it with right click, and with dragging the user can change the width and the position of the gaussian.

Code snippets:

  • Our main GUI

  • Fullscreen controller

  • Reading data with http reader

  • Fullscreen renderer object creation

  • Part of the GUI

  • Widget registeration fuction

Issues:

  • The scenes were displayed as layers over each other, so at the first we weren't able to toggle between the scenes.
  • The example at vtk library used an HTML file for the controlPanel but it wasn't included in the the library repo.

How we resolved it:

  • We put each scene render window in a container and toggled the visiblity of the container.
  • We constructed the controlPanel by ourselves in the index.js file.


Project Team Members:

  • Mahmoud Mohamed Seleem
  • Mariam Ashraf Fathi
  • Merna Hossam Mohamed
  • Nada Mamdouh Mohamed

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published