ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
itk::RieszFrequencyFunction< TFunctionValue, VImageDimension, TInput > Class Template Reference

#include <itkRieszFrequencyFunction.h>

Detailed Description

template<typename TFunctionValue = std::complex<double>, unsigned int VImageDimension = 3, typename TInput = Vector<SpacePrecisionType, VImageDimension>>
class itk::RieszFrequencyFunction< TFunctionValue, VImageDimension, TInput >

Riesz function is a Hilbert transform for N-Dimension signal.

Definition at line 39 of file itkRieszFrequencyFunction.h.

+ Inheritance diagram for itk::RieszFrequencyFunction< TFunctionValue, VImageDimension, TInput >:
+ Collaboration diagram for itk::RieszFrequencyFunction< TFunctionValue, VImageDimension, TInput >:

Public Types

using ConstPointer = SmartPointer<const Self>
 
using FunctionValueType = typename Superclass::OutputType
 
using IndicesArrayType = std::vector<unsigned int>
 
using InputType = typename Superclass::InputType
 
using OutputComplexArrayType = itk::FixedArray<OutputComplexType, VImageDimension>
 
using OutputComplexType = typename Superclass::OutputType
 
using OutputComponentsType = std::vector<OutputComplexType>
 
using OutputType = typename Superclass::OutputType
 
using Pointer = SmartPointer<Self>
 
using Self = RieszFrequencyFunction
 
using SetType = std::set<IndicesArrayType, std::greater<IndicesArrayType>>
 
using Superclass = FrequencyFunction<TFunctionValue, VImageDimension, TInput>
 
- Public Types inherited from itk::FrequencyFunction< TFunctionValue, VImageDimension, TInput >
using ConstPointer = SmartPointer<const Self>
 
using FunctionValueType = typename Superclass::OutputType
 
using InputType = typename Superclass::InputType
 
using OutputType = typename Superclass::OutputType
 
using Pointer = SmartPointer<Self>
 
using Self = FrequencyFunction
 
using Superclass = SpatialFunction<TFunctionValue, VImageDimension, TInput>
 
- Public Types inherited from itk::SpatialFunction< TOutput, VImageDimension, TInput >
using ConstPointer = SmartPointer<const Self>
 
using InputType
 
using OutputType
 
using Pointer = SmartPointer<Self>
 
using Self = SpatialFunction
 
using Superclass = FunctionBase<TInput, TOutput>
 
- Public Types inherited from itk::FunctionBase< TInput, TOutput >
using ConstPointer = SmartPointer<const Self>
 
using InputType = TInput
 
using OutputType = TOutput
 
using Pointer = SmartPointer<Self>
 
using Self = FunctionBase
 
using Superclass = Object
 
- Public Types inherited from itk::Object
using ConstPointer = SmartPointer<const Self>
 
using Pointer = SmartPointer<Self>
 
using Self = Object
 
using Superclass = LightObject
 
- Public Types inherited from itk::LightObject
using ConstPointer = SmartPointer<const Self>
 
using Pointer = SmartPointer<Self>
 
using Self = LightObject
 

Public Member Functions

OutputComplexType ComputeNormalizingFactor (const IndicesArrayType &indices) const
 
virtual::itk::LightObject::Pointer CreateAnother () const
 
FunctionValueType Evaluate (const TInput &) const override
 
virtual OutputComponentsType EvaluateAllComponents (const TInput &frequency_point) const
 
virtual OutputComplexType EvaluateWithIndices (const TInput &frequency_point, const IndicesArrayType &indices)
 
virtual const SetType & GetIndices () const
 
virtual const char * GetNameOfClass () const
 
virtual const unsigned int & GetOrder () const
 
double Magnitude (const TInput &point) const
 
virtual void SetOrder (const unsigned int inputOrder)
 
- Public Member Functions inherited from itk::FrequencyFunction< TFunctionValue, VImageDimension, TInput >
FunctionValueType RadPerSecToHertz (const TFunctionValue &w_rad_per_sec) const
 
