ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
itk::RieszStructureTensorImageFilter< TInputImage, TOutputImage > Class Template Reference

#include <itkRieszStructureTensorImageFilter.h>

Detailed Description

template<typename TInputImage, typename TOutputImage = itk::Image<itk::VariableSizeMatrix<double>, TInputImage::ImageDimension>>
class itk::RieszStructureTensorImageFilter< TInputImage, TOutputImage >

Given an array of inputs, StructureTensor computes the linear combination (or direction) of inputs that maximizes the response for each location in the image. Instead of only measuring the response at the pixel of interest, it takes into account a local neighborhood.

Implementation based on article: Unser, M., Chenouard, N. and Van De Ville, D. Steerable Pyramids and Tight Wavelet Frames in \(L_{2}(\mathcal{R}^d)\), IEEE Transactions on Image Processing, DOI: 10.1109/TIP.2011.2138147

\[ \mathbf{u}({\mathbf{x}_0}) = \arg \max_{\Vert\mathbf{u}\Vert =1 } \int_{\mathbb{R}^d} g(\mathbf{x} - \mathbf{x}_0) \left| \mathbf{I}_{\mathbf{u}}(\mathbf{x})\right|^2 \]

\[ \left| \mathbf{I}_{\mathbf{u}}(\mathbf{x})\right|^2 = \mathbf{u}^T \cdot \mathbf{I}(\mathbf{x}) \cdot (\mathbf{I}(\mathbf{x}))^T \cdot \mathbf{u} \]

