ITK  4.2.0
Insight Segmentation and Registration Toolkit
itkGaborImageSource.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 __itkGaborImageSource_h
19 #define __itkGaborImageSource_h
20 
21 #include "itkGenerateImageSource.h"
22 #include "itkFixedArray.h"
23 
24 namespace itk
25 {
46 template< typename TOutputImage >
47 class ITK_EXPORT GaborImageSource
48  : public GenerateImageSource< TOutputImage >
49 {
50 public:
51 
57 
59  typedef TOutputImage OutputImageType;
60  typedef typename OutputImageType::PixelType PixelType;
61  typedef typename OutputImageType::RegionType RegionType;
62  typedef typename OutputImageType::SpacingType SpacingType;
63  typedef typename OutputImageType::PointType PointType;
64  typedef typename OutputImageType::DirectionType DirectionType;
65 
66  typedef typename RegionType::SizeType SizeType;
67 
70 
72  itkNewMacro(Self);
73 
75  itkStaticConstMacro(ImageDimension, unsigned int,
76  OutputImageType::ImageDimension);
77 
79  typedef FixedArray< double,
80  itkGetStaticConstMacro(ImageDimension) > ArrayType;
81 
82  itkSetMacro(Sigma, ArrayType);
83  itkGetConstReferenceMacro(Sigma, ArrayType);
84 
85  itkSetMacro(Mean, ArrayType);
86  itkGetConstReferenceMacro(Mean, ArrayType);
87 
88  itkSetMacro(Frequency, double);
89  itkGetConstReferenceMacro(Frequency, double);
90 
91  itkSetMacro(CalculateImaginaryPart, bool);
92  itkGetConstReferenceMacro(CalculateImaginaryPart, bool);
93  itkBooleanMacro(CalculateImaginaryPart);
94 protected:
96  // ~GaborImageSource(); default implementation ok
97  void PrintSelf(std::ostream & os, Indent indent) const;
98 
99  void GenerateData();
100 
101 private:
102  GaborImageSource(const GaborImageSource &); //purposely not implemented
103  void operator=(const GaborImageSource &); //purposely not implemented
104 
109 
111  double m_Frequency;
112 
115 
118 
121 };
122 } // end namespace itk
123 
124 #ifndef ITK_MANUAL_INSTANTIATION
125 #include "itkGaborImageSource.hxx"
126 #endif
127 
128 #endif
129