- Public Member Functions inherited from itk::Object
unsigned long AddObserver (const EventObject &event, Command *cmd) const
 
unsigned long AddObserver (const EventObject &event, std::function< void(const EventObject &)> function) const
 
virtual void DebugOff () const
 
virtual void DebugOn () const
 
Command * GetCommand (unsigned long tag)
 
bool GetDebug () const
 
MetaDataDictionary & GetMetaDataDictionary ()
 
const MetaDataDictionary & GetMetaDataDictionary () const
 
virtual ModifiedTimeType GetMTime () const
 
virtual const TimeStamp & GetTimeStamp () const
 
bool HasObserver (const EventObject &event) const
 
void InvokeEvent (const EventObject &)
 
void InvokeEvent (const EventObject &) const
 
virtual void Modified () const
 
void Register () const override
 
void RemoveAllObservers ()
 
void RemoveObserver (unsigned long tag) const
 
void SetDebug (bool debugFlag) const
 
void SetReferenceCount (int) override
 
void UnRegister () const noexcept override
 
void SetMetaDataDictionary (const MetaDataDictionary &rhs)
 
void SetMetaDataDictionary (MetaDataDictionary &&rrhs)
 
virtual void SetObjectName (std::string _arg)
 
virtual const std::string & GetObjectName () const
 
- Public Member Functions inherited from itk::LightObject
Pointer Clone () const
 
virtual void Delete ()
 
virtual int GetReferenceCount () const
 
void Print (std::ostream &os, Indent indent=0) const
 

Static Public Member Functions

static SetType ComputeAllPermutations (const SetType &uniqueIndices)
 
static SetType ComputeAllPossibleIndices (const unsigned int &order)
 
static unsigned int ComputeNumberOfComponents (const unsigned int &order)
 
static void ComputeUniqueIndices (IndicesArrayType subIndex, SetType &uniqueIndices, unsigned int init=0)
 
static long Factorial (long n)
 
static Pointer New ()
 
- Static Public Member Functions inherited from itk::Object
static bool GetGlobalWarningDisplay ()
 
static void GlobalWarningDisplayOff ()
 
static void GlobalWarningDisplayOn ()
 
static Pointer New ()
 
static void SetGlobalWarningDisplay (bool val)
 
- Static Public Member Functions inherited from itk::LightObject
static void BreakOnError ()
 
static Pointer New ()
 

Protected Member Functions

void PrintSelf (std::ostream &os, Indent indent) const override
 
 RieszFrequencyFunction ()
 
 ~RieszFrequencyFunction () override
 
- Protected Member Functions inherited from itk::FrequencyFunction< TFunctionValue, VImageDimension, TInput >
 FrequencyFunction ()=default
 
 ~FrequencyFunction () override=default
 
- Protected Member Functions inherited from itk::SpatialFunction< TOutput, VImageDimension, TInput >
void PrintSelf (std::ostream &os, Indent indent) const override
 
 SpatialFunction ()=default
 
 ~SpatialFunction () override=default
 
- Protected Member Functions inherited from itk::FunctionBase< TInput, TOutput >
 FunctionBase ()=default
 
 ~FunctionBase () override=default
 
- Protected Member Functions inherited from itk::Object
 Object ()
 
bool PrintObservers (std::ostream &os, Indent indent) const
 
virtual void SetTimeStamp (const TimeStamp &timeStamp)
 
 ~Object () override
 
- Protected Member Functions inherited from itk::LightObject
virtual LightObject::Pointer InternalClone () const
 
 LightObject ()
 
virtual void PrintHeader (std::ostream &os, Indent indent) const
 
virtual void PrintTrailer (std::ostream &os, Indent indent) const
 
virtual ~LightObject ()
 

Private Attributes

SetType m_Indices
 
unsigned int m_Order { 0 }
 

Additional Inherited Members

- Static Public Attributes inherited from itk::SpatialFunction< TOutput, VImageDimension, TInput >
static constexpr unsigned int ImageDimension = VImageDimension
 
