MeVisLab Toolbox Reference
mlAlgorithmModuleExampleWithOutputImageOutputImageHandler.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 <mlTypedHandlers.h>
8
10
19: public TypedCalculateOutputImageHandler< AlgorithmModuleExampleWithOutputImageOutputImageHandler,
20 /* numInputs = */ 1,
21 /* MLVariableType0 = */ ScalarTypes >
22{
23 public:
25 enum {
26 OutputSubImage_Type = MLVariableType0,
27 InputSubImage0_Type = MLVariableType0,
28
29 InputSubImage0_ReadOnly = true
30 };
31
34
36
38 void typedCalculateOutputSubImage(TSubImage<OUTTYPE>& outputSubImage,
40 UserThreadData* /*userThreadData*/);
41
42 private:
44 void processBox(TSubImage<OUTTYPE>& outputSubImage,
46 const SubImageBox& box);
47
49 void processRow(TSubImage<OUTTYPE>& outputSubImage,
51 const ImageVector& start,
52 const ImageVector& last);
53
55 void invertValue(const OUTTYPE* inVoxel, OUTTYPE* outVoxel);
56};
57
The AlgorithmModuleExampleWithOutputImageOutputImageHandler handles the page calculation of an output...
This template class manages/represents a rectangular 6d image region in memory which is organized lin...
TypedCalculateOutputImageHandler can be used as a base class for an own CalculateOutputImageHandler a...
Base class for thread local data that is passed to CalculateOutputImageHandler::calculateOutputSubIma...
Target mlrange_cast(Source arg)
Generic version of checked ML casts.
const int MLVariableType0
Defines to use the result type of variable type 0.