go home Home | Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | File List | Namespace Members | Data Fields | Globals | Related Pages
itkLimiterFunctionBase.h
Go to the documentation of this file.
1/*=========================================================================
2 *
3 * Copyright UMC Utrecht and contributors
4 *
5 * Licensed under the Apache License, Version 2.0 (the "License");
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at
8 *
9 * http://www.apache.org/licenses/LICENSE-2.0.txt
10 *
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
16 *
17 *=========================================================================*/
18#ifndef __itkLimiterFunctionBase_h
19#define __itkLimiterFunctionBase_h
20
21#include "itkFunctionBase.h"
22#include "itkMacro.h"
23
24namespace itk
25{
26
49template< class TInput, unsigned int NDimension >
51 public FunctionBase< TInput, typename NumericTraits< TInput >::RealType >
52{
53public:
54
57 typedef FunctionBase< TInput, typename NumericTraits< TInput >::RealType > Superclass;
59 typedef SmartPointer< const Self > ConstPointer;
60
62 itkTypeMacro( LimiterFunctionBase, FunctionBase );
63
64 itkStaticConstMacro( Dimension, unsigned int, NDimension );
65
67 typedef typename Superclass::InputType InputType;
68 typedef typename Superclass::OutputType OutputType;
69
71 typedef CovariantVector<
73 itkGetStaticConstMacro( Dimension ) > DerivativeType;
74
76 OutputType Evaluate( const InputType & input ) const override = 0;
77
79 virtual OutputType Evaluate( const InputType & input, DerivativeType & derivative ) const = 0;
80
83 itkSetMacro( UpperBound, OutputType );
84 itkGetConstMacro( UpperBound, OutputType );
85
88 itkSetMacro( LowerBound, OutputType );
89 itkGetConstMacro( LowerBound, OutputType );
90
93 itkSetMacro( UpperThreshold, InputType );
94 itkGetConstMacro( UpperThreshold, InputType );
95
98 itkSetMacro( LowerThreshold, InputType );
99 itkGetConstMacro( LowerThreshold, InputType );
100
102 virtual void Initialize( void ) {}
103
104protected:
105
107 {
108 this->m_UpperBound
109 = itk::NumericTraits< OutputType >::One
110 + itk::NumericTraits< OutputType >::One;
111 this->m_LowerBound = itk::NumericTraits< OutputType >::Zero;
112 this->m_UpperThreshold = itk::NumericTraits< InputType >::One;
113 this->m_LowerThreshold = itk::NumericTraits< InputType >::One;
114 }
115
116
118
123
124private:
125
126 LimiterFunctionBase( const Self & ); // purposely not implemented
127 void operator=( const Self & ); // purposely not implemented
128
129};
130
131} // end namespace itk
132
133#endif
Base class for all ITK limiter function objects.
SmartPointer< const Self > ConstPointer
FunctionBase< TInput, typename NumericTraits< TInput >::RealType > Superclass
SmartPointer< Self > Pointer
void operator=(const Self &)
virtual OutputType Evaluate(const InputType &input, DerivativeType &derivative) const =0
LimiterFunctionBase(const Self &)
CovariantVector< DerivativeValueType, itkGetStaticConstMacro(Dimension) > DerivativeType
Superclass::InputType InputType
OutputType Evaluate(const InputType &input) const override=0
Superclass::OutputType OutputType
itkStaticConstMacro(Dimension, unsigned int, NDimension)


Generated on 1667476801 for elastix by doxygen 1.9.4 elastix logo