ITK  4.6.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  itkGetModifiableObjectMacro(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  // Begin concept checking
160  itkConceptMacro( IntConvertibleToOutputCheck,
162  itkConceptMacro( InputGreaterThanDoubleCheck,
164  itkConceptMacro( OutputPlusIntCheck,
166  itkConceptMacro( OutputDividedByIntCheck,
168  // End concept checking
169 #endif
170 
171 protected:
172 
175 
176  void PrintSelf(std::ostream & os, Indent indent) const;
177 
182 
187  void EnlargeOutputRequestedRegion( DataObject *itkNotUsed(output) );
188 
189 private:
190 
192  void operator=(const Self &);
193 
197  double m_Threshold;
199 
204  float m_Variance;
206 
208 };
209 } // end namespace itk
210 
211 #ifndef ITK_MANUAL_INSTANTIATION
212 #include "itkHoughTransform2DCirclesImageFilter.hxx"
213 #endif
214 
215 #endif
void EnlargeOutputRequestedRegion(DataObject *)
Superclass::RegionType RegionType
Definition: itkImage.h:140
Light weight base class for most itk classes.
void PrintSelf(std::ostream &os, Indent indent) const
unsigned long ModifiedTimeType
Definition: itkIntTypes.h:164
TPixel PixelType
Definition: itkImage.h:89
ImageToImageFilter< Image< TInputPixelType, 2 >, Image< TOutputPixelType, 2 > > Superclass
Superclass::IndexType IndexType
Definition: itkImage.h:122
CirclesListType & GetCircles(unsigned int n=0)
Performs the Hough Transform to find circles in a 2D image.
Base class for filters that take an image as input and produce an image as output.
Control indentation during Print() invocation.
Definition: itkIndent.h:49
#define itkConceptMacro(name, concept)
Base class for all data objects in ITK.
Templated n-dimensional image class.
Definition: itkImage.h:75