18 #ifndef sitkGaborImageSource_h
19 #define sitkGaborImageSource_h
74 SITK_RETURN_SELF_TYPE_HEADER
SetSize (
const std::vector<unsigned int> &
Size ) { this->m_Size = Size;
return *
this; }
78 std::vector<unsigned int>
GetSize()
const {
return this->m_Size; }
83 SITK_RETURN_SELF_TYPE_HEADER
SetSigma (
const std::vector<double> & Sigma ) { this->m_Sigma = Sigma;
return *
this; }
86 SITK_RETURN_SELF_TYPE_HEADER
SetSigma(
double value ) { this->m_Sigma = std::vector<double>(3, value);
return *
this; }
92 std::vector<double>
GetSigma()
const {
return this->m_Sigma; }
97 SITK_RETURN_SELF_TYPE_HEADER
SetMean (
const std::vector<double> &
Mean ) { this->m_Mean =
Mean;
return *
this; }
100 SITK_RETURN_SELF_TYPE_HEADER
SetMean(
double value ) { this->m_Mean = std::vector<double>(3, value);
return *
this; }
106 std::vector<double>
GetMean()
const {
return this->m_Mean; }
111 SITK_RETURN_SELF_TYPE_HEADER
SetFrequency (
double Frequency ) { this->m_Frequency = Frequency;
return *
this; }
120 SITK_RETURN_SELF_TYPE_HEADER
SetOrigin (
const std::vector<double> & Origin ) { this->m_Origin = Origin;
return *
this; }
124 std::vector<double>
GetOrigin()
const {
return this->m_Origin; }
128 SITK_RETURN_SELF_TYPE_HEADER
SetSpacing (
const std::vector<double> & Spacing ) { this->m_Spacing = Spacing;
return *
this; }
132 std::vector<double>
GetSpacing()
const {
return this->m_Spacing; }
136 SITK_RETURN_SELF_TYPE_HEADER
SetDirection ( std::vector<double> Direction ) { this->m_Direction = Direction;
return *
this; }
142 std::string
GetName()
const {
return std::string (
"GaborImageSource"); }
145 std::string ToString()
const;
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 );
160 typedef Image (Self::*MemberFunctionType)( );
161 template <
class TImageType>
Image ExecuteInternal ( );
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>() );
PixelIDValueEnum GetOutputPixelType() const
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.
#define SITKBasicFilters_EXPORT
std::string GetName() const
Self & SetSpacing(const std::vector< double > &Spacing)
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
PixelIDValueEnum m_OutputPixelType
Self & SetDirection(std::vector< double > Direction)
PixelIDValueEnum
Enumerated values of pixelIDs.
BasicPixelIDTypeList PixelIDTypeList
std::vector< double > m_Mean
std::vector< double > GetOrigin() const
std::vector< double > GetSigma() const
Self & SetFrequency(double Frequency)
Self & SetOrigin(const std::vector< double > &Origin)
Self & SetOutputPixelType(PixelIDValueEnum OutputPixelType)
Self & SetMean(double value)
std::vector< double > m_Sigma
Self & SetSigma(const std::vector< double > &Sigma)
std::vector< double > m_Origin
std::vector< double > m_Spacing
Image Mean(const Image &image1, const std::vector< unsigned int > &radius=std::vector< unsigned int >(3, 1))
Applies an averaging filter to an image.
The Image class for SimpleITK.
std::vector< double > m_Direction
nsstd::auto_ptr< detail::MemberFunctionFactory< MemberFunctionType > > m_MemberFactory
std::vector< double > GetMean() const
Self & SetMean(const std::vector< double > &Mean)
Self & SetSize(const std::vector< unsigned int > &Size)
std::vector< double > GetSpacing() const
std::vector< double > GetDirection() const
Generate an n-dimensional image of a Gabor filter.
Self & SetSigma(double value)
std::vector< unsigned int > m_Size
std::vector< unsigned int > GetSize() const
The base interface for SimpleITK filters that take one input image.
double GetFrequency() const