\( \mathbf{I}\) is the required std::vector of input images. These images might be the output after applying a directional filter to an image (for example, directional derivatives from an image, or the basis of a steerable filter, such as a RieszImageFilter). Instead of just select the max response at every pixel, it uses the response over a local neighborhood that is specified using an isotropic Gaussian window \(g(\mathbf{x}\). This approach is more robust against noise. The user can control the radius and sigma of this gaussian kernel. Estimation of the local orientation this way results in an eigen system with matrix:

\[ [\mathbf{J}(\mathbf{x}_0)]_{mn} = \sum_{\mathbf{x} \in \mathbb{Z}^d} g(\mathbf{x} - \mathbf{x}_0) I_m[\mathbf{x}]I_n[\mathbf{x}] \]

where \(I_m, I_n \) are input images, \( m,n \in {0,N-1} \) and \(N\) is the total number of inputs. \(g\) is a gaussian kernel of radius SetGaussianWindowRadius()

The solution of the EigenSystem defined by \(\mathbf{J}\) are the N EigenValues and EigenVectors. The output of StructureTensor is a 2D Matrix of size (N,N+1), where the submatrix (N,N) are the EigenVectors, and the last column (N+1) are the EigenValues. The orientation that maximises the response: \(u\) is the EigenVector with largest EigenValue, which is is the Nth column of the output matrix. We can use the calculated direction \(u\) to get a new image with max response from the inputs at each pixel.

See also
ComputeProjectionImageWithLargestResponse(), or any other direction from other eigen vectors with
ComputeProjectionImage(unsigned int eigen_index)

Also we can compare eigen values to study the local coherency of each pixel:

\[ \chi (\mathbf{x}_0)= \frac{\lambda_N(\mathbf{x}_0) - A(\mathbf{x}_0)}{\lambda_N(\mathbf{x}_0) + A(\mathbf{x}_0)} \]

where \(\lambda_N(\mathbf{x}_0)\) is the largest eigen value at pixel \(\mathbf{x}_0\) , and \(A(\mathbf{x}_0) = \frac{1}{N-1}\sum_{i=1}^{N-1}\lambda_i(\mathbf{x}_0)\) is the average of the other eigen values.

See also
RieszImageFilter
SymmetricEigenAnalysis

Definition at line 83 of file itkRieszStructureTensorImageFilter.h.

+ Inheritance diagram for itk::RieszStructureTensorImageFilter< TInputImage, TOutputImage >:
+ Collaboration diagram for itk::RieszStructureTensorImageFilter< TInputImage, TOutputImage >:

Public Types

using ConstPointer = SmartPointer<const Self>
 
using EigenMatrixImageType = OutputImageType
 
using EigenMatrixType = OutputImagePixelType
 
using EigenValuesType = itk::Array<typename OutputImagePixelType::ValueType>
 
using FloatImagePointer = typename FloatImageType::Pointer
 
using FloatImageType = itk::Image<FloatType, ImageDimension>
 
using FloatType = double
 
using GaussianSourceType = GaussianImageSource<FloatImageType>
 
using InputImageConstPointer = typename InputImageType::ConstPointer
 
using InputImagePixelType = typename InputImageType::PixelType
 
using InputImagePointer = typename InputImageType::Pointer
 
using InputImageRegionType = typename InputImageType::RegionType
 
using InputImageType = typename Superclass::InputImageType
 
using InputsType = typename std::vector<InputImagePointer>
 
using OutputImageConstPointer = typename OutputImageType::ConstPointer
 
using OutputImagePixelType = typename OutputImageType::PixelType
 
using OutputImagePointer = typename OutputImageType::Pointer
 
using OutputImageRegionType = typename OutputImageType::RegionType
 
using OutputImageType = typename Superclass::OutputImageType
 
using Pointer = SmartPointer<Self>
 
using Self = RieszStructureTensorImageFilter
 
using SizeType = typename InputImageRegionType::SizeType
 
using SpacingType = typename InputImageType::SpacingType
 
using Superclass = ImageToImageFilter<TInputImage, TOutputImage>
 
using SymmetricEigenAnalysisType = itk::SymmetricEigenAnalysis<EigenMatrixType, EigenValuesType>
 
- Public Types inherited from itk::ImageToImageFilter< TInputImage, TOutputImage >
using ConstPointer = SmartPointer<const Self>
 
using InputImageConstPointer = typename InputImageType::ConstPointer
 
using InputImagePixelType = typename InputImageType::PixelType
 
using InputImagePointer = typename InputImageType::Pointer
 
using InputImageRegionType = typename InputImageType::RegionType
 
using InputImageType = TInputImage
 
using OutputImagePixelType
 
using OutputImageRegionType
 
using Pointer = SmartPointer<Self>
 
using Self = ImageToImageFilter
 
using Superclass = ImageSource<TOutputImage>
 
- Public Types inherited from itk::ImageSource< TOutputImage >
using ConstPointer = SmartPointer<const Self>
 
using DataObjectIdentifierType = Superclass::DataObjectIdentifierType
 
using DataObjectPointer = DataObject::Pointer
 
using DataObjectPointerArraySizeType = Superclass::DataObjectPointerArraySizeType
 
using OutputImagePixelType = typename OutputImageType::PixelType
 
using OutputImagePointer = typename OutputImageType::Pointer
 
using OutputImageRegionType = typename OutputImageType::RegionType
 
using OutputImageType = TOutputImage
 
using Pointer = SmartPointer<Self>
 
using Self = ImageSource
 
using Superclass = ProcessObject
 
- Public Types inherited from itk::ProcessObject
using ConstPointer = SmartPointer<const Self>
 
using DataObjectIdentifierType = DataObject::DataObjectIdentifierType
 
using DataObjectPointer = DataObject::Pointer
 
using DataObjectPointerArray = std::vector<DataObjectPointer>
 
using DataObjectPointerArraySizeType = DataObjectPointerArray::size_type
 
using NameArray = std::vector<DataObjectIdentifierType>
 
using Pointer = SmartPointer<Self>
 
using Self = ProcessObject
 
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

InputImagePointer ComputeCoherencyImage () const
 
InputImagePointer ComputeProjectionImage (unsigned int eigen_number) const
 
InputImagePointer ComputeProjectionImageWithLargestResponse () const
 
virtual::itk::LightObject::Pointer CreateAnother () const
 
virtual const GaussianSourceType * GetGaussianSource () const
 
virtual FloatType GetGaussianWindowRadius () const
 
virtual FloatType GetGaussianWindowSigma () const
 
virtual GaussianSourceType * GetModifiableGaussianSource ()
 
virtual const char * GetNameOfClass () const
 
EigenMatrixType GetRotationMatrixFromOutputMatrix (const EigenMatrixType &outputMatrix, bool reOrderLargestEigenvectorInFirstRow=false) const
 
virtual void SetGaussianWindowRadius (FloatType _arg)
 
virtual void SetGaussianWindowSigma (FloatType _arg)
 
void SetInputs (const InputsType &inputs)
 
- Public Member Functions inherited from itk::ImageToImageFilter< TInputImage, TOutputImage >
const InputImageType * GetInput () const
 
const InputImageType * GetInput (unsigned int idx) const
 
void PopBackInput () override
 
void PopFrontInput () override
 
virtual void PushBackInput (const InputImageType *input)
 
virtual void PushFrontInput (const InputImageType *input)
 
virtual void SetInput (const InputImageType *input)
 
virtual void SetInput (unsigned int, const TInputImage *image)
 
virtual void SetCoordinateTolerance (double _arg)
 
virtual double GetCoordinateTolerance () const
 
virtual void SetDirectionTolerance (double _arg)
 
virtual double GetDirectionTolerance () const
 
- Public Member Functions inherited from itk::ImageSource< TOutputImage >
OutputImageType * GetOutput (unsigned int idx)
 
virtual void GraftNthOutput (unsigned int idx, DataObject *graft)
 
virtual void GraftOutput (const DataObjectIdentifierType &key, DataObject *graft)
 
virtual void GraftOutput (DataObject *graft)
 
OutputImageType * GetOutput ()
 
const OutputImageType * GetOutput () const
 
ProcessObject::DataObjectPointer MakeOutput (ProcessObject::DataObjectPointerArraySizeType idx) override
 
ProcessObject::DataObjectPointer MakeOutput (const ProcessObject::DataObjectIdentifierType &) override
 
- Public Member Functions inherited from itk::ProcessObject
virtual void AbortGenerateDataOff ()
 
virtual void AbortGenerateDataOn ()
 
virtual void EnlargeOutputRequestedRegion (DataObject *output)
 
virtual const bool & GetAbortGenerateData () const
 
DataObjectPointerArray GetIndexedInputs ()
 
DataObjectPointerArray GetIndexedOutputs ()
 
NameArray GetInputNames () const
 
DataObjectPointerArray GetInputs ()
 
MultiThreaderBase * GetMultiThreader () const
 
DataObjectPointerArraySizeType GetNumberOfIndexedInputs () const
 
DataObjectPointerArraySizeType GetNumberOfIndexedOutputs () const
 
DataObjectPointerArraySizeType GetNumberOfInputs () const
 
DataObjectPointerArraySizeType GetNumberOfOutputs () const
 
virtual DataObjectPointerArraySizeType GetNumberOfValidRequiredInputs () const
 
NameArray GetOutputNames () const
 
DataObjectPointerArray GetOutputs ()
 
virtual float GetProgress () const
 
NameArray GetRequiredInputNames () const
 
bool HasInput (const DataObjectIdentifierType &key) const
 
bool HasOutput (const DataObjectIdentifierType &key) const
 
void IncrementProgress (float increment)
 
virtual void PrepareOutputs ()
 
virtual void PropagateRequestedRegion (DataObject *output)
 
virtual void ResetPipeline ()
 
virtual void SetAbortGenerateData (bool _arg)
 
void SetMultiThreader (MultiThreaderBase *threader)
 
virtual void SetNumberOfWorkUnitsFromThreadRatio (ThreadIdType ratio)
 
virtual void Update ()
 
virtual void UpdateLargestPossibleRegion ()
 
virtual void UpdateOutputData (DataObject *output)
 
virtual void UpdateOutputInformation ()
 
void UpdateProgress (float progress)
 
virtual void SetReleaseDataFlag (bool val)
 
virtual bool GetReleaseDataFlag () const
 
void ReleaseDataFlagOn ()
 
void ReleaseDataFlagOff ()
 
virtual void SetReleaseDataBeforeUpdateFlag (bool _arg)
 
virtual const bool & GetReleaseDataBeforeUpdateFlag () const
 
virtual void ReleaseDataBeforeUpdateFlagOn ()
 
virtual void ReleaseDataBeforeUpdateFlagOff ()
 
virtual void SetNumberOfWorkUnits (ThreadIdType numberOfWorkUnits)
 
virtual ThreadIdType GetNumberOfWorkUnits () 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 Pointer New ()
 
- Static Public Member Functions inherited from itk::ImageToImageFilter< TInputImage, TOutputImage >
static double GetGlobalDefaultCoordinateTolerance ()
 
static double GetGlobalDefaultDirectionTolerance ()
 
static void SetGlobalDefaultCoordinateTolerance (double)
 
static void SetGlobalDefaultDirectionTolerance (double)
 
- 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 ()
 

Static Public Attributes

static constexpr unsigned int ImageDimension = TInputImage::ImageDimension
 
- Static Public Attributes inherited from itk::ImageToImageFilter< TInputImage, TOutputImage >
static constexpr unsigned int InputImageDimension = TInputImage::ImageDimension
 
static constexpr unsigned int OutputImageDimension = TOutputImage::ImageDimension
 
- Static Public Attributes inherited from itk::ImageSource< TOutputImage >
static constexpr unsigned int OutputImageDimension = TOutputImage::ImageDimension
 

Protected Member Functions

void BeforeThreadedGenerateData () override
 
void DynamicThreadedGenerateData (const OutputImageRegionType &outputRegionForThread) override
 
void PrintSelf (std::ostream &os, Indent indent) const override
 
 RieszStructureTensorImageFilter ()
 
 ~RieszStructureTensorImageFilter () override=default
 
- Protected Member Functions inherited from itk::ImageToImageFilter< TInputImage, TOutputImage >
virtual void CallCopyInputRegionToOutputRegion (OutputImageRegionType &destRegion, const InputImageRegionType &srcRegion)
 
virtual void CallCopyOutputRegionToInputRegion (InputImageRegionType &destRegion, const OutputImageRegionType &srcRegion)
 
void GenerateInputRequestedRegion () override
 
 ImageToImageFilter ()
 
void VerifyInputInformation () const override
 
 ~ImageToImageFilter () override=default
 
- Protected Member Functions inherited from itk::ImageSource< TOutputImage >
virtual void AfterThreadedGenerateData ()
 
virtual void AllocateOutputs ()
 
void ClassicMultiThread (ThreadFunctionType callbackFunction)
 
void GenerateData () override
 
virtual const ImageRegionSplitterBase * GetImageRegionSplitter () const
 
 ImageSource ()
 
virtual unsigned int SplitRequestedRegion (unsigned int i, unsigned int pieces, OutputImageRegionType &splitRegion)
 
 ~ImageSource () override=default
 
virtual void ThreadedGenerateData (const OutputImageRegionType &region, ThreadIdType threadId)
 
virtual bool GetDynamicMultiThreading () const
 
virtual void SetDynamicMultiThreading (bool _arg)
 
virtual void DynamicMultiThreadingOn ()
 
virtual void DynamicMultiThreadingOff ()
 
- Protected Member Functions inherited from itk::ProcessObject
virtual void AddInput (DataObject *input)
 
void AddOptionalInputName (const DataObjectIdentifierType &)
 
void AddOptionalInputName (const DataObjectIdentifierType &, DataObjectPointerArraySizeType idx)
 
virtual void AddOutput (DataObject *output)
 
bool AddRequiredInputName (const DataObjectIdentifierType &)
 
bool AddRequiredInputName (const DataObjectIdentifierType &, DataObjectPointerArraySizeType idx)
 
virtual void CacheInputReleaseDataFlags ()
 
virtual void GenerateOutputInformation ()
 
virtual void GenerateOutputRequestedRegion (DataObject *output)
 
DataObject * GetInput (const DataObjectIdentifierType &key)
 
const DataObject * GetInput (const DataObjectIdentifierType &key) const
 
virtual const DataObjectPointerArraySizeType & GetNumberOfRequiredInputs () const
 
virtual const DataObjectPointerArraySizeType & GetNumberOfRequiredOutputs () const
 
bool IsIndexedInputName (const DataObjectIdentifierType &) const
 
bool IsIndexedOutputName (const DataObjectIdentifierType &) const
 
bool IsRequiredInputName (const DataObjectIdentifierType &) const
 
DataObjectPointerArraySizeType MakeIndexFromInputName (const DataObjectIdentifierType &name) const
 
DataObjectPointerArraySizeType MakeIndexFromOutputName (const DataObjectIdentifierType &name) const
 
DataObjectIdentifierType MakeNameFromInputIndex (DataObjectPointerArraySizeType idx) const
 
DataObjectIdentifierType MakeNameFromOutputIndex (DataObjectPointerArraySizeType idx) const
 
 ProcessObject ()
 
virtual void PropagateResetPipeline ()
 
virtual void PushBackInput (const DataObject *input)
 
virtual void PushFrontInput (const DataObject *input)
 
virtual void ReleaseInputs ()
 
virtual void RemoveInput (const DataObjectIdentifierType &key)
 
virtual void RemoveInput (DataObjectPointerArraySizeType)
 
virtual void RemoveOutput (const DataObjectIdentifierType &key)
 
virtual void RemoveOutput (DataObjectPointerArraySizeType idx)
 
bool RemoveRequiredInputName (const DataObjectIdentifierType &)
 
virtual void RestoreInputReleaseDataFlags ()
 
virtual void SetInput (const DataObjectIdentifierType &key, DataObject *input)
 
virtual void SetNthInput (DataObjectPointerArraySizeType idx, DataObject *input)
 
virtual void SetNthOutput (DataObjectPointerArraySizeType idx, DataObject *output)
 
void SetNumberOfIndexedInputs (DataObjectPointerArraySizeType num)
 
void SetNumberOfIndexedOutputs (DataObjectPointerArraySizeType num)
 
virtual void SetNumberOfRequiredInputs (DataObjectPointerArraySizeType)
 
virtual void SetNumberOfRequiredOutputs (DataObjectPointerArraySizeType _arg)
 
virtual void SetOutput (const DataObjectIdentifierType &name, DataObject *output)
 
virtual void SetPrimaryInput (DataObject *object)
 
virtual void SetPrimaryOutput (DataObject *object)
 
void SetRequiredInputNames (const NameArray &)
 
virtual void VerifyPreconditions () const
 
 ~ProcessObject () override
 
DataObject * GetInput (DataObjectPointerArraySizeType idx)
 
const DataObject * GetInput (DataObjectPointerArraySizeType idx) const
 
DataObject * GetPrimaryInput ()
 
const DataObject * GetPrimaryInput () const
 
virtual void SetPrimaryInputName (const DataObjectIdentifierType &key)
 
virtual const char * GetPrimaryInputName () const
 
DataObject * GetOutput (const DataObjectIdentifierType &key)
 
const DataObject * GetOutput (const DataObjectIdentifierType &key) const
 
virtual void SetPrimaryOutputName (const DataObjectIdentifierType &key)
 
virtual const char * GetPrimaryOutputName () const
 
DataObject * GetOutput (DataObjectPointerArraySizeType i)
 
const DataObject * GetOutput (DataObjectPointerArraySizeType i) const
 
DataObject * GetPrimaryOutput ()
 
const DataObject * GetPrimaryOutput () const
 
virtual bool GetThreaderUpdateProgress () const
 
virtual void ThreaderUpdateProgressOn ()
 
virtual void ThreaderUpdateProgressOff ()
 
virtual void SetThreaderUpdateProgress (bool arg)
 
- 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 ()
 

Static Protected Member Functions

static unsigned int LowerTriangleToLinearIndex (unsigned int r, unsigned int c)
 
- Static Protected Member Functions inherited from itk::ImageSource< TOutputImage >
static const ImageRegionSplitterBase * GetGlobalDefaultSplitter ()
 
static ITK_THREAD_RETURN_FUNCTION_CALL_CONVENTION ThreaderCallback (void *arg)
 
- Static Protected Member Functions inherited from itk::ProcessObject
template<typename TSourceObject>
static void MakeRequiredOutputs (TSourceObject &sourceObject, const DataObjectPointerArraySizeType numberOfRequiredOutputs)
 
static constexpr float progressFixedToFloat (uint32_t fixed)
 
static uint32_t progressFloatToFixed (float f)
 

Private Attributes

GaussianSourceType::Pointer m_GaussianSource
 
unsigned int m_GaussianWindowRadius { 2 }
 
FloatType m_GaussianWindowSigma { 1.0 }
 
InputsType m_SquareSmoothedImages
 

Additional Inherited Members

- Protected Types inherited from itk::ImageToImageFilter< TInputImage, TOutputImage >
using InputToOutputRegionCopierType
 
using OutputToInputRegionCopierType
 
- Protected Attributes inherited from itk::ImageSource< TOutputImage >
bool m_DynamicMultiThreading { true }
 
- Protected Attributes inherited from itk::ProcessObject
TimeStamp m_OutputInformationMTime {}
 
bool m_Updating {}
 
- Protected Attributes inherited from itk::LightObject
std::atomic< int > m_ReferenceCount {}
 

Member Typedef Documentation

◆ ConstPointer

template<typename TInputImage, typename TOutputImage = itk::Image<itk::VariableSizeMatrix<double>, TInputImage::ImageDimension>>
using itk::RieszStructureTensorImageFilter< TInputImage, TOutputImage >::ConstPointer = SmartPointer<const Self>

Definition at line 93 of file itkRieszStructureTensorImageFilter.h.

◆ EigenMatrixImageType

template<typename TInputImage, typename TOutputImage = itk::Image<itk::VariableSizeMatrix<double>, TInputImage::ImageDimension>>
using itk::RieszStructureTensorImageFilter< TInputImage, TOutputImage >::EigenMatrixImageType = OutputImageType

Definition at line 126 of file itkRieszStructureTensorImageFilter.h.

◆ EigenMatrixType

template<typename TInputImage, typename TOutputImage = itk::Image<itk::VariableSizeMatrix<double>, TInputImage::ImageDimension>>
using itk::RieszStructureTensorImageFilter< TInputImage, TOutputImage >::EigenMatrixType = OutputImagePixelType

Definition at line 127 of file itkRieszStructureTensorImageFilter.h.

◆ EigenValuesType

template<typename TInputImage, typename TOutputImage = itk::Image<itk::VariableSizeMatrix<double>, TInputImage::ImageDimension>>
using itk::RieszStructureTensorImageFilter< TInputImage, TOutputImage >::EigenValuesType = itk::Array<typename OutputImagePixelType::ValueType>

Definition at line 128 of file itkRieszStructureTensorImageFilter.h.

◆ FloatImagePointer

template<typename TInputImage, typename TOutputImage = itk::Image<itk::VariableSizeMatrix<double>, TInputImage::ImageDimension>>
using itk::RieszStructureTensorImageFilter< TInputImage, TOutputImage >::FloatImagePointer = typename FloatImageType::Pointer

Definition at line 122 of file itkRieszStructureTensorImageFilter.h.

◆ FloatImageType

template<typename TInputImage, typename TOutputImage = itk::Image<itk::VariableSizeMatrix<double>, TInputImage::ImageDimension>>
using itk::RieszStructureTensorImageFilter< TInputImage, TOutputImage >::FloatImageType = itk::Image<FloatType, ImageDimension>

Definition at line 121 of file itkRieszStructureTensorImageFilter.h.

◆ FloatType

template<typename TInputImage, typename TOutputImage = itk::Image<itk::VariableSizeMatrix<double>, TInputImage::ImageDimension>>
using itk::RieszStructureTensorImageFilter< TInputImage, TOutputImage >::FloatType = double

Definition at line 120 of file itkRieszStructureTensorImageFilter.h.

◆ GaussianSourceType

template<typename TInputImage, typename TOutputImage = itk::Image<itk::VariableSizeMatrix<double>, TInputImage::ImageDimension>>
using itk::RieszStructureTensorImageFilter< TInputImage, TOutputImage >::GaussianSourceType = GaussianImageSource<FloatImageType>

Definition at line 130 of file itkRieszStructureTensorImageFilter.h.

◆ InputImageConstPointer

template<typename TInputImage, typename TOutputImage = itk::Image<itk::VariableSizeMatrix<double>, TInputImage::ImageDimension>>
using itk::RieszStructureTensorImageFilter< TInputImage, TOutputImage >::InputImageConstPointer = typename InputImageType::ConstPointer

Definition at line 109 of file itkRieszStructureTensorImageFilter.h.

◆ InputImagePixelType

template<typename TInputImage, typename TOutputImage = itk::Image<itk::VariableSizeMatrix<double>, TInputImage::ImageDimension>>
using itk::RieszStructureTensorImageFilter< TInputImage, TOutputImage >::InputImagePixelType = typename InputImageType::PixelType

Definition at line 111 of file itkRieszStructureTensorImageFilter.h.

◆ InputImagePointer

template<typename TInputImage, typename TOutputImage = itk::Image<itk::VariableSizeMatrix<double>, TInputImage::ImageDimension>>
using itk::RieszStructureTensorImageFilter< TInputImage, TOutputImage >::InputImagePointer = typename InputImageType::Pointer

Definition at line 108 of file itkRieszStructureTensorImageFilter.h.

◆ InputImageRegionType

template<typename TInputImage, typename TOutputImage = itk::Image<itk::VariableSizeMatrix<double>, TInputImage::ImageDimension>>
using itk::RieszStructureTensorImageFilter< TInputImage, TOutputImage >::InputImageRegionType = typename InputImageType::RegionType

Definition at line 110 of file itkRieszStructureTensorImageFilter.h.

◆ InputImageType

template<typename TInputImage, typename TOutputImage = itk::Image<itk::VariableSizeMatrix<double>, TInputImage::ImageDimension>>
using itk::RieszStructureTensorImageFilter< TInputImage, TOutputImage >::InputImageType = typename Superclass::InputImageType

Some convenient type alias.

Definition at line 105 of file itkRieszStructureTensorImageFilter.h.

◆ InputsType

template<typename TInputImage, typename TOutputImage = itk::Image<itk::VariableSizeMatrix<double>, TInputImage::ImageDimension>>
using itk::RieszStructureTensorImageFilter< TInputImage, TOutputImage >::InputsType = typename std::vector<InputImagePointer>

Definition at line 132 of file itkRieszStructureTensorImageFilter.h.

◆ OutputImageConstPointer

template<typename TInputImage, typename TOutputImage = itk::Image<itk::VariableSizeMatrix<double>, TInputImage::ImageDimension>>
using itk::RieszStructureTensorImageFilter< TInputImage, TOutputImage >::OutputImageConstPointer = typename OutputImageType::ConstPointer

Definition at line 116 of file itkRieszStructureTensorImageFilter.h.

◆ OutputImagePixelType

template<typename TInputImage, typename TOutputImage = itk::Image<itk::VariableSizeMatrix<double>, TInputImage::ImageDimension>>
using itk::RieszStructureTensorImageFilter< TInputImage, TOutputImage >::OutputImagePixelType = typename OutputImageType::PixelType

Definition at line 118 of file itkRieszStructureTensorImageFilter.h.

◆ OutputImagePointer

template<typename TInputImage, typename TOutputImage = itk::Image<itk::VariableSizeMatrix<double>, TInputImage::ImageDimension>>
using itk::RieszStructureTensorImageFilter< TInputImage, TOutputImage >::OutputImagePointer = typename OutputImageType::Pointer

Definition at line 115 of file itkRieszStructureTensorImageFilter.h.

◆ OutputImageRegionType

template<typename TInputImage, typename TOutputImage = itk::Image<itk::VariableSizeMatrix<double>, TInputImage::ImageDimension>>
using itk::RieszStructureTensorImageFilter< TInputImage, TOutputImage >::OutputImageRegionType = typename OutputImageType::RegionType

Definition at line 117 of file itkRieszStructureTensorImageFilter.h.

◆ OutputImageType

template<typename TInputImage, typename TOutputImage = itk::Image<itk::VariableSizeMatrix<double>, TInputImage::ImageDimension>>
using itk::RieszStructureTensorImageFilter< TInputImage, TOutputImage >::OutputImageType = typename Superclass::OutputImageType

Definition at line 106 of file itkRieszStructureTensorImageFilter.h.

◆ Pointer

template<typename TInputImage, typename TOutputImage = itk::Image<itk::VariableSizeMatrix<double>, TInputImage::ImageDimension>>
using itk::RieszStructureTensorImageFilter< TInputImage, TOutputImage >::Pointer = SmartPointer<Self>

Definition at line 92 of file itkRieszStructureTensorImageFilter.h.

◆ Self

template<typename TInputImage, typename TOutputImage = itk::Image<itk::VariableSizeMatrix<double>, TInputImage::ImageDimension>>
using itk::RieszStructureTensorImageFilter< TInputImage, TOutputImage >::Self = RieszStructureTensorImageFilter

Some convenient type alias. Standard class type alias.

Definition at line 90 of file itkRieszStructureTensorImageFilter.h.

◆ SizeType

template<typename TInputImage, typename TOutputImage = itk::Image<itk::VariableSizeMatrix<double>, TInputImage::ImageDimension>>
using itk::RieszStructureTensorImageFilter< TInputImage, TOutputImage >::SizeType = typename InputImageRegionType::SizeType

Definition at line 113 of file itkRieszStructureTensorImageFilter.h.

◆ SpacingType

template<typename TInputImage, typename TOutputImage = itk::Image<itk::VariableSizeMatrix<double>, TInputImage::ImageDimension>>
using itk::RieszStructureTensorImageFilter< TInputImage, TOutputImage >::SpacingType = typename InputImageType::SpacingType

Definition at line 112 of file itkRieszStructureTensorImageFilter.h.

◆ Superclass

template<typename TInputImage, typename TOutputImage = itk::Image<itk::VariableSizeMatrix<double>, TInputImage::ImageDimension>>
using itk::RieszStructureTensorImageFilter< TInputImage, TOutputImage >::Superclass = ImageToImageFilter<TInputImage, TOutputImage>

Definition at line 91 of file itkRieszStructureTensorImageFilter.h.

◆ SymmetricEigenAnalysisType

template<typename TInputImage, typename TOutputImage = itk::Image<itk::VariableSizeMatrix<double>, TInputImage::ImageDimension>>
using itk::RieszStructureTensorImageFilter< TInputImage, TOutputImage >::SymmetricEigenAnalysisType = itk::SymmetricEigenAnalysis<EigenMatrixType, EigenValuesType>

Definition at line 129 of file itkRieszStructureTensorImageFilter.h.

Constructor & Destructor Documentation

◆ RieszStructureTensorImageFilter()

template<typename TInputImage, typename TOutputImage = itk::Image<itk::VariableSizeMatrix<double>, TInputImage::ImageDimension>>
itk::RieszStructureTensorImageFilter< TInputImage, TOutputImage >::RieszStructureTensorImageFilter ( )
protected

Referenced by GetNameOfClass().

◆ ~RieszStructureTensorImageFilter()

template<typename TInputImage, typename TOutputImage = itk::Image<itk::VariableSizeMatrix<double>, TInputImage::ImageDimension>>
itk::RieszStructureTensorImageFilter< TInputImage, TOutputImage >::~RieszStructureTensorImageFilter ( )
overrideprotecteddefault

Member Function Documentation

◆ BeforeThreadedGenerateData()

template<typename TInputImage, typename TOutputImage = itk::Image<itk::VariableSizeMatrix<double>, TInputImage::ImageDimension>>
void itk::RieszStructureTensorImageFilter< TInputImage, TOutputImage >::BeforeThreadedGenerateData ( )
overrideprotectedvirtual

If an imaging filter needs to perform processing after the buffer has been allocated but before threads are spawned, the filter can can provide an implementation for BeforeThreadedGenerateData(). The execution flow in the default GenerateData() method will be: 1) Allocate the output buffer 2) Call BeforeThreadedGenerateData() 3) Spawn threads, calling ThreadedGenerateData() in each thread. 4) Call AfterThreadedGenerateData() Note that this flow of control is only available if a filter provides a ThreadedGenerateData() method and NOT a GenerateData() method.

