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
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
78
79#endif // __mlLineApplicator_H
80
The LineApplicator class provides pure virtual functions used by the old applyFiltering functions fro...
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)
Method to be overloaded to implement an algorithm which filters a line of the input image.
virtual ImageVector getPositiveExtent() const
Returns the positive extent of a kernel used for filtering.
A class that offers a TSubImage with a TSubImageCursor.
#define MLKERNELEXPORT
Includes files used in many parts of the dll, defined dll-specific macros and controls any system dep...
Target mlrange_cast(Source arg)
Generic version of checked ML casts.