- Protected Attributes inherited from itk::LightObject
std::atomic< int > m_ReferenceCount {}
 

Member Typedef Documentation

◆ ConstPointer

template<typename TFunctionValue = std::complex<double>, unsigned int VImageDimension = 3, typename TInput = Vector<SpacePrecisionType, VImageDimension>>
using itk::RieszFrequencyFunction< TFunctionValue, VImageDimension, TInput >::ConstPointer = SmartPointer<const Self>

Definition at line 48 of file itkRieszFrequencyFunction.h.

◆ FunctionValueType

template<typename TFunctionValue = std::complex<double>, unsigned int VImageDimension = 3, typename TInput = Vector<SpacePrecisionType, VImageDimension>>
using itk::RieszFrequencyFunction< TFunctionValue, VImageDimension, TInput >::FunctionValueType = typename Superclass::OutputType

Definition at line 59 of file itkRieszFrequencyFunction.h.

◆ IndicesArrayType

template<typename TFunctionValue = std::complex<double>, unsigned int VImageDimension = 3, typename TInput = Vector<SpacePrecisionType, VImageDimension>>
using itk::RieszFrequencyFunction< TFunctionValue, VImageDimension, TInput >::IndicesArrayType = std::vector<unsigned int>

Indices Type, user needs to resize it to VImageDimension. ITK_BUG, dev: it would be better to use std::array or fix itk::FixedArray::ReverseIterator has no operator-, used by std::sort ...

Definition at line 67 of file itkRieszFrequencyFunction.h.

◆ InputType

template<typename TFunctionValue = std::complex<double>, unsigned int VImageDimension = 3, typename TInput = Vector<SpacePrecisionType, VImageDimension>>
using itk::RieszFrequencyFunction< TFunctionValue, VImageDimension, TInput >::InputType = typename Superclass::InputType

Input type for the function.

Definition at line 57 of file itkRieszFrequencyFunction.h.

◆ OutputComplexArrayType

template<typename TFunctionValue = std::complex<double>, unsigned int VImageDimension = 3, typename TInput = Vector<SpacePrecisionType, VImageDimension>>
using itk::RieszFrequencyFunction< TFunctionValue, VImageDimension, TInput >::OutputComplexArrayType = itk::FixedArray<OutputComplexType, VImageDimension>

Definition at line 70 of file itkRieszFrequencyFunction.h.

◆ OutputComplexType

template<typename TFunctionValue = std::complex<double>, unsigned int VImageDimension = 3, typename TInput = Vector<SpacePrecisionType, VImageDimension>>
using itk::RieszFrequencyFunction< TFunctionValue, VImageDimension, TInput >::OutputComplexType = typename Superclass::OutputType

Definition at line 61 of file itkRieszFrequencyFunction.h.

◆ OutputComponentsType

template<typename TFunctionValue = std::complex<double>, unsigned int VImageDimension = 3, typename TInput = Vector<SpacePrecisionType, VImageDimension>>
using itk::RieszFrequencyFunction< TFunctionValue, VImageDimension, TInput >::OutputComponentsType = std::vector<OutputComplexType>

Definition at line 68 of file itkRieszFrequencyFunction.h.

◆ OutputType

template<typename TFunctionValue = std::complex<double>, unsigned int VImageDimension = 3, typename TInput = Vector<SpacePrecisionType, VImageDimension>>
using itk::RieszFrequencyFunction< TFunctionValue, VImageDimension, TInput >::OutputType = typename Superclass::OutputType

Definition at line 60 of file itkRieszFrequencyFunction.h.

◆ Pointer

template<typename TFunctionValue = std::complex<double>, unsigned int VImageDimension = 3, typename TInput = Vector<SpacePrecisionType, VImageDimension>>
using itk::RieszFrequencyFunction< TFunctionValue, VImageDimension, TInput >::Pointer = SmartPointer<Self>

Definition at line 47 of file itkRieszFrequencyFunction.h.

◆ Self

