Library documentation
Before using any of the library classes, run the initialization procedure mrlib_init.
Display objects
mrDisplay
Class to display one single image. mrDisplay provides callback functionality upon mouse events - see the plugins below.
mrMultidisplay
As mrDisplay, but for the display of an n x m array of images in one drawing widget.
Plugin objects
mrContrast
A plugin which allows contrast (bw) or color scaling for both mrDisplay and mrMultidisplay. The plugin also displays the current greyscale/colorscale in a separate widget.
mrZoom
Handles zooming within a mrDisplay object while optionally displaying the current zoom factor in the display.
mrPan
Plugs into mrDisplay and provides panning functionality.
mrCursorInfo
Plugin for mrDisplay for display of image coordinate and value under current cursor position.
mrRoiUI
A class providing ROI definition and analysis functionality. mrRoiUI is plugged into an mrDisplay object and displays the defined ROIs on top of the image. Additionally a command frame is created, either embedded or in a separate window. The ROIs themselves are instances of class mrRoi which is a subclass to IDLgrRoi and itself has subclasses mrRoiDot, mrRoiCirc, mrRoiRect, and mrRoiPoly,
mrDataflash
Plugs into mrDisplay. Given an mrDicom object as input, it displays patient and examination data.
Data I/O objects
mrImageSet
The two mrImageSet classes replace the old mrData class. mrImageSet objects contain, ergh, sets of images, where an image is any n-dimensional array and the pointers to the single images are arranged in a 1-, 2- or 3-dimensional matrix. The class provides load and save functionality and a 'condense' method that allows to transfer one of the matrix dimensions into the image array (which must however be 2-dimensional for the method to work).
Imagesets can be identified via two strings: 'class' and 'name'.
mrImageSetDicom
A subclass to mrImageSet which provides some additional functionality for handling of image sets in Dicom format, as the automatic loading and ordering of large multidimensional image sets (e.g. perfusion data with one spatial (slice position) and one time dimension).
mrGetImageSet
Helper function. Given an IDL_Container of mrImageSet(Dicom) objects, the function returns all objects that match a certain class, name, or class-name combination.
mrDicom
Subclass to IDLffDicom which provides writing functionality and easy access to dicom tags via tag-names.
mrRoiGroup
Subclass to IDL_Container. Meant for storing mrRoi objects for which it provides loading and saving functionality. File format is XML (and thus independent of the IDL version).
Graphics objects
mrProgressbar
A progressbar which can either be realized as a top-level window or embedded as a widget in an application window.
hcolorbar
A horizontal colorbar from David Fanning's library, slightly modified.
vcolorbar
As above, but in vertical direction.
Compound widgets
mrwidget_fileselect
A fileselector box, similar to IDLs cw_fileselect, but a bit nicer layout. Work in progress (selection of non-existent files does not work, yet), so it's WIP
mrwidget_numfield
A widget_field together with a label and up/down arrows for number input. Clicking the arrows will increase/decrease the displayed number by a specified amount. Limits can be set and are controlled by the widget itself.
mrdialog_select
A widget similar to dialog_message, but any number of button (contents) can be specified. As opposed to dialog_message, the return value is not the button text, but the button index.
Data types
mrHash
Implements a primitive associative array. Internally a simple linear array, as of now, this implementation is only suited for associative arrays for a couple of 1000 elements.
mrContainer
Subclass to IDLContainer and mrNotify, thus providing notifications upon content changes.
mrParameter
Class to hold a named parameter, single element or array of integer, real or string type. Setting of limits, step size or a list of valid values is also possible for use with a UI class.
mrParameterSet
Container class for mrparameter. Provides load and save functionality for parameter sets. File format is XML.
Miscellaneous
mrNotify
Implements a notification mechanism. Subclass from mrNotify to add notification functionality to a class.
createTrueColorImg
creates a true color image from an indexed image and three RGB-vectors
color_init
Loads the standard VGA color table via tvlct.
color_getidx
Given one of the 16 standard VGA color names, return the corresponding index in the colortable as defined via color_init.
color_getrgb
Given one of the 16 standard VGA color names, return the corresponding RGB values in a 3-element array.
dirname
returns the directory name of a filename given as an argument.


Last updated: 24.11.2004, O.Thilmann