Reimplemented from itk::ImageSource< TOutputImage >.

◆ ComputeCoherencyImage()

template<typename TInputImage, typename TOutputImage = itk::Image<itk::VariableSizeMatrix<double>, TInputImage::ImageDimension>>
InputImagePointer itk::RieszStructureTensorImageFilter< TInputImage, TOutputImage >::ComputeCoherencyImage ( ) const

At each pixel, coherency is calculated based on the relative value of eigenValues. meanNonPrincipalEV \( = M = \frac{1}{N-1} \sum_{i=1}^{N-1}\lambda_i \) coherency \( = \frac{\lambda_N - M}{\lambda_1 + M} \) where \( \lambda_N \) is the largest eigen value.

Returns
Image filled with the coherency at each pixel.

◆ ComputeProjectionImage()

template<typename TInputImage, typename TOutputImage = itk::Image<itk::VariableSizeMatrix<double>, TInputImage::ImageDimension>>
InputImagePointer itk::RieszStructureTensorImageFilter< TInputImage, TOutputImage >::ComputeProjectionImage ( unsigned int eigen_number) const

Compute a new image which is a linear combination of the inputs. The weights of the linear combination are given by the eigenVector associated to the input eigen_number.

Parameters
eigen_numbercolumn of the eigenVector, note that the largest eigenValue is in Nth column.
Returns
Image where pixels are filled with the linear combination of inputs associated to the input eigen number.

