ITK  4.2.0
Insight Segmentation and Registration Toolkit
itkHoughTransform2DCirclesImageFilter.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 __itkHoughTransform2DCirclesImageFilter_h
19 #define __itkHoughTransform2DCirclesImageFilter_h
20 
21 
22 #include "itkImageToImageFilter.h"
24 
25 namespace itk
26 {
53 template< typename TInputPixelType, typename TOutputPixelType >
55  public ImageToImageFilter< Image< TInputPixelType, 2 >, Image< TOutputPixelType, 2 > >
56 {
57 public:
58 
61 
66 
70 
72  typedef ImageToImageFilter<
75 
79 
82 
85 
88 
92  typedef std::list< CirclePointer > CirclesListType;
93 
94  typedef typename CirclesListType::size_type CirclesListSizeType;
95 
98 
100  itkNewMacro(Self);
101 
103  void GenerateData();
104 
106  void SetRadius(double radius);
107 
109  itkSetMacro(MinimumRadius, double);
110 
112  itkSetMacro(MaximumRadius, double);
113 
116  itkSetMacro(Threshold, double);
117 
119  itkGetConstMacro(Threshold, double);
120 
122  itkGetObjectMacro(RadiusImage, OutputImageType);
123 
125  itkSetMacro(SigmaGradient, double);
126 
128  itkGetConstMacro(SigmaGradient, double);
129 
131  CirclesListType & GetCircles(unsigned int n = 0);
132 
134  itkSetMacro(NumberOfCircles, unsigned int);
135  itkGetConstMacro(NumberOfCircles, unsigned int);
137 
140  itkSetMacro(DiscRadiusRatio, float);
141  itkGetConstMacro(DiscRadiusRatio, float);
143 
145  itkSetMacro(Variance, float);
146  itkGetConstMacro(Variance, float);
148 
150  itkSetMacro(SweepAngle, float);
151  itkGetConstMacro(SweepAngle, float);
153 
154 #ifdef ITK_USE_CONCEPT_CHECKING
155 
156  itkConceptMacro( IntConvertibleToOutputCheck,
158  itkConceptMacro( InputGreaterThanDoubleCheck,
160  itkConceptMacro( OutputPlusIntCheck,
162  itkConceptMacro( OutputDividedByIntCheck,
164 
166 #endif
167 protected:
168 
171 
172  void PrintSelf(std::ostream & os, Indent indent) const;
173 
177  void GenerateInputRequestedRegion();
178 
183  void EnlargeOutputRequestedRegion( DataObject *itkNotUsed(output) );
184 private:
185 
187  void operator=(const Self &);
188 
192  double m_Threshold;
194 
199  float m_Variance;
200  unsigned long m_OldModifiedTime;
201 
203 };
204 } // end namespace itk
205 
206 #ifndef ITK_MANUAL_INSTANTIATION
207 #include "itkHoughTransform2DCirclesImageFilter.hxx"
208 #endif
209 
210 #endif
211