template<typename TFunctionValue = std::complex<double>, unsigned int VImageDimension = 3, typename TInput = Vector<SpacePrecisionType, VImageDimension>>
using itk::RieszFrequencyFunction< TFunctionValue, VImageDimension, TInput >::Self = RieszFrequencyFunction

Standard class type alias.

Definition at line 45 of file itkRieszFrequencyFunction.h.

◆ SetType

template<typename TFunctionValue = std::complex<double>, unsigned int VImageDimension = 3, typename TInput = Vector<SpacePrecisionType, VImageDimension>>
using itk::RieszFrequencyFunction< TFunctionValue, VImageDimension, TInput >::SetType = std::set<IndicesArrayType, std::greater<IndicesArrayType>>

Definition at line 69 of file itkRieszFrequencyFunction.h.

◆ Superclass

template<typename TFunctionValue = std::complex<double>, unsigned int VImageDimension = 3, typename TInput = Vector<SpacePrecisionType, VImageDimension>>
using itk::RieszFrequencyFunction< TFunctionValue, VImageDimension, TInput >::Superclass = FrequencyFunction<TFunctionValue, VImageDimension, TInput>

Definition at line 46 of file itkRieszFrequencyFunction.h.

Constructor & Destructor Documentation

◆ RieszFrequencyFunction()

template<typename TFunctionValue = std::complex<double>, unsigned int VImageDimension = 3, typename TInput = Vector<SpacePrecisionType, VImageDimension>>
itk::RieszFrequencyFunction< TFunctionValue, VImageDimension, TInput >::RieszFrequencyFunction ( )
protected

◆ ~RieszFrequencyFunction()

template<typename TFunctionValue = std::complex<double>, unsigned int VImageDimension = 3, typename TInput = Vector<SpacePrecisionType, VImageDimension>>
itk::RieszFrequencyFunction< TFunctionValue, VImageDimension, TInput >::~RieszFrequencyFunction ( )
overrideprotected

Member Function Documentation

◆ ComputeAllPermutations()

template<typename TFunctionValue = std::complex<double>, unsigned int VImageDimension = 3, typename TInput = Vector<SpacePrecisionType, VImageDimension>>
static SetType itk::RieszFrequencyFunction< TFunctionValue, VImageDimension, TInput >::ComputeAllPermutations ( const SetType & uniqueIndices)
inlinestatic

Compute all the permutations from a set of uniqueIndices.

Definition at line 104 of file itkRieszFrequencyFunction.h.

◆ ComputeAllPossibleIndices()

template<typename TFunctionValue = std::complex<double>, unsigned int VImageDimension = 3, typename TInput = Vector<SpacePrecisionType, VImageDimension>>
static SetType itk::RieszFrequencyFunction< TFunctionValue, VImageDimension, TInput >::ComputeAllPossibleIndices ( const unsigned int & order)
inlinestatic

Compute all the possible indices for a given order.

Definition at line 113 of file itkRieszFrequencyFunction.h.

Referenced by itk::RieszFrequencyFunction< typename InputImageType::PixelType, ImageDimension >::SetOrder().

◆ ComputeNormalizingFactor()

template<typename TFunctionValue = std::complex<double>, unsigned int VImageDimension = 3, typename TInput = Vector<SpacePrecisionType, VImageDimension>>
OutputComplexType itk::RieszFrequencyFunction< TFunctionValue, VImageDimension, TInput >::ComputeNormalizingFactor ( const IndicesArrayType & indices) const

Compute normalizing factor given an index = (n1,n2,...,nVImageDimension) Also takes into account this->m_Order = N

Parameters
indicesinput indices.
Returns
normalizing factor = (-j)^N * sqrt(N!/(n1!*n2!...nd!))

◆ ComputeNumberOfComponents()

template<typename TFunctionValue = std::complex<double>, unsigned int VImageDimension = 3, typename TInput = Vector<SpacePrecisionType, VImageDimension>>
static unsigned int itk::RieszFrequencyFunction< TFunctionValue, VImageDimension, TInput >::ComputeNumberOfComponents ( const unsigned int & order)
inlinestatic