◆ ComputeProjectionImageWithLargestResponse()

template<typename TInputImage, typename TOutputImage = itk::Image<itk::VariableSizeMatrix<double>, TInputImage::ImageDimension>>
InputImagePointer itk::RieszStructureTensorImageFilter< TInputImage, TOutputImage >::ComputeProjectionImageWithLargestResponse ( ) const

Call ComputeProjectionImage with the position of the largest eigenValue (Nth column).

Returns
Image where pixels are filled with the linear combination of inputs associated to the largest eigen value.
See also
ComputeProjectionImage

◆ CreateAnother()

template<typename TInputImage, typename TOutputImage = itk::Image<itk::VariableSizeMatrix<double>, TInputImage::ImageDimension>>
virtual::itk::LightObject::Pointer itk::RieszStructureTensorImageFilter< TInputImage, TOutputImage >::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.

◆ DynamicThreadedGenerateData()

template<typename TInputImage, typename TOutputImage = itk::Image<itk::VariableSizeMatrix<double>, TInputImage::ImageDimension>>
void itk::RieszStructureTensorImageFilter< TInputImage, TOutputImage >::DynamicThreadedGenerateData ( const OutputImageRegionType & outputRegionForThread)
overrideprotectedvirtual

If an imaging filter can be implemented as a multithreaded algorithm, the filter will provide an implementation of ThreadedGenerateData() or DynamicThreadedGenerateData(). This superclass will automatically split the output image into a number of pieces, spawn multiple threads, and call (Dynamic)ThreadedGenerateData() in each thread. Prior to spawning threads, the BeforeThreadedGenerateData() method is called. After all the threads have completed, the AfterThreadedGenerateData() method is called. If an image processing filter cannot support threading, that filter should provide an implementation of the GenerateData() method instead of providing an implementation of (Dynamic)ThreadedGenerateData(). If a filter provides a GenerateData() method as its implementation, then the filter is responsible for allocating the output data. If a filter provides a (Dynamic)ThreadedGenerateData() method as its implementation, then the output memory will allocated automatically by this superclass. The (Dynamic)ThreadedGenerateData() method should only produce the output specified by "outputThreadRegion" parameter. (Dynamic)ThreadedGenerateData() cannot write to any other portion of the output image (as this is responsibility of a different thread).

