ITK  4.6.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 >
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 
95 protected:
97  // ~GaborImageSource(); default implementation ok
98  void PrintSelf(std::ostream & os, Indent indent) const;
99 
100  void GenerateData();
101 
102 private:
103  GaborImageSource(const GaborImageSource &); //purposely not implemented
104  void operator=(const GaborImageSource &); //purposely not implemented
105 
110 
112  double m_Frequency;
113 
116 
119 
122 };
123 } // end namespace itk
124 
125 #ifndef ITK_MANUAL_INSTANTIATION
126 #include "itkGaborImageSource.hxx"
127 #endif
128 
129 #endif
void operator=(const GaborImageSource &)
OutputImageType::PointType PointType
void PrintSelf(std::ostream &os, Indent indent) const
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
static const unsigned int ImageDimension
OutputImageType::PixelType PixelType
Control indentation during Print() invocation.
Definition: itkIndent.h:49
SmartPointer< const Self > ConstPointer
OutputImageType::RegionType RegionType
OutputImageType::SpacingType SpacingType