Compute number of components p(N, d), where N = Order, d = Dimension. p(N,d) = (N + d - 1)!/( (d-1)! N! )

Parameters
orderN or this->m_Order
Returns
NumberOfComponents given the order.

Definition at line 81 of file itkRieszFrequencyFunction.h.

◆ ComputeUniqueIndices()

template<typename TFunctionValue = std::complex<double>, unsigned int VImageDimension = 3, typename TInput = Vector<SpacePrecisionType, VImageDimension>>
static void itk::RieszFrequencyFunction< TFunctionValue, VImageDimension, TInput >::ComputeUniqueIndices ( IndicesArrayType subIndex,
SetType & uniqueIndices,
unsigned int init = 0 )
inlinestatic

Compute all possible unique indices given the subIndex: (X, 0, ..., 0). Where X can be any number greater than 0, but probably want to use this->m_Order.

Parameters
subIndexIndice (X,0,...,0) where X > 0.
uniqueIndicesReference to set that store results.
initposition to evaluate subIndex. Needed for recursion purposes.

Definition at line 95 of file itkRieszFrequencyFunction.h.

◆ CreateAnother()

template<typename TFunctionValue = std::complex<double>, unsigned int VImageDimension = 3, typename TInput = Vector<SpacePrecisionType, VImageDimension>>
virtual::itk::LightObject::Pointer itk::RieszFrequencyFunction< TFunctionValue, VImageDimension, TInput >::CreateAnother ( ) const
virtual

Create an object from an instance, potentially deferring to a factory. This method allows you to create an instance of an object that is exactly the same type as the referring object. This is useful in cases where an object has been cast back to a base class.

Reimplemented from itk::Object.

◆ Evaluate()

template<typename TFunctionValue = std::complex<double>, unsigned int VImageDimension = 3, typename TInput = Vector<SpacePrecisionType, VImageDimension>>
FunctionValueType itk::RieszFrequencyFunction< TFunctionValue, VImageDimension, TInput >::Evaluate ( const TInput & ) const
inlineoverridevirtual

Evaluate the function at a given frequency point.

Implements itk::FrequencyFunction< TFunctionValue, VImageDimension, TInput >.

Definition at line 120 of file itkRieszFrequencyFunction.h.

◆ EvaluateAllComponents()

template<typename TFunctionValue = std::complex<double>, unsigned int VImageDimension = 3, typename TInput = Vector<SpacePrecisionType, VImageDimension>>
virtual OutputComponentsType itk::RieszFrequencyFunction< TFunctionValue, VImageDimension, TInput >::EvaluateAllComponents ( const TInput & frequency_point) const
virtual

Evaluate the frequency point and return the value for all the components of the generalized Riesz transform. The number of components depends on the value of m_Order.

See also
ComputeAllPermutations
Parameters
frequency_pointpoint in the frequency space.
Returns
vector holding the values for all the components at the frequency point.

◆ EvaluateWithIndices()

template<typename TFunctionValue = std::complex<double>, unsigned int VImageDimension = 3, typename TInput = Vector<SpacePrecisionType, VImageDimension>>
virtual OutputComplexType itk::RieszFrequencyFunction< TFunctionValue, VImageDimension, TInput >::EvaluateWithIndices ( const TInput & frequency_point,
const IndicesArrayType & indices )
virtual

Compute RieszTransform component based on indices. It takes into account m_Order.

Parameters
frequency_pointw (array)
indicesPrecondition: sum(n1,n2,...,nd) = N (m_Order) n = (n1,n2,...nd) := indices vector. d-array, where d is the Dimension of the image.
Returns
R^n = (-j)^N * sqrt(N!/(n1!*n2!...nd!)) * (w1^n1 * w2^n2 * ... wd^nd) * 1.0 / ||w||^N R^n = complex_component * normalizing_factor * frequency_factor * 1.0/freq_magnitude_factor

◆ Factorial()

template<typename TFunctionValue = std::complex<double>, unsigned int VImageDimension = 3, typename TInput = Vector<SpacePrecisionType, VImageDimension>>
static long itk::RieszFrequencyFunction< TFunctionValue, VImageDimension, TInput >::Factorial ( long n)
inlinestatic