DynamicThreadedGenerateData() is the newer variant without threadId, and is the preferred signature, which is called by default. This variant can split the requested region into different number of pieces depending on current multi-processing load, which allows better load balancing. The non-dynamic (also known as classic) ThreadedGenerateData() signature has threadId, and number of pieces to be split into is known in advance. It is activated by calling this->DynamicMultiThreadingOff(); in derived class constructor. It should be used when the multi-threaded algorithm needs to pre-allocate some data structure with size dependent on the number of pieces (also known as chunks, work units, and sometimes also incorrectly as threads). Only PlatformMultiThreader guarantees that each piece will be processed in its own specific thread. Pool and TBB multi-threaders maintain a pool of threads (normally equal to number of processing cores) which they use to process the pieces. This normally results in a single thread being reused to process multiple work units.

See also
GenerateData(), SplitRequestedRegion()

Reimplemented from itk::ImageSource< TOutputImage >.

◆ GetGaussianSource()

template<typename TInputImage, typename TOutputImage = itk::Image<itk::VariableSizeMatrix<double>, TInputImage::ImageDimension>>
virtual const GaussianSourceType * itk::RieszStructureTensorImageFilter< TInputImage, TOutputImage >::GetGaussianSource ( ) const
virtual

◆ GetGaussianWindowRadius()

