Serializes mitk::Image for mitk::SceneIO.
More...
#include <mitkImageSerializer.h>
Serializes mitk::Image for mitk::SceneIO.
Writes the Image object to a NRRD file (.nrrd) in the configured working directory using mitk::IOUtil. The filename is composed from a unique prefix and the filename hint.
- See also
- BaseDataSerializer, SceneIO, Image
Definition at line 29 of file mitkImageSerializer.h.
◆ ImageSerializer()
| mitk::ImageSerializer::ImageSerializer |
( |
| ) |
|
|
protected |
◆ ~ImageSerializer()
| mitk::ImageSerializer::~ImageSerializer |
( |
| ) |
|
|
overrideprotected |
◆ Clone()
| Pointer mitk::ImageSerializer::Clone |
( |
| ) |
const |
◆ mitkClassMacro()
◆ New()
| static Pointer mitk::ImageSerializer::New |
( |
| ) |
|
|
static |
◆ Serialize()
| std::string mitk::ImageSerializer::Serialize |
( |
| ) |
|
|
overridevirtual |
Serialize the Image object to a .nrrd file.
Casts the stored BaseData to mitk::Image and writes it to disk in NRRD format.
- Returns
- The filename (without path) of the created file, or an empty string on failure.
- Precondition
- The Data must be set and must be castable to mitk::Image.
-
The WorkingDirectory must be set.
Reimplemented from mitk::BaseDataSerializer.
The documentation for this class was generated from the following file: