ITK  4.4.0
Insight Segmentation and Registration Toolkit
itkDoubleThresholdImageFilter.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 __itkDoubleThresholdImageFilter_h
19 #define __itkDoubleThresholdImageFilter_h
20 
21 #include "itkImageToImageFilter.h"
22 
23 namespace itk
24 {
53 template< class TInputImage, class TOutputImage >
54 class ITK_EXPORT DoubleThresholdImageFilter:
55  public ImageToImageFilter< TInputImage, TOutputImage >
56 {
57 public:
63 
65  itkNewMacro(Self);
66 
69 
71  typedef typename Superclass::InputImagePointer InputImagePointer;
72  typedef typename Superclass::InputImageType InputImageType;
73 
75  typedef typename TInputImage::PixelType InputPixelType;
76  typedef typename TOutputImage::PixelType OutputPixelType;
77 
80  itkSetMacro(OutsideValue, OutputPixelType);
81 
83  itkGetConstMacro(OutsideValue, OutputPixelType);
84 
87  itkSetMacro(InsideValue, OutputPixelType);
88 
90  itkGetConstMacro(InsideValue, OutputPixelType);
91 
97  itkSetMacro(Threshold1, InputPixelType);
98  itkSetMacro(Threshold2, InputPixelType);
99  itkSetMacro(Threshold3, InputPixelType);
100  itkSetMacro(Threshold4, InputPixelType);
102 
104  itkGetConstMacro(Threshold1, InputPixelType);
105  itkGetConstMacro(Threshold2, InputPixelType);
106  itkGetConstMacro(Threshold3, InputPixelType);
107  itkGetConstMacro(Threshold4, InputPixelType);
109 
116  itkSetMacro(FullyConnected, bool);
117  itkGetConstReferenceMacro(FullyConnected, bool);
118  itkBooleanMacro(FullyConnected);
120 
121 #ifdef ITK_USE_CONCEPT_CHECKING
122 
123  itkConceptMacro( OutputEqualityComparableCheck,
125  itkConceptMacro( InputComparableCheck,
127  itkConceptMacro( InputOStreamWritableCheck,
129  itkConceptMacro( OutputOStreamWritableCheck,
131 
133 #endif
134 
135 protected:
138  void PrintSelf(std::ostream & os, Indent indent) const;
139 
142  void GenerateInputRequestedRegion();
143 
146  void EnlargeOutputRequestedRegion( DataObject *itkNotUsed(output) );
147 
151  void GenerateData();
152 
153 private:
154  DoubleThresholdImageFilter(const Self &); //purposely not implemented
155  void operator=(const Self &); //purposely not implemented
156 
161 
164 
166 
168 };
169 } // end namespace itk
170 
171 #ifndef ITK_MANUAL_INSTANTIATION
172 #include "itkDoubleThresholdImageFilter.hxx"
173 #endif
174 
175 #endif
176