template<typename TInputImage, typename TOutputImage = itk::Image<itk::VariableSizeMatrix<double>, TInputImage::ImageDimension>>
virtual FloatType itk::RieszStructureTensorImageFilter< TInputImage, TOutputImage >::GetGaussianWindowRadius ( ) const
virtual

◆ GetGaussianWindowSigma()

template<typename TInputImage, typename TOutputImage = itk::Image<itk::VariableSizeMatrix<double>, TInputImage::ImageDimension>>
virtual FloatType itk::RieszStructureTensorImageFilter< TInputImage, TOutputImage >::GetGaussianWindowSigma ( ) const
virtual

◆ GetModifiableGaussianSource()

template<typename TInputImage, typename TOutputImage = itk::Image<itk::VariableSizeMatrix<double>, TInputImage::ImageDimension>>
virtual GaussianSourceType * itk::RieszStructureTensorImageFilter< TInputImage, TOutputImage >::GetModifiableGaussianSource ( )
virtual

Pointer to the GaussianSource.

See also
GaussianImageSource

◆ GetNameOfClass()

template<typename TInputImage, typename TOutputImage = itk::Image<itk::VariableSizeMatrix<double>, TInputImage::ImageDimension>>
virtual const char * itk::RieszStructureTensorImageFilter< TInputImage, TOutputImage >::GetNameOfClass ( ) const
virtual

