MathLink Page
of BioMedical Image Analysis

MathLink Installation

MathLink is usually installed along with Mathematica. However, some student versions do not include MathLink or you may have disabled MathLink in the Mathematica installation process. Furthermore, older MathLink versions may be incompatible with the code you find on our site or you like to compile your own MathLink code. In this case, feel free to download MathLink revision 11 for Windows or MacOSX: MathLink for Windows and MathLink for MacOSX. The Installation menu button to the left leads you to further, more detailed installation instruction.

MathLink Introduction

Mathematica is made up by two executables: the Kernel and the Front End. In most cases the user starts and works with the Mathematica Front End, which automatically starts and communicates with the Kernel in the background. The Front End is in charge of the users in- and output, it generates the graphics and handles the mathematical typesetting tasks. The Kernel performs all the calculations, numerical as well as symbolical. The calucation requests are send from the Front End to the Kernel and the results are send back via, finally we get to the point, MathLink! MathLink is a communication protocol that transmits Mathematica expressions. It is possible to write C-programs that connect to this MathLink communication link. We utilize MathLink and its SDK to compile I/O routines and to speed up sensitive tasks in C. We can call this external code from within Mathematica. Menu button Introduction leads to furhter introduction material and to manuals on how to program MathLink-executables.


We use MathLink to construct converters that can read an write all kinds of file formats encounterd in biomdeical imaging. Follow the menu button Converters to find code that can read and write DICOM, ANI, FDF, and more.


To help you in the construction of MathLink executables we exhibit some example code. Furthermore, for Microsoft Visual Studio.Net and Apples Project Builder we prepared project templates the helps you to get started. Follow the menu button Examples to these resources.

This page was last updated by Markus van Almsick on March 6, 2003.
If you have any comments, please send a message to