Image Display with Mouse-Description

From IGSTK

Jump to: navigation, search

The purpose of this example is to demonstrate using combination of packages from the IGstk into a single application. This application would facilitate the following:

  • loading of an image data in any of the ITK-supported formats,
  • displaying individual slices of the data, one at a time, with means to choose a slice for display (arbitrary or sequential).
  • record voxel co-ordinates of the last point clicked by the mouse on the image display.

A detailed user story is as follows:

  • This demo application opens up a window consisting of the following:
    • a top menu bar.
    • an image display area.
    • text boxes to display voxel co-ordinates of the last point on the image that mouse was clicked upon.
  • The top menu bar of the window has options for
    • choosing the image data from the directory structure local to the machine,
    • safely exiting from the application.
  • When no image data is loaded,
    • The image display area is blank,
    • option(s) for slice selection is grayed,
    • no action is taken on a mouse movement/click.
  • When a new image is read,
    • the middle slice of the data set is displayed in the image window,
    • the slice selector is positioned and set appropriately. Care should be built in that only possible slices for display may be selected.
    • mouse click recording is activated, with text boxes displaying voxel co-ordinates of last clicked point initialised with zeros.
Personal tools
TOOLBOX
LANGUAGES