MeVisLab Toolbox Reference
mlRTImageToML.h
Go to the documentation of this file.
1 // Copyright (c) Fraunhofer MEVIS, Germany. All rights reserved.
2 // **InsertLicense** code
3 //----------------------------------------------------------------------------------
5 
11 //----------------------------------------------------------------------------------
12 #ifndef __mlRTImageToML_H
13 #define __mlRTImageToML_H
14 
16 
17 #include <mlAlgorithmModule.h>
18 
19 ML_START_NAMESPACE
20 
21 class DRTImageIODBase;
22 class MultiFileVolume;
23 
26  : public AlgorithmModule
27 {
28 public:
30 
31 protected:
32  virtual void validateInput() override;
33  virtual void update() override;
34  virtual void clear() override;
35  virtual void setOutputImageProperties(int outIndex, PagedImage* outImage) override;
36  virtual void calculateOutputSubImage(SubImage *outSubImage, int outIndex, SubImage *inSubImages) override;
37 
38 private:
39  BaseField *_inRTImageField;
40  DRTImageIODBase *_rtImage;
41  MultiFileVolume *_volumeReference;
42 
44 };
45 
46 ML_END_NAMESPACE
47 
48 #endif // __mlRTImageToML_H
Project global and OS specific declarations.
#define MLDCMTKMLCONVERTERMODULES_EXPORT
ML-Module base class to simplify development of modules encapsulating an algorithm with dedicated inp...
Field to encapsulate a pointer to an ML base object.
Definition: mlFields.h:1187
Base object class for passing DRTImageIOD objects between MeVisLab modules.
Management class used by DirectDicomImport to create, represent and describe volumes composed of mult...
Class which represents an image, which manages properties of an image and image data which is located...
Definition: mlPagedImage.h:70
ML module converting RT Image to a MLImage.
Definition: mlRTImageToML.h:27
virtual void calculateOutputSubImage(SubImage *outSubImage, int outIndex, SubImage *inSubImages) override
Calculate page outputSubImage of output image with index outputIndex given the input image tiles in a...
virtual void clear() override
Clears the values of module's output fields (object and parameter fields).
virtual void setOutputImageProperties(int outIndex, PagedImage *outImage) override
Sets properties of the output image at output outputIndex.
virtual void update() override
Executes the algorithm and updates the values of module's output fields with results.
virtual void validateInput() override
Validates the values of module's input fields (object and parameter fields).
This class manages/represents a rectangular 6d image region which is organized linearly in memory.
Definition: mlSubImage.h:75
#define ML_MODULE_CLASS_HEADER(className)
Like ML_CLASS_HEADER for the usage of derived classes from Module.