Runtime information support.

Reimplemented from itk::ImageToImageFilter< TInputImage, TOutputImage >.

References RieszStructureTensorImageFilter().

◆ GetRotationMatrixFromOutputMatrix()

template<typename TInputImage, typename TOutputImage = itk::Image<itk::VariableSizeMatrix<double>, TInputImage::ImageDimension>>
EigenMatrixType itk::RieszStructureTensorImageFilter< TInputImage, TOutputImage >::GetRotationMatrixFromOutputMatrix ( const EigenMatrixType & outputMatrix,
bool reOrderLargestEigenvectorInFirstRow = false ) const

From the output matrix at each index, computes the rotation matrix, which is the transpose of the eigenvector matrix computed in the output of this image filter. If reOrderLargestEigenvectorInFirstRow is true the first row of the rotation matrix will have the largest eigenvector. If false (the default), the largest eigenvector will be in the last row.

Parameters
outputMatrixmatrix at any index stored in the output of this filter.
reOrderLargestEigenvectorInFirstRowflag to reorder eigenvectors.
Returns
rotationMatrix

◆ LowerTriangleToLinearIndex()

template<typename TInputImage, typename TOutputImage = itk::Image<itk::VariableSizeMatrix<double>, TInputImage::ImageDimension>>
static unsigned int itk::RieszStructureTensorImageFilter< TInputImage, TOutputImage >::LowerTriangleToLinearIndex ( unsigned int r,
unsigned int c )
inlinestaticprotected

