[ VIGRA Homepage | Function Index | Class Index | Namespaces | File List | Main Page ]
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 have to provide image iterators and accessors. In many cases, the standard implementations vigra::ImageIterator and vigra::StandardAccessor coming with VIGRA will be applicable. Otherwise, you have to write your own versions which isn't very difficult (look at the code of the above implementations for guidance).
Alternatively, you may use the Image 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 Image Data Structures provided within VIGRA and use one of the import/export facilities above.
© Ullrich Köthe (ullrich.koethe@iwr.uni-heidelberg.de) |
html generated using doxygen and Python
|