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
10ML_START_NAMESPACE
11
14
15 public:
18
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
35ML_END_NAMESPACE
#define ML_ALGORITHM_MODULE_EXAMPLES_EXPORT
CalculateOutputImageHandler * createCalculateOutputImageHandler(PagedImage *outputImage) override final
void update() override final
Executes the algorithm and updates the values of module's output fields with results.
void clear() override final
Clears the values of module's output fields (object and parameter fields).
void setOutputImageProperties(int outputIndex, PagedImage *outputImage) override final
Sets properties of the output image at output outputIndex.
~AlgorithmModuleExampleWithOutputImage() override final
void validateInput() override final
Validates the values of module's input fields (object and parameter fields).
AlgorithmModule(int numInputImages, int numOutputImages)
Forwards given parameters to base class constructor.
#define ML_MODULE_CLASS_HEADER(className)