The purpose of this document is to aid new users in installing all the components, which we use in developing with DIVA (DTU Image Viewer and Analyser). The construction of most of these tools has nothing to do with us, but the here described DIVA set up will provide a good toolbox, and enable you to utilize our supplied functionality. Writing a “How To” like this is no easy task, since details are often missed and the diversity of PC platforms is great, as such there is bound to be errors in the first versions of this document. But it should give a good guideline of how to get DIVA up and running. And needless to say comments - e.g. discovered errors - are welcome at diva@imm.dtu.dk.
The DIVA ‘package’ consists of:
Write what is
optional and what is necessary.
We assume that you
have a working installation of Visual Studio C++. The rest of the components
have to be installed and connected. We suggest the following procedure:
IPL is a set of image functions made and optimised for the Intel processors by Intel. To install IPL:
NB: If you want to use IPL functions in your programs “ipl.lib” should be added to Projects->Settings->Link “Object/Library Moduels:”
Known Problem: A rather common problem with using IPL from VisSDK is that VisSDK does not always recognize IPL when it compiles. This is seen by the file VisLocalInfo.h not containing the statement: #define VIS_IPL_IPL_H "ipl.h". The batch file VisLocalInfo.bat, which is run when VisSDK is compiled, generates VisLoclInfo.h. The ‘fix’ is to add the path name of ipl.h to the system environment variable include.
VisSDK is a software package developed by Microsoft research, with full access to the code. This package is at the core of DIVA, and supplies most of the low-level data structures and functions - hail Eric J. To install VisSDK:
LAPACK is a library of linear algebra routines. These can be coupled to the Matrix class of VisSDK. To enable CLAPACK support:
For further information the reader is referred to the VisSDK and CLAPACK documentation. We plan to be looking into using Intel’s Math Kernel Library (MKL), for further performance.
In order to utilize or supplied functionality, you have to link to them. This is done by:
If you want to use DIVA functions in your programs the appropriate library files –e.g. DivaMatrixDLL.lib - should be added to Projects->Settings->Link “Object/Library Moduels:”. Note that there are debug and release versions of the library files e.g. DivaMatrixDLLDB.lib and DivaMatrixDLL.lib respectively.
Image Magic, is a program package that allows I/O of a multitude of file formats, and is not necessary to run DIVA. To install ImageMacic: