#include <ImageWriterFactory.h>
Factory for instantiation of image writers
Definition at line 37 of file ImageWriterFactory.h.
§ Instance()
Singleton instance
- Attention
- This function is not thread-safe!
§ New()
ImageWriter* mirtk::ImageWriterFactory::New |
( |
const char * |
fname | ) |
const |
Construct new image writer for given output image file name
- Returns
- Image writer which is able to write an image in the format corresponding to the given file name extension or nullptr when no such writer is registered.
§ Register()
bool mirtk::ImageWriterFactory::Register |
( |
const Array< string > & |
exts, |
|
|
ImageWriterCreator |
creator |
|
) |
| |
Register new image writer
- Parameters
-
[in] | exts | File name extensions. |
[in] | creator | Image writer instantiation function. |
The documentation for this class was generated from the following file: