Library documentation
Before using any of the library classes, run the initialization procedure
mrlib_init.
Display objects
Class to display one single image. mrDisplay provides callback functionality
upon mouse events - see the plugins below.
As mrDisplay, but for the display of an n x m array of images in one drawing widget.
Plugin objects
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.
Handles zooming within a mrDisplay
object while optionally displaying the current zoom factor in the display.
Plugs into mrDisplay and
provides panning functionality.
Plugin for mrDisplay for display of
image coordinate and value under current cursor position.
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,
Data I/O objects
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'.
Imagesets can be identified via two strings: 'class' and 'name'.
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).
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.
Subclass to IDLffDicom which provides writing functionality and easy
access to dicom tags via tag-names.
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
A progressbar which can either be realized as a top-level window or embedded
as a widget in an application window.
A horizontal colorbar from David Fanning's
library, slightly modified.
As above, but in vertical direction.
Compound widgets
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
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.
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
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.
Subclass to IDLContainer and mrNotify,
thus providing notifications upon content changes.
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.
Container class for mrparameter. Provides load and save functionality for
parameter sets. File format is XML.
Miscellaneous
Implements a notification mechanism. Subclass from mrNotify to add notification
functionality to a class.
creates a true color image from an indexed image and three RGB-vectors
Loads the standard VGA color table via tvlct.
Given one of the 16 standard VGA color names, return the corresponding index in the
colortable as defined via color_init.
Given one of the 16 standard VGA color names, return the corresponding RGB values in
a 3-element array.
returns the directory name of a filename given as an argument.
Last updated: 24.11.2004, O.Thilmann