ITK  4.3.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  itkGetConstMacro(MinimumRadius, double);
112 
114  itkSetMacro(MaximumRadius, double);
115  itkGetConstMacro(MaximumRadius, double);
117 
120  itkSetMacro(Threshold, double);
121 
123  itkGetConstMacro(Threshold, double);
124 
126  itkGetObjectMacro(RadiusImage, OutputImageType);
127 
129  itkSetMacro(SigmaGradient, double);
130 
132  itkGetConstMacro(SigmaGradient, double);
133 
135  CirclesListType & GetCircles(unsigned int n = 0);
136 
138  itkSetMacro(NumberOfCircles, unsigned int);
139  itkGetConstMacro(NumberOfCircles, unsigned int);
141 
144  itkSetMacro(DiscRadiusRatio, float);
145  itkGetConstMacro(DiscRadiusRatio, float);
147 
149  itkSetMacro(Variance, float);
150  itkGetConstMacro(Variance, float);
152 
154  itkSetMacro(SweepAngle, float);
155  itkGetConstMacro(SweepAngle, float);
157 
158 #ifdef ITK_USE_CONCEPT_CHECKING
159 
160  itkConceptMacro( IntConvertibleToOutputCheck,
162  itkConceptMacro( InputGreaterThanDoubleCheck,
164  itkConceptMacro( OutputPlusIntCheck,
166  itkConceptMacro( OutputDividedByIntCheck,
168 
170 #endif
171 
172 protected:
173 
176 
177  void PrintSelf(std::ostream & os, Indent indent) const;
178 
182  void GenerateInputRequestedRegion();
183 
188  void EnlargeOutputRequestedRegion( DataObject *itkNotUsed(output) );
189 
190 private:
191 
193  void operator=(const Self &);
194 
198  double m_Threshold;
200 
205  float m_Variance;
207 
209 };
210 } // end namespace itk
211 
212 #ifndef ITK_MANUAL_INSTANTIATION
213 #include "itkHoughTransform2DCirclesImageFilter.hxx"
214 #endif
215 
216 #endif
217