SimpleITK  1.1.0
sitkGaborImageSource.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 sitkGaborImageSource_h
19 #define sitkGaborImageSource_h
20 
21 /*
22  * WARNING: DO NOT EDIT THIS FILE!
23  * THIS FILE IS AUTOMATICALLY GENERATED BY THE SIMPLEITK BUILD PROCESS.
24  * Please look at sitkImageSourceTemplate.h.in to make changes.
25  */
26 
27 #include <memory>
28 
29 #include "sitkBasicFilters.h"
30 #include "sitkImageFilter.h"
31 
32 namespace itk {
33  namespace simple {
34 
47  public:
49 
51  virtual ~GaborImageSource();
52 
56 
59 
60 
61 
62 
63 
66  SITK_RETURN_SELF_TYPE_HEADER SetOutputPixelType ( PixelIDValueEnum OutputPixelType ) { this->m_OutputPixelType = OutputPixelType; return *this; }
67 
70  PixelIDValueEnum GetOutputPixelType() const { return this->m_OutputPixelType; }
71 
74  SITK_RETURN_SELF_TYPE_HEADER SetSize ( const std::vector<unsigned int> & Size ) { this->m_Size = Size; return *this; }
75 
78  std::vector<unsigned int> GetSize() const { return this->m_Size; }
79 
83  SITK_RETURN_SELF_TYPE_HEADER SetSigma ( const std::vector<double> & Sigma ) { this->m_Sigma = Sigma; return *this; }
84 
86  SITK_RETURN_SELF_TYPE_HEADER SetSigma( double value ) { this->m_Sigma = std::vector<double>(3, value); return *this; }
87 
88 
92  std::vector<double> GetSigma() const { return this->m_Sigma; }
93 
97  SITK_RETURN_SELF_TYPE_HEADER SetMean ( const std::vector<double> & Mean ) { this->m_Mean = Mean; return *this; }
98 
100  SITK_RETURN_SELF_TYPE_HEADER SetMean( double value ) { this->m_Mean = std::vector<double>(3, value); return *this; }
101 
102 
106  std::vector<double> GetMean() const { return this->m_Mean; }
107 
111  SITK_RETURN_SELF_TYPE_HEADER SetFrequency ( double Frequency ) { this->m_Frequency = Frequency; return *this; }
112 
116  double GetFrequency() const { return this->m_Frequency; }
117 
120  SITK_RETURN_SELF_TYPE_HEADER SetOrigin ( const std::vector<double> & Origin ) { this->m_Origin = Origin; return *this; }
121 
124  std::vector<double> GetOrigin() const { return this->m_Origin; }
125 
128  SITK_RETURN_SELF_TYPE_HEADER SetSpacing ( const std::vector<double> & Spacing ) { this->m_Spacing = Spacing; return *this; }
129 
132  std::vector<double> GetSpacing() const { return this->m_Spacing; }
133 
136  SITK_RETURN_SELF_TYPE_HEADER SetDirection ( std::vector<double> Direction ) { this->m_Direction = Direction; return *this; }
137 
140  std::vector<double> GetDirection() const { return this->m_Direction; }
142  std::string GetName() const { return std::string ("GaborImageSource"); }
143 
145  std::string ToString() const;
146 
147 
149  Image Execute ( );
150 
151 
153  Image Execute ( PixelIDValueEnum outputPixelType, const std::vector<unsigned int> & size, const std::vector<double> & sigma, const std::vector<double> & mean, double frequency, const std::vector<double> & origin, const std::vector<double> & spacing, std::vector<double> direction );
154 
155 
156  private:
157 
160  typedef Image (Self::*MemberFunctionType)( );
161  template <class TImageType> Image ExecuteInternal ( );
162 
163 
164  friend struct detail::MemberFunctionAddressor<MemberFunctionType>;
165 
166  nsstd::auto_ptr<detail::MemberFunctionFactory<MemberFunctionType> > m_MemberFactory;
167 
168 
170  std::vector<unsigned int> m_Size;
171  std::vector<double> m_Sigma;
172  std::vector<double> m_Mean;
173  double m_Frequency;
174  std::vector<double> m_Origin;
175  std::vector<double> m_Spacing;
176  /* Passing a zero sized array, defaults to identiy matrix. The size of the array must exactly match the direction matrix for the dimension of the image. */
177  std::vector<double> m_Direction;
178 
179 
180 
181  };
182 
183 
184 
193 SITKBasicFilters_EXPORT Image GaborSource ( PixelIDValueEnum outputPixelType = itk::simple::sitkFloat32, const std::vector<unsigned int> & size = std::vector<unsigned int>(3, 64), const std::vector<double> & sigma = std::vector<double>(3, 16.0), const std::vector<double> & mean = std::vector<double>(3, 32.0), double frequency = 0.4, const std::vector<double> & origin = std::vector<double>(3, 0.0), const std::vector<double> & spacing = std::vector<double>(3, 1.0), std::vector<double> direction = std::vector<double>() );
194  }
195 }
196 #endif
itk::simple::Image
The main Image class for SimpleITK.
Definition: sitkImage.h:54
sitkBasicFilters.h
itk::simple::GaborImageSource::PixelIDTypeList
BasicPixelIDTypeList PixelIDTypeList
Definition: sitkGaborImageSource.h:58
itk::simple::GaborSource
Image GaborSource(PixelIDValueEnum outputPixelType=itk::simple::sitkFloat32, const std::vector< unsigned int > &size=std::vector< unsigned int >(3, 64), const std::vector< double > &sigma=std::vector< double >(3, 16.0), const std::vector< double > &mean=std::vector< double >(3, 32.0), double frequency=0.4, const std::vector< double > &origin=std::vector< double >(3, 0.0), const std::vector< double > &spacing=std::vector< double >(3, 1.0), std::vector< double > direction=std::vector< double >())
Generate an n-dimensional image of a Gabor filter.
itk::simple::GaborImageSource::m_Origin
std::vector< double > m_Origin
Definition: sitkGaborImageSource.h:174
itk::Size
itk::simple::detail::MemberFunctionAddressor
Definition: sitkDetail.h:32
itk::simple::GaborImageSource::GetFrequency
double GetFrequency() const
Definition: sitkGaborImageSource.h:116
itk::simple::GaborImageSource::GetOutputPixelType
PixelIDValueEnum GetOutputPixelType() const
Definition: sitkGaborImageSource.h:70
itk::simple::GaborImageSource::GetSize
std::vector< unsigned int > GetSize() const
Definition: sitkGaborImageSource.h:78
itk::simple::GaborImageSource::m_MemberFactory
nsstd::auto_ptr< detail::MemberFunctionFactory< MemberFunctionType > > m_MemberFactory
Definition: sitkGaborImageSource.h:166
itk::simple::GaborImageSource::SetMean
Self & SetMean(double value)
Definition: sitkGaborImageSource.h:100
itk::simple::GaborImageSource::m_Mean
std::vector< double > m_Mean
Definition: sitkGaborImageSource.h:172
itk::simple::GaborImageSource::Self
GaborImageSource Self
Definition: sitkGaborImageSource.h:48
itk::simple::PixelIDValueEnum
PixelIDValueEnum
Enumerated values of pixelIDs.
Definition: sitkPixelIDValues.h:82
itk::simple::BasicPixelIDTypeList
typelist::MakeTypeList< BasicPixelID< int8_t >, BasicPixelID< uint8_t >, BasicPixelID< int16_t >, BasicPixelID< uint16_t >, BasicPixelID< int32_t >, BasicPixelID< uint32_t >, BasicPixelID< float >, BasicPixelID< double > >::Type BasicPixelIDTypeList
Definition: sitkPixelIDTypeLists.h:53
sitkImageFilter.h
itk::simple::GaborImageSource::SetSigma
Self & SetSigma(double value)
Definition: sitkGaborImageSource.h:86
itk::simple::GaborImageSource::GetSpacing
std::vector< double > GetSpacing() const
Definition: sitkGaborImageSource.h:132
itk::simple::GaborImageSource::GetName
std::string GetName() const
Definition: sitkGaborImageSource.h:142
itk::simple::GaborImageSource::m_Sigma
std::vector< double > m_Sigma
Definition: sitkGaborImageSource.h:171
itk::simple::GaborImageSource::SetSize
Self & SetSize(const std::vector< unsigned int > &Size)
Definition: sitkGaborImageSource.h:74
itk::simple::sitkFloat32
@ sitkFloat32
32 bit float
Definition: sitkPixelIDValues.h:92
itk::simple::GaborImageSource::GetMean
std::vector< double > GetMean() const
Definition: sitkGaborImageSource.h:106
itk::simple::GaborImageSource
Generate an n-dimensional image of a Gabor filter.
Definition: sitkGaborImageSource.h:46
itk::simple::Mean
Image Mean(const Image &image1, const std::vector< unsigned int > &radius=std::vector< unsigned int >(3, 1))
Applies an averaging filter to an image.
itk::simple::GaborImageSource::m_Direction
std::vector< double > m_Direction
Definition: sitkGaborImageSource.h:177
SITKBasicFilters_EXPORT
#define SITKBasicFilters_EXPORT
Definition: sitkBasicFilters.h:50
itk::simple::GaborImageSource::SetSpacing
Self & SetSpacing(const std::vector< double > &Spacing)
Definition: sitkGaborImageSource.h:128
itk::simple::GaborImageSource::SetMean
Self & SetMean(const std::vector< double > &Mean)
Definition: sitkGaborImageSource.h:97
itk::simple::GaborImageSource::GetDirection
std::vector< double > GetDirection() const
Definition: sitkGaborImageSource.h:140
itk::simple::GaborImageSource::SetOrigin
Self & SetOrigin(const std::vector< double > &Origin)
Definition: sitkGaborImageSource.h:120
itk::simple::GaborImageSource::SetDirection
Self & SetDirection(std::vector< double > Direction)
Definition: sitkGaborImageSource.h:136
itk
itk::simple::GaborImageSource::SetOutputPixelType
Self & SetOutputPixelType(PixelIDValueEnum OutputPixelType)
Definition: sitkGaborImageSource.h:66
itk::simple::GaborImageSource::GetSigma
std::vector< double > GetSigma() const
Definition: sitkGaborImageSource.h:92
itk::simple::ImageFilter
The base interface for SimpleITK filters that take one input image.
Definition: sitkImageFilter.h:37
itk::simple::ProcessObject
Base class for SimpleITK classes based on ProcessObject.
Definition: sitkProcessObject.h:50
itk::simple::GaborImageSource::SetSigma
Self & SetSigma(const std::vector< double > &Sigma)
Definition: sitkGaborImageSource.h:83
itk::simple::GaborImageSource::GetOrigin
std::vector< double > GetOrigin() const
Definition: sitkGaborImageSource.h:124
itk::simple::GaborImageSource::m_Spacing
std::vector< double > m_Spacing
Definition: sitkGaborImageSource.h:175
itk::simple::GaborImageSource::m_OutputPixelType
PixelIDValueEnum m_OutputPixelType
Definition: sitkGaborImageSource.h:169
itk::simple::GaborImageSource::SetFrequency
Self & SetFrequency(double Frequency)
Definition: sitkGaborImageSource.h:111
itk::simple::GaborImageSource::m_Size
std::vector< unsigned int > m_Size
Definition: sitkGaborImageSource.h:170
itk::simple::GaborImageSource::m_Frequency
double m_Frequency
Definition: sitkGaborImageSource.h:173