[ VIGRA Homepage | Function Index | Class Index | Namespaces | File List | Main Page ]

Image Import and Export

Conversion from and to other image data types

There are two fundamentally different approaches to interfacing between VIGRA and the rest of the world.

If you already have an image data type in your system:

Then I recommend using VIGRA's algorithms directly on top of your data type. To do this, you simply wrap your data in an vigra::ImageIterator and/or vigra::MultiArrayView (depending on the functions you want to call). If your data have some exotic properties, that prevent this solution from working, you can still implement your own versions or subclasses of the interface classe, which isn't very difficult.

Alternatively, you may use the data structures provided within VIGRA and convert your data type into one of them. Take a look at tiffToScalarImage() and createScalarTiffImage() to see how this might be done.

If you don't have an image data type in your system:

Use the data structures provided within VIGRA and use one of the import/export facilities above.

© Ullrich Köthe (ullrich.koethe@iwr.uni-heidelberg.de)
Heidelberg Collaboratory for Image Processing, University of Heidelberg, Germany

html generated using doxygen and Python
vigra 1.7.0 (Thu Aug 25 2011)