Assuming that row>=column

Definition at line 219 of file itkRieszStructureTensorImageFilter.h.

◆ New()

template<typename TInputImage, typename TOutputImage = itk::Image<itk::VariableSizeMatrix<double>, TInputImage::ImageDimension>>
static Pointer itk::RieszStructureTensorImageFilter< TInputImage, TOutputImage >::New ( )
static

Standard New method.

◆ PrintSelf()

template<typename TInputImage, typename TOutputImage = itk::Image<itk::VariableSizeMatrix<double>, TInputImage::ImageDimension>>
void itk::RieszStructureTensorImageFilter< TInputImage, TOutputImage >::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::ImageToImageFilter< TInputImage, TOutputImage >.

◆ SetGaussianWindowRadius()

template<typename TInputImage, typename TOutputImage = itk::Image<itk::VariableSizeMatrix<double>, TInputImage::ImageDimension>>
virtual void itk::RieszStructureTensorImageFilter< TInputImage, TOutputImage >::SetGaussianWindowRadius ( FloatType _arg)
virtual

Set/Get Radius of the gaussian window. The window determines the size of the local neighborhood of each pixel.

◆ SetGaussianWindowSigma()

template<typename TInputImage, typename TOutputImage = itk::Image<itk::VariableSizeMatrix<double>, TInputImage::ImageDimension>>
virtual void itk::RieszStructureTensorImageFilter< TInputImage, TOutputImage >::SetGaussianWindowSigma ( FloatType _arg)
virtual

Set/Get Sigma of the GaussianSource.

See also
GaussianImageSource

◆ SetInputs()

template<typename TInputImage, typename TOutputImage = itk::Image<itk::VariableSizeMatrix<double>, TInputImage::ImageDimension>>
void itk::RieszStructureTensorImageFilter< TInputImage, TOutputImage >::SetInputs ( const InputsType & inputs)

Member Data Documentation

◆ ImageDimension

template<typename TInputImage, typename TOutputImage = itk::Image<itk::VariableSizeMatrix<double>, TInputImage::ImageDimension>>
unsigned int itk::RieszStructureTensorImageFilter< TInputImage, TOutputImage >::ImageDimension = TInputImage::ImageDimension
staticconstexpr

ImageDimension constants

Definition at line 96 of file itkRieszStructureTensorImageFilter.h.

◆ m_GaussianSource

template<typename TInputImage, typename TOutputImage = itk::Image<itk::VariableSizeMatrix<double>, TInputImage::ImageDimension>>
GaussianSourceType::Pointer itk::RieszStructureTensorImageFilter< TInputImage, TOutputImage >::m_GaussianSource
private

Definition at line 227 of file itkRieszStructureTensorImageFilter.h.

◆ m_GaussianWindowRadius

template<typename TInputImage, typename TOutputImage = itk::Image<itk::VariableSizeMatrix<double>, TInputImage::ImageDimension>>
unsigned int itk::RieszStructureTensorImageFilter< TInputImage, TOutputImage >::m_GaussianWindowRadius { 2 }
private

Definition at line 225 of file itkRieszStructureTensorImageFilter.h.

◆ m_GaussianWindowSigma

template<typename TInputImage, typename TOutputImage = itk::Image<itk::VariableSizeMatrix<double>, TInputImage::ImageDimension>>
FloatType itk::RieszStructureTensorImageFilter< TInputImage, TOutputImage >::m_GaussianWindowSigma { 1.0 }
private

Definition at line 226 of file itkRieszStructureTensorImageFilter.h.

◆ m_SquareSmoothedImages

template<typename TInputImage, typename TOutputImage = itk::Image<itk::VariableSizeMatrix<double>, TInputImage::ImageDimension>>
InputsType itk::RieszStructureTensorImageFilter< TInputImage, TOutputImage >::m_SquareSmoothedImages
private

Definition at line 228 of file itkRieszStructureTensorImageFilter.h.


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