Factorial.

Definition at line 171 of file itkRieszFrequencyFunction.h.

◆ GetIndices()

template<typename TFunctionValue = std::complex<double>, unsigned int VImageDimension = 3, typename TInput = Vector<SpacePrecisionType, VImageDimension>>
virtual const SetType & itk::RieszFrequencyFunction< TFunctionValue, VImageDimension, TInput >::GetIndices ( ) const
virtual

Sorted set of indices. All permutations allowed by Order. Calculated when SetOrder

◆ GetNameOfClass()

template<typename TFunctionValue = std::complex<double>, unsigned int VImageDimension = 3, typename TInput = Vector<SpacePrecisionType, VImageDimension>>
virtual const char * itk::RieszFrequencyFunction< TFunctionValue, VImageDimension, TInput >::GetNameOfClass ( ) const
virtual

Run-time type information (and related methods).

Reimplemented from itk::FrequencyFunction< TFunctionValue, VImageDimension, TInput >.

◆ GetOrder()

template<typename TFunctionValue = std::complex<double>, unsigned int VImageDimension = 3, typename TInput = Vector<SpacePrecisionType, VImageDimension>>
virtual const unsigned int & itk::RieszFrequencyFunction< TFunctionValue, VImageDimension, TInput >::GetOrder ( ) const
virtual

◆ Magnitude()

template<typename TFunctionValue = std::complex<double>, unsigned int VImageDimension = 3, typename TInput = Vector<SpacePrecisionType, VImageDimension>>
double itk::RieszFrequencyFunction< TFunctionValue, VImageDimension, TInput >::Magnitude ( const TInput & point) const
inline

Calculate magnitude (euclidean norm) of input point.

Definition at line 164 of file itkRieszFrequencyFunction.h.

◆ New()

template<typename TFunctionValue = std::complex<double>, unsigned int VImageDimension = 3, typename TInput = Vector<SpacePrecisionType, VImageDimension>>
static Pointer itk::RieszFrequencyFunction< TFunctionValue, VImageDimension, TInput >::New ( )
static

Method for creation through the object factory.

◆ PrintSelf()

template<typename TFunctionValue = std::complex<double>, unsigned int VImageDimension = 3, typename TInput = Vector<SpacePrecisionType, VImageDimension>>
void itk::RieszFrequencyFunction< TFunctionValue, VImageDimension, TInput >::PrintSelf ( std::ostream & os,
Indent indent ) const
overrideprotectedvirtual

Methods invoked by Print() to print information about the object including superclasses. Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes.

Reimplemented from itk::FrequencyFunction< TFunctionValue, VImageDimension, TInput >.

◆ SetOrder()

template<typename TFunctionValue = std::complex<double>, unsigned int VImageDimension = 3, typename TInput = Vector<SpacePrecisionType, VImageDimension>>
virtual void itk::RieszFrequencyFunction< TFunctionValue, VImageDimension, TInput >::SetOrder ( const unsigned int inputOrder)
inlinevirtual

Order of the generalized riesz transform.

Definition at line 178 of file itkRieszFrequencyFunction.h.

Member Data Documentation

◆ m_Indices

template<typename TFunctionValue = std::complex<double>, unsigned int VImageDimension = 3, typename TInput = Vector<SpacePrecisionType, VImageDimension>>
SetType itk::RieszFrequencyFunction< TFunctionValue, VImageDimension, TInput >::m_Indices
private

Definition at line 210 of file itkRieszFrequencyFunction.h.

◆ m_Order

template<typename TFunctionValue = std::complex<double>, unsigned int VImageDimension = 3, typename TInput = Vector<SpacePrecisionType, VImageDimension>>
unsigned int itk::RieszFrequencyFunction< TFunctionValue, VImageDimension, TInput >::m_Order { 0 }
private

Definition at line 209 of file itkRieszFrequencyFunction.h.


The documentation for this class was generated from the following file: