VisExercises

Exercise 1

Exercise 0 | | Exercise 2

Working with PVM and DICOM

Exercise (1a)

Exercise (1b)

  • Try the “pvmplay” tool as part of the VVV package with the following CT and MRI datasets from the Volume Library:
  • You will find the tool in the “tools” directory.
  • Run the tool from the command line with the above data sets as additional command line argument.
    • After loading the above volume data, scroll through the displayed slices by hitting space - or +.
    • Where can we see the skull in the images?
  • Extract slice number 10 of the CT data set with the command line tool “pvmplay” (run it without arguments to see its usage and command line options).
    • Open the slice with Imagemagick and convert to PNG (using the “display” or “convert” tool of ImageMagick).
  • Now we would like to visualize the bone structure by painting those structures red:
    • Convert the greyscale image to RGB and replace gray values above 200 ($\approx 80%$) with red (use an image manipulation application of your choice).
    • Can we find a threshold value, which masks the bone better?
  • Print out the colored slice and submit it.

Home work (1c)


Notes for Ubuntu users:

  • You need to install the following packages: g++ cmake cmake-curses-gui freeglut3-dev mesa-utils libqt4-dev libz-dev
  • Hint for Ubuntu 14.04 LTS: Due to a linker bug, the dynamic linker will crash on any OpenGL program (like pvmplay), if you have the NVIDIA graphics drivers installed. Ubuntu 15.04 and 16.04 LTS is not affected. For 14.04 LTS use one of the following workarounds:
    • Remove the NVIDIA drivers: sudo apt-get remove nvidia-331
    • Preload the Mesa drivers: export LD_PRELOAD=/usr/lib/x86_64-linux-gnu/mesa/libGL.so.1
    • Use Ubuntu 16.04 LTS

Notes for OpenSuse users:

  • Required dependencies: g++ cmake freeglut-devel libqt4-devel libz-devel

Notes for MacOS X users:

  • It is recommended to install cmake and libz from source!
  • Or use brew to install any missing dependencies!

Notes for VirtualBox users:

  • If you are using VirtualBox or experience problems with your graphics hardware, you need to activate the OpenGL software rasterizer:
export LIBGL_ALWAYS_SOFTWARE=1


Exercise 0 | | Exercise 2

Options: