ITK  4.13.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_TEMPLATE_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;
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 
83  itkSetMacro(Sigma, ArrayType);
84  itkGetConstReferenceMacro(Sigma, ArrayType);
86 
88  itkSetMacro(Mean, ArrayType);
89  itkGetConstReferenceMacro(Mean, ArrayType);
91 
93  itkSetMacro(Frequency, double);
94  itkGetConstReferenceMacro(Frequency, double);
96 
99  itkSetMacro(CalculateImaginaryPart, bool);
100  itkGetConstReferenceMacro(CalculateImaginaryPart, bool);
101  itkBooleanMacro(CalculateImaginaryPart);
103 
104 protected:
106  // ~GaborImageSource(); default implementation ok
107  virtual void PrintSelf(std::ostream & os, Indent indent) const ITK_OVERRIDE;
108 
109  virtual void GenerateData() ITK_OVERRIDE;
110 
111 private:
112  ITK_DISALLOW_COPY_AND_ASSIGN(GaborImageSource);
113 
114  bool m_CalculateImaginaryPart;
115 
116  double m_Frequency;
117 
119  double m_PhaseOffset;
120 
121  ArrayType m_Sigma;
122 
123  ArrayType m_Mean;
124 };
125 } // end namespace itk
126 
127 #ifndef ITK_MANUAL_INSTANTIATION
128 #include "itkGaborImageSource.hxx"
129 #endif
130 
131 #endif
OutputImageType::PointType PointType
Generate an n-dimensional image of a Gabor filter.
Base class for all process objects that output image data.
Simulate a standard C array with copy semnatics.
Definition: itkFixedArray.h:50
SmartPointer< Self > Pointer
RegionType::SizeType SizeType
GenerateImageSource< TOutputImage > Superclass
a Base class for image sources which need to have image size, and other meta-data set...
OutputImageType::DirectionType DirectionType
FixedArray< double, itkGetStaticConstMacro(ImageDimension) > ArrayType
OutputImageType::PixelType PixelType
Control indentation during Print() invocation.
Definition: itkIndent.h:49
SmartPointer< const Self > ConstPointer
OutputImageType::RegionType RegionType
OutputImageType::SpacingType SpacingType