MeVisLab Toolbox Reference
mlLineApplicator.h
Go to the documentation of this file.
1/*************************************************************************************
2**
3** Copyright 2007, MeVis Medical Solutions AG
4**
5** The user may use this file in accordance with the license agreement provided with
6** the Software or, alternatively, in accordance with the terms contained in a
7** written agreement between the user and MeVis Medical Solutions AG.
8**
9** For further information use the contact form at https://www.mevislab.de/contact
10**
11**************************************************************************************/
12
13
17
18#if !defined(__mlLineApplicator_H)
19#define __mlLineApplicator_H
20
21// ML-includes
22#include "mlInitSystemKernel.h"
23
24ML_START_NAMESPACE
25
26 //---------------------------------------------------------------------------------------------
52 //---------------------------------------------------------------------------------------------
53 template <typename DATATYPE> class MLKERNELEXPORT LineApplicator {
54
55 //-------------------------------------------------------------------------------------------
56 //----------------------- CONSTRUCTORS AND DESTRUCTOR ---------------------------------------
57 //-------------------------------------------------------------------------------------------
58
59public:
62 virtual void applyToLine(TSubImageWithCursor<DATATYPE>*, // inSubImg
64 size_t) // numVox
65 {}
66
68 virtual ~LineApplicator() {}
69
71 virtual ImageVector getNegativeExtent() const { return ImageVector(0); }
72
74 virtual ImageVector getPositiveExtent() const { return ImageVector(0); }
75 };
76
77ML_END_NAMESPACE
78
79#endif // __mlLineApplicator_H
80
virtual ~LineApplicator()
Virtual destructor. Currently it does nothing.
virtual ImageVector getNegativeExtent() const
Returns the negative extent of a kernel used for filtering.
virtual void applyToLine(TSubImageWithCursor< DATATYPE > *, TSubImageWithCursor< DATATYPE > *, size_t)
virtual ImageVector getPositiveExtent() const
Returns the positive extent of a kernel used for filtering.
#define MLKERNELEXPORT
TImageVector< MLint > ImageVector
Defines the standard ImageVector type that is used by the ML for indexing and coordinates.