Assignement Part 01

CamiTK Developers Use Cases


Objectifs

Exercices

Windows installation

To install the application Imp with a Windows system:

  • Download the Imp executable for windows here
  • Launch the executable on your computer to install the software
  • To start Imp, find the CamiTKimp shortcut in your program bar.

Linux Ubuntu installation

To install the application Imp with a Linux (Ubuntu) system:

  • Download the Imp Debian package here
  • Launch the Debian package (.deb) of your choice on your computer to install the software
  • To start Imp, find the CamiTKimp shortcut usr/local/CamiTK/bin/Imp

for the 1st part of the Tutorial, only the Windows installation has been tested. It is possible that in room E303, where you will be able to work on your project, an older version of CamiTK is installed. However the results will be the same. You should also be able to install the CamiTK 3.0.3 installer for windows on the E303 machines.

Opening image volumes

To open an image volume given in the Data directory,

  • click on the menu File -> Open...,
  • or click on the corresponding icon,
  • or use the keyboard shortcut Ctrl + o.

You should see something similar to the screenshot below.

Opening 3D image
Figure 3.1. Opening a 3D image

Open image01.raw

To open this volume with Imp, you must fill in the following properties (the other fields should stay to default values):

  • Dim X: 256
  • Dim Y: 256
  • Dim Z: 171
  • Voxel Value Type: unsigned char
  • Voxel Size X: 1.17188
  • Voxel Size Y: 1.17188
  • Voxel Size Z: 1.1686

Display modes

The visualization window is separated into 4 parts:

  • A 3D view on the bottom right corner.
  • An axial view on the top left hand corner.
  • A sagittal view on the top right hand corner.
  • A coronal view on the bottom left corner.
Figure 3.2. Body Planes

If you want to display only one window out of these four,

  • click on the menu View -> Medical Image Viewer -> Visible viewers
  • or use the keyboard shortcuts Ctrl + 0, Ctrl + 1, Ctrl + 2, Ctrl + 3, Ctrl + 4.
Figure 3.3. Image Processing Viewer

3D window

You can use the mouse to navigate:

  • left button: rotation;
  • wheel: zoom;
  • wheel button: translation;
  • right button: zoom.

2D viewers

You can use the mouse to navigate:

  • wheel: zoom;
  • wheel button: translation.
  • crtl + left button: triangulation (move the triangulation point and refresh the other viewers).

you can use the viewer interface:

  • slider (on the right of the slice): slicing;
  • screencapture button (on the right of the slice, above the slider): allows to save a slice

All views are synchronized, thus the other views change according to the clicked voxel.

Note that when you change the displayed slice, it is updated in the 3D window if present.
To display a slice orientation in the 3D viewer, right click on the corresponding item in the Explorer panel and select Display Slice in 3D Viewer.

To save an image (after having applied a filter for example):

  • select the image in the Explorer window and then click on File menu -> Save as...
  • You then have to specify a directory and a file name.
When you enter the file name, do not forget to specify a file extension.

You have seen .raw as extension, you may want to use .mha as extension as it saves not only the data matrix but also image volume information, which save you the time to enter DimX, DimY, etc. each time you want to load an image volume.

To update image lookup table (lut), the application Imp must display the lut in the Action viewer.

To make it appear:

  • Make the Action Viewer panel visible by selecting it in the View drop-down menu;
  • Select the image in the Explorer window;
  • Then, in the Action viewer, select the "ImageLut" item in the drop down menu "Family", and "Lut" in the drop down menu "Action".

The lookup table should appear. The different elements of the window are:

  • The histogram which represents the contrast enhancement of the image,
  • the parameters used to update the lookup table,

The Reset button is used to (re)init the lookup table

The histogram parameters are:

  • Window Width
  • Window Level
  • Greyscale -> RGB map
  • Transparency management
  • Lookup table inversion
  • ...
Image Processing Viewer
Figure 5.1. Image Processing Viewer

To apply image filter, the application Imp must display the ITK Image Filters explorer.

To make it appear:

  • Click left on the image name in the Explorer window and then click in "ITK Filter", and choose a filter.
  • Or, select an image, and in the Action Viewer, select "ITK filter" in the "Family" drop-down menu,and choose a filter
  • Give the filter parameters;
    Remark: Depending on the filter you select, there might be no parameters.
  • Click on Apply.
    The process can take from some seconds to several minutes. You can follow its progress with the progress bar.

A new filtered image will be created and will appear in the explorer panel.

Figure 6.1. Image Processing Viewer