next up previous
Next: 2. Developpers guide Up: 1.1 Getting Started Previous: 1.1.2 Using the viewer

1.1.3 Using and compiling with the library

Once imlib3d is compiled and installed, you should start by looking at the example programs. Try to compile them outside of ImLib3D source directory. You can use the imlib3d-config program to get compile and link flags. For example: imlib3d-config --cflags will give you the flags needed to compile a program using ImLib3D. imlib3d-config --libs will give you the flags needed to link a program using ImLib3D. If you have installed the shared libraries (default) in a non standrad location, make sure your$LD_LIBRARY_PATH points to the correct "lib" directory. <p>Then try out the command line processor. For correct operation, you should create an empty directory somwhere copy the bin/ImageProcessorsDescription.xml into it, and make your IMLIB3D_PLUGIN_PATH environment variable point to that directory. Try imlib3d --help and imlib3d --list. The latter will give you a complete list of all processors. If you type imlib3d aProcessorName you will get a description for that processor.

You probably will want to acces images that are in another 3D image format. If you have AVW (analyze) images you can convert them using the ReadFromFileAVW processor: imlib3d ReadFromFileAVW myavwimage newimage.im3D. Otherwise, usually you can get raw binary data from your image format. You can then use the ImageFromRawData processor to create an ImLib3D image from the raw data. For example, if your raw image is made of unsigned bytes and it's size is $128^3$ then you could use: (Mask3D is an image of unsigned bytes)

imlib3d ImageFromRawData Mask3D rawdatafile 128 128 128 XYZ res.im3D
imlib3dview res.im3D


next up previous
Next: 2. Developpers guide Up: 1.1 Getting Started Previous: 1.1.2 Using the viewer
Marcel Bosc 2002-07-17