ITK
4.2.0
Insight Segmentation and Registration Toolkit
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
ITK
Modules
Nonunit
Review
include
itkMiniPipelineSeparableImageFilter.h
Go to the documentation of this file.
1
/*=========================================================================
2
*
3
* Copyright Insight Software Consortium
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 __itkMiniPipelineSeparableImageFilter_h
19
#define __itkMiniPipelineSeparableImageFilter_h
20
21
#include "
itkBoxImageFilter.h
"
22
23
namespace
itk
24
{
49
template
<
class
TInputImage,
class
TOutputImage,
class
TFilter >
50
class
ITK_EXPORT
MiniPipelineSeparableImageFilter
:
51
public
BoxImageFilter
< TInputImage, TOutputImage >
52
{
53
public
:
55
typedef
MiniPipelineSeparableImageFilter
Self
;
56
typedef
BoxImageFilter< TInputImage, TOutputImage >
Superclass
;
57
typedef
SmartPointer< Self >
Pointer
;
58
typedef
SmartPointer< const Self >
ConstPointer
;
59
61
itkNewMacro(
Self
);
62
64
itkTypeMacro(
MiniPipelineSeparableImageFilter
,
65
BoxImageFilter
);
66
68
typedef
TInputImage
InputImageType
;
69
typedef
typename
TInputImage::RegionType
RegionType
;
70
typedef
typename
TInputImage::SizeType
SizeType
;
71
typedef
typename
TInputImage::IndexType
IndexType
;
72
typedef
typename
TInputImage::PixelType
PixelType
;
73
typedef
typename
TInputImage::OffsetType
OffsetType
;
74
75
typedef
TOutputImage
OutputImageType
;
76
typedef
typename
TOutputImage::PixelType
OutputPixelType
;
77
78
typedef
TFilter
FilterType
;
79
typedef
CastImageFilter< InputImageType, OutputImageType >
CastType
;
80
82
itkStaticConstMacro(ImageDimension,
unsigned
int
, TInputImage::ImageDimension);
83
85
typedef
typename
TInputImage::SizeType
RadiusType
;
86
87
virtual
void
SetRadius(
const
RadiusType
&);
88
89
virtual
void
SetRadius(
const
SizeValueType
& radius)
90
{
91
// needed because of the overloading of the method
92
Superclass::SetRadius(radius);
93
}
94
95
virtual
void
Modified()
const
;
96
97
virtual
void
SetNumberOfThreads(
ThreadIdType
nb);
98
99
protected
:
100
MiniPipelineSeparableImageFilter
();
101
~MiniPipelineSeparableImageFilter
() {}
102
103
void
GenerateData();
104
105
typename
FilterType::Pointer m_Filters[ImageDimension];
106
typename
CastType::Pointer
m_Cast
;
107
private
:
108
MiniPipelineSeparableImageFilter
(
const
Self
&);
//purposely not implemented
109
void
operator=(
const
Self
&);
//purposely not implemented
110
};
111
}
112
113
#ifndef ITK_MANUAL_INSTANTIATION
114
#include "itkMiniPipelineSeparableImageFilter.hxx"
115
#endif
116
117
#endif
118
Generated on Tue Jul 10 2012 23:36:42 for ITK by
1.8.1