18#ifndef itkRieszFrequencyFunction_h
19#define itkRieszFrequencyFunction_h
36template <
typename TFunctionValue = std::complex<
double>,
37 unsigned int VImageDimension = 3,
38 typename TInput = Vector<SpacePrecisionType, VImageDimension>>
69 using SetType = std::set<IndicesArrayType, std::greater<IndicesArrayType>>;
122 itkExceptionMacro(
"Evaluate(TInput&) is not valid for RieszFrequencyFunction."
123 "Use EvaluateWithIndices(point, indices) or EvaluateAllComponents(point)");
166 return sqrt(std::inner_product(point.Begin(), point.End(), point.Begin(), 0.0));
183 itkExceptionMacro(<<
"Error: inputOrder = " << inputOrder <<
". It has to be greater than 0.");
186 if (this->
m_Order != inputOrder)
194 itkGetConstReferenceMacro(Order,
unsigned int);
214#ifndef ITK_MANUAL_INSTANTIATION
215# include "itkRieszFrequencyFunction.hxx"
Simulate a standard C array with copy semantics.
typename Superclass::InputType InputType
typename Superclass::OutputType OutputType
FrequencyFunction()=default
Control indentation during Print() invocation.
virtual void Modified() const
static void ComputeUniqueIndices(IndicesArrayType subIndex, SetType &uniqueIndices, unsigned int init=0)
std::set< IndicesArrayType, std::greater< IndicesArrayType > > SetType
typename Superclass::OutputType OutputComplexType
FrequencyFunction< typename InputImageType::PixelType, VImageDimension, Vector< SpacePrecisionType, VImageDimension > > Superclass
RieszFrequencyFunction Self
static unsigned int ComputeNumberOfComponents(const unsigned int &order)
FunctionValueType Evaluate(const TInput &) const override
typename Superclass::OutputType FunctionValueType
typename Superclass::InputType InputType
virtual void SetOrder(const unsigned int inputOrder)
virtual OutputComplexType EvaluateWithIndices(const TInput &frequency_point, const IndicesArrayType &indices)
SmartPointer< const Self > ConstPointer
std::vector< OutputComplexType > OutputComponentsType
typename Superclass::OutputType OutputType
virtual OutputComponentsType EvaluateAllComponents(const TInput &frequency_point) const
OutputComplexType ComputeNormalizingFactor(const IndicesArrayType &indices) const
static SetType ComputeAllPermutations(const SetType &uniqueIndices)
static long Factorial(long n)
Factorial.
std::vector< unsigned int > IndicesArrayType
~RieszFrequencyFunction() override
static SetType ComputeAllPossibleIndices(const unsigned int &order)
SmartPointer< Self > Pointer
itk::FixedArray< OutputComplexType, VImageDimension > OutputComplexArrayType
void PrintSelf(std::ostream &os, Indent indent) const override
double Magnitude(const TInput &point) const
Implements transparent reference counting.
#define itkConceptMacro(name, conceptType)
Compile-time check that a template argument satisfies an itk::Concept.
IsotropicWavelets_EXPORT long Factorial(long n)
Factorial.
IsotropicWavelets_EXPORT unsigned int ComputeNumberOfComponents(const unsigned int &order, const unsigned int &dimension)
ITK_TEMPLATE_EXPORT std::set< TIndicesArrayType, std::greater< TIndicesArrayType > > ComputeAllPossibleIndices(const unsigned int &order)
ITK_TEMPLATE_EXPORT void ComputeUniqueIndices(TIndicesArrayType subIndex, std::set< TIndicesArrayType, std::greater< TIndicesArrayType > > &uniqueIndices, unsigned int init=0)
ITK_TEMPLATE_EXPORT std::set< TIndicesArrayType, std::greater< TIndicesArrayType > > ComputeAllPermutations(const std::set< TIndicesArrayType, std::greater< TIndicesArrayType > > &uniqueIndices)
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....