MeVisLab Toolbox Reference
mlAlgorithmModuleExampleWithOutputImage.h
Go to the documentation of this file.
1 // Copyright (c) Fraunhofer MEVIS, Germany. All rights reserved.
2 // **InsertLicense** code
3 //----------------------------------------------------------------------------------
4 
5 #pragma once
6 
7 #include "librarySystem.h"
8 #include <mlAlgorithmModule.h>
9 
10 ML_START_NAMESPACE
11 
14 
15  public:
18 
19  CalculateOutputImageHandler* createCalculateOutputImageHandler(PagedImage* outputImage) override final;
20 
21  protected:
22  void validateInput() override final;
23  void update() override final;
24  void clear() override final;
25  void setOutputImageProperties(int outputIndex, PagedImage* outputImage) override final;
26 
27  private:
28  void validateInputImage();
29  void notifyOutputImageFieldAttachments();
30  void invalidateOutputImage();
31 
33 };
34 
35 ML_END_NAMESPACE
Example to demonstrate the development of an ML module with an output image based on AlgorithmModule.
~AlgorithmModuleExampleWithOutputImage() override final
ML-Module base class to simplify development of modules encapsulating an algorithm with dedicated inp...
Base class for the calculation of pages of an output image (PagedImage) of a Module.
Class which represents an image, which manages properties of an image and image data which is located...
Definition: mlPagedImage.h:70
#define ML_MODULE_CLASS_HEADER(className)
Like ML_CLASS_HEADER for the usage of derived classes from Module.
#define ML_ALGORITHM_MODULE_EXAMPLES_EXPORT
Definition: librarySystem.h:13