Home
|
Main Page
|
Modules
|
Namespace List
|
Class Hierarchy
|
Alphabetical List
|
Data Structures
|
File List
|
Namespace Members
|
Data Fields
|
Globals
|
Related Pages
src
Common
CostFunctions
itkHardLimiterFunction.h
Go to the documentation of this file.
1
/*======================================================================
2
3
This file is part of the elastix software.
4
5
Copyright (c) University Medical Center Utrecht. All rights reserved.
6
See src/CopyrightElastix.txt or http://elastix.isi.uu.nl/legal.php for
7
details.
8
9
This software is distributed WITHOUT ANY WARRANTY; without even
10
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
11
PURPOSE. See the above copyright notices for more information.
12
13
======================================================================*/
14
15
#ifndef __itkHardLimiterFunction_h
16
#define __itkHardLimiterFunction_h
17
18
#include "
itkLimiterFunctionBase.h
"
19
20
21
namespace
itk
22
{
23
35
template
<
class
TInput,
unsigned
int
NDimension >
36
class
HardLimiterFunction
:
37
public
LimiterFunctionBase
<TInput, NDimension>
38
{
39
public
:
41
typedef
HardLimiterFunction
Self
;
42
typedef
LimiterFunctionBase<TInput, NDimension>
Superclass
;
43
typedef
SmartPointer<Self>
Pointer
;
44
typedef
SmartPointer<const Self>
ConstPointer
;
45
47
itkTypeMacro(
HardLimiterFunction
,
LimiterFunctionBase
);
48
50
itkNewMacro(
Self
);
51
53
itkStaticConstMacro
( Dimension,
unsigned
int
, Superclass::Dimension );
54
56
typedef
typename
Superclass::InputType
InputType
;
57
typedef
typename
Superclass::OutputType
OutputType
;
58
typedef
typename
Superclass::DerivativeValueType
DerivativeValueType
;
59
typedef
typename
Superclass::DerivativeType
DerivativeType
;
60
62
virtual
OutputType
Evaluate
(
const
InputType
& input )
const
;
63
65
virtual
OutputType
Evaluate
(
const
InputType
& input,
DerivativeType
& derivative)
const
;
66
67
protected
:
68
HardLimiterFunction
(){};
69
~HardLimiterFunction
(){};
70
71
private
:
72
HardLimiterFunction
(
const
Self
& );
//purposely not implemented
73
void
operator=
(
const
Self
& );
//purposely not implemented
74
75
};
76
77
}
// end namespace itk
78
79
#ifndef ITK_MANUAL_INSTANTIATION
80
#include "itkHardLimiterFunction.hxx"
81
#endif
82
83
#endif
Generated on 27-06-2013 for elastix by
1.8.3.1