ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
rtk::WeidingerForwardModelImageFilter< TDecomposedProjections, TMeasuredProjections, TIncidentSpectrum, TProjections > Class Template Reference

#include <rtkWeidingerForwardModelImageFilter.h>

Detailed Description

template<class TDecomposedProjections, class TMeasuredProjections, class TIncidentSpectrum, class TProjections = itk::Image<typename TDecomposedProjections::PixelType::ValueType, TDecomposedProjections::ImageDimension>>
class rtk::WeidingerForwardModelImageFilter< TDecomposedProjections, TMeasuredProjections, TIncidentSpectrum, TProjections >

Performs intermediate computations in Weidinger2016.

This filter performs all computations between forward and back projection in Weidinger2016

Author
Cyril Mory

Definition at line 46 of file rtkWeidingerForwardModelImageFilter.h.

+ Inheritance diagram for rtk::WeidingerForwardModelImageFilter< TDecomposedProjections, TMeasuredProjections, TIncidentSpectrum, TProjections >:
+ Collaboration diagram for rtk::WeidingerForwardModelImageFilter< TDecomposedProjections, TMeasuredProjections, TIncidentSpectrum, TProjections >:

Public Types

using BinnedDetectorResponseType = vnl_matrix<dataType>
 
using dataType = typename TDecomposedProjections::PixelType::ValueType
 
using MaterialAttenuationsType = vnl_matrix<dataType>
 
using Pointer = itk::SmartPointer<Self>
 
using Self = WeidingerForwardModelImageFilter
 
using Superclass = itk::ImageToImageFilter<TDecomposedProjections, TDecomposedProjections>
 
using TOutputImage1 = TDecomposedProjections
 
using TOutputImage2 = itk::Image<TPixelOutput2, TDecomposedProjections::ImageDimension>
 
using TPixelOutput2 = itk::Vector<dataType, nMaterials * nMaterials>
 
- Public Types inherited from itk::ImageToImageFilter< TDecomposedProjections, TDecomposedProjections >
using ConstPointer
 
using InputImageConstPointer
 
using InputImagePixelType
 
using InputImagePointer
 
using InputImageRegionType
 
using InputImageType
 
typedef typename OutputImageType::PixelType OutputImagePixelType
 
using OutputImagePixelType
 
typedef typename OutputImageType::RegionType OutputImageRegionType
 
using OutputImageRegionType
 
using Pointer
 
using Self
 
using Superclass
 
- 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

virtual::itk::LightObject::Pointer CreateAnother () const
 
virtual const BinnedDetectorResponseType & GetBinnedDetectorResponse () const
 
virtual const MaterialAttenuationsType & GetMaterialAttenuations () const
 
virtual const char * GetNameOfClass () const
 
TOutputImage1 * GetOutput1 ()
 
TOutputImage2 * GetOutput2 ()
 
virtual void SetBinnedDetectorResponse (const BinnedDetectorResponseType &detResp)
 
void SetInputDecomposedProjections (const TDecomposedProjections *decomposedProjections)
 
void SetInputIncidentSpectrum (const TIncidentSpectrum *incidentSpectrum)
 
void SetInputMeasuredProjections (const TMeasuredProjections *measuredProjections)
 
void SetInputProjectionsOfOnes (const TProjections *projectionsOfOnes)
 
virtual void SetMaterialAttenuations (const MaterialAttenuationsType &matAtt)
 
- Public Member Functions inherited from itk::ImageToImageFilter< TDecomposedProjections, TDecomposedProjections >
const InputImageType * GetInput () const
 
const InputImageType * GetInput () const
 
const InputImageType * GetInput (unsigned int idx) const
 
const InputImageType * GetInput (unsigned int idx) const
 
void PopBackInput () override
 
void PopBackInput () override
 
void PopFrontInput () override
 
void PopFrontInput () override
 
virtual void PushBackInput (const InputImageType *input)
 
virtual void PushBackInput (const InputImageType *input)
 
virtual void PushFrontInput (const InputImageType *input)
 
virtual void PushFrontInput (const InputImageType *input)
 
virtual void SetInput (const InputImageType *input)
 
virtual void SetInput (const InputImageType *input)
 
virtual void SetInput (unsigned int, const TDecomposedProjections *image)
 
virtual void SetInput (unsigned int, const TDecomposedProjections *image)
 
virtual void SetCoordinateTolerance (double _arg)
 
virtual double GetCoordinateTolerance () const
 
virtual void SetCoordinateTolerance (double _arg)
 
virtual double GetCoordinateTolerance () const
 
virtual void SetDirectionTolerance (double _arg)
 
virtual double GetDirectionTolerance () 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
 
- 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< TDecomposedProjections, TDecomposedProjections >
static double GetGlobalDefaultCoordinateTolerance ()
 
static double GetGlobalDefaultCoordinateTolerance ()
 
static double GetGlobalDefaultDirectionTolerance ()
 
static double GetGlobalDefaultDirectionTolerance ()
 
static void SetGlobalDefaultCoordinateTolerance (double)
 
static void SetGlobalDefaultCoordinateTolerance (double)
 
static void SetGlobalDefaultDirectionTolerance (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 nBins = TMeasuredProjections::PixelType::Dimension
 
static constexpr unsigned int nMaterials = TDecomposedProjections::PixelType::Dimension
 
- Static Public Attributes inherited from itk::ImageToImageFilter< TDecomposedProjections, TDecomposedProjections >
static constexpr unsigned int InputImageDimension
 
static constexpr unsigned int InputImageDimension
 
static constexpr unsigned int OutputImageDimension
 
static constexpr unsigned int OutputImageDimension
 
- Static Public Attributes inherited from itk::ImageSource< TOutputImage >
static constexpr unsigned int OutputImageDimension = TOutputImage::ImageDimension
 

Protected Member Functions

void DynamicThreadedGenerateData (const typename TOutputImage1::RegionType &outputRegionForThread) override
 
void GenerateInputRequestedRegion () override
 
TDecomposedProjections::ConstPointer GetInputDecomposedProjections ()
 
TIncidentSpectrum::ConstPointer GetInputIncidentSpectrum ()
 
TMeasuredProjections::ConstPointer GetInputMeasuredProjections ()
 
TProjections::ConstPointer GetInputProjectionsOfOnes ()
 
itk::ProcessObject::DataObjectPointer MakeOutput (const itk::ProcessObject::DataObjectIdentifierType &) override
 
itk::ProcessObject::DataObjectPointer MakeOutput (itk::ProcessObject::DataObjectPointerArraySizeType idx) override
 
void VerifyInputInformation () const override
 
 WeidingerForwardModelImageFilter ()
 
 ~WeidingerForwardModelImageFilter () override=default
 
- Protected Member Functions inherited from itk::ImageToImageFilter< TDecomposedProjections, TDecomposedProjections >
virtual void CallCopyInputRegionToOutputRegion (OutputImageRegionType &destRegion, const InputImageRegionType &srcRegion)
 
virtual void CallCopyInputRegionToOutputRegion (OutputImageRegionType &destRegion, const InputImageRegionType &srcRegion)
 
virtual void CallCopyOutputRegionToInputRegion (InputImageRegionType &destRegion, const OutputImageRegionType &srcRegion)
 
virtual void CallCopyOutputRegionToInputRegion (InputImageRegionType &destRegion, const OutputImageRegionType &srcRegion)
 
 ImageToImageFilter ()
 
 ImageToImageFilter ()
 
void PrintSelf (std::ostream &os, Indent indent) const override
 
void PrintSelf (std::ostream &os, Indent indent) const override
 
 ~ImageToImageFilter () override=default
 
 ~ImageToImageFilter () override=default
 
- Protected Member Functions inherited from itk::ImageSource< TOutputImage >
virtual void AfterThreadedGenerateData ()
 
virtual void AllocateOutputs ()
 
virtual void BeforeThreadedGenerateData ()
 
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 void DynamicThreadedGenerateData (const OutputImageRegionType &outputRegionForThread)
 
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
 
void PrintSelf (std::ostream &os, Indent indent) const override
 
 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 ()
 

Protected Attributes

BinnedDetectorResponseType m_BinnedDetectorResponse
 
MaterialAttenuationsType m_MaterialAttenuations
 
itk::SizeValueType m_NumberOfProjectionsInIncidentSpectrum
 
- 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 {}
 

Additional Inherited Members

- Protected Types inherited from itk::ImageToImageFilter< TDecomposedProjections, TDecomposedProjections >
using InputToOutputRegionCopierType
 
using OutputToInputRegionCopierType
 
- 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)
 

Member Typedef Documentation

◆ BinnedDetectorResponseType

template<class TDecomposedProjections, class TMeasuredProjections, class TIncidentSpectrum, class TProjections = itk::Image<typename TDecomposedProjections::PixelType::ValueType, TDecomposedProjections::ImageDimension>>
using rtk::WeidingerForwardModelImageFilter< TDecomposedProjections, TMeasuredProjections, TIncidentSpectrum, TProjections >::BinnedDetectorResponseType = vnl_matrix<dataType>

Typedefs for additional input information

Definition at line 107 of file rtkWeidingerForwardModelImageFilter.h.

◆ dataType

template<class TDecomposedProjections, class TMeasuredProjections, class TIncidentSpectrum, class TProjections = itk::Image<typename TDecomposedProjections::PixelType::ValueType, TDecomposedProjections::ImageDimension>>
using rtk::WeidingerForwardModelImageFilter< TDecomposedProjections, TMeasuredProjections, TIncidentSpectrum, TProjections >::dataType = typename TDecomposedProjections::PixelType::ValueType

Convenient type alias

Definition at line 68 of file rtkWeidingerForwardModelImageFilter.h.

◆ MaterialAttenuationsType

template<class TDecomposedProjections, class TMeasuredProjections, class TIncidentSpectrum, class TProjections = itk::Image<typename TDecomposedProjections::PixelType::ValueType, TDecomposedProjections::ImageDimension>>
using rtk::WeidingerForwardModelImageFilter< TDecomposedProjections, TMeasuredProjections, TIncidentSpectrum, TProjections >::MaterialAttenuationsType = vnl_matrix<dataType>

Definition at line 108 of file rtkWeidingerForwardModelImageFilter.h.

◆ Pointer

template<class TDecomposedProjections, class TMeasuredProjections, class TIncidentSpectrum, class TProjections = itk::Image<typename TDecomposedProjections::PixelType::ValueType, TDecomposedProjections::ImageDimension>>
using rtk::WeidingerForwardModelImageFilter< TDecomposedProjections, TMeasuredProjections, TIncidentSpectrum, TProjections >::Pointer = itk::SmartPointer<Self>

Definition at line 55 of file rtkWeidingerForwardModelImageFilter.h.

◆ Self

template<class TDecomposedProjections, class TMeasuredProjections, class TIncidentSpectrum, class TProjections = itk::Image<typename TDecomposedProjections::PixelType::ValueType, TDecomposedProjections::ImageDimension>>
using rtk::WeidingerForwardModelImageFilter< TDecomposedProjections, TMeasuredProjections, TIncidentSpectrum, TProjections >::Self = WeidingerForwardModelImageFilter

Standard class type alias.

Definition at line 53 of file rtkWeidingerForwardModelImageFilter.h.

◆ Superclass

template<class TDecomposedProjections, class TMeasuredProjections, class TIncidentSpectrum, class TProjections = itk::Image<typename TDecomposedProjections::PixelType::ValueType, TDecomposedProjections::ImageDimension>>
using rtk::WeidingerForwardModelImageFilter< TDecomposedProjections, TMeasuredProjections, TIncidentSpectrum, TProjections >::Superclass = itk::ImageToImageFilter<TDecomposedProjections, TDecomposedProjections>

Definition at line 54 of file rtkWeidingerForwardModelImageFilter.h.

◆ TOutputImage1

template<class TDecomposedProjections, class TMeasuredProjections, class TIncidentSpectrum, class TProjections = itk::Image<typename TDecomposedProjections::PixelType::ValueType, TDecomposedProjections::ImageDimension>>
using rtk::WeidingerForwardModelImageFilter< TDecomposedProjections, TMeasuredProjections, TIncidentSpectrum, TProjections >::TOutputImage1 = TDecomposedProjections

Define types for output images:

  • one n-vector per pixel
  • one nxn-matrix per pixel, but stored as one nxn-vector to allow vector back projection

Definition at line 74 of file rtkWeidingerForwardModelImageFilter.h.

◆ TOutputImage2

template<class TDecomposedProjections, class TMeasuredProjections, class TIncidentSpectrum, class TProjections = itk::Image<typename TDecomposedProjections::PixelType::ValueType, TDecomposedProjections::ImageDimension>>
using rtk::WeidingerForwardModelImageFilter< TDecomposedProjections, TMeasuredProjections, TIncidentSpectrum, TProjections >::TOutputImage2 = itk::Image<TPixelOutput2, TDecomposedProjections::ImageDimension>

Definition at line 79 of file rtkWeidingerForwardModelImageFilter.h.

◆ TPixelOutput2

template<class TDecomposedProjections, class TMeasuredProjections, class TIncidentSpectrum, class TProjections = itk::Image<typename TDecomposedProjections::PixelType::ValueType, TDecomposedProjections::ImageDimension>>
using rtk::WeidingerForwardModelImageFilter< TDecomposedProjections, TMeasuredProjections, TIncidentSpectrum, TProjections >::TPixelOutput2 = itk::Vector<dataType, nMaterials * nMaterials>

Definition at line 75 of file rtkWeidingerForwardModelImageFilter.h.

Constructor & Destructor Documentation

◆ WeidingerForwardModelImageFilter()

template<class TDecomposedProjections, class TMeasuredProjections, class TIncidentSpectrum, class TProjections = itk::Image<typename TDecomposedProjections::PixelType::ValueType, TDecomposedProjections::ImageDimension>>
rtk::WeidingerForwardModelImageFilter< TDecomposedProjections, TMeasuredProjections, TIncidentSpectrum, TProjections >::WeidingerForwardModelImageFilter ( )
protected

◆ ~WeidingerForwardModelImageFilter()

template<class TDecomposedProjections, class TMeasuredProjections, class TIncidentSpectrum, class TProjections = itk::Image<typename TDecomposedProjections::PixelType::ValueType, TDecomposedProjections::ImageDimension>>
rtk::WeidingerForwardModelImageFilter< TDecomposedProjections, TMeasuredProjections, TIncidentSpectrum, TProjections >::~WeidingerForwardModelImageFilter ( )
overrideprotecteddefault

Member Function Documentation

◆ CreateAnother()

template<class TDecomposedProjections, class TMeasuredProjections, class TIncidentSpectrum, class TProjections = itk::Image<typename TDecomposedProjections::PixelType::ValueType, TDecomposedProjections::ImageDimension>>
virtual::itk::LightObject::Pointer rtk::WeidingerForwardModelImageFilter< TDecomposedProjections, TMeasuredProjections, TIncidentSpectrum, TProjections >::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<class TDecomposedProjections, class TMeasuredProjections, class TIncidentSpectrum, class TProjections = itk::Image<typename TDecomposedProjections::PixelType::ValueType, TDecomposedProjections::ImageDimension>>
void rtk::WeidingerForwardModelImageFilter< TDecomposedProjections, TMeasuredProjections, TIncidentSpectrum, TProjections >::DynamicThreadedGenerateData ( const typename TOutputImage1::RegionType & outputRegionForThread)
overrideprotected

Does the real work.

◆ GenerateInputRequestedRegion()

template<class TDecomposedProjections, class TMeasuredProjections, class TIncidentSpectrum, class TProjections = itk::Image<typename TDecomposedProjections::PixelType::ValueType, TDecomposedProjections::ImageDimension>>
void rtk::WeidingerForwardModelImageFilter< TDecomposedProjections, TMeasuredProjections, TIncidentSpectrum, TProjections >::GenerateInputRequestedRegion ( )
overrideprotectedvirtual

What is the input requested region that is required to produce the output requested region? The base assumption for image processing filters is that the input requested region can be set to match the output requested region. If a filter requires more input (for instance a filter that uses neighborhoods needs more input than output to avoid introducing artificial boundary conditions) or less input (for instance a magnify filter) will have to override this method. In doing so, it should call its superclass' implementation as its first step. Note that imaging filters operate differently than the classes to this point in the class hierarchy. Up till now, the base assumption has been that the largest possible region will be requested of the input.

This implementation of GenerateInputRequestedRegion() only processes the inputs that are a subclass of the ImageBase<InputImageDimension>. If an input is another type of DataObject (including an Image of a different dimension), they are skipped by this method. The subclasses of ImageToImageFilter are responsible for providing an implementation of GenerateInputRequestedRegion() when there are multiple inputs of different types.

See also
ProcessObject::GenerateInputRequestedRegion(), ImageSource::GenerateInputRequestedRegion()

Reimplemented from itk::ImageToImageFilter< TDecomposedProjections, TDecomposedProjections >.

◆ GetBinnedDetectorResponse()

template<class TDecomposedProjections, class TMeasuredProjections, class TIncidentSpectrum, class TProjections = itk::Image<typename TDecomposedProjections::PixelType::ValueType, TDecomposedProjections::ImageDimension>>
virtual const BinnedDetectorResponseType & rtk::WeidingerForwardModelImageFilter< TDecomposedProjections, TMeasuredProjections, TIncidentSpectrum, TProjections >::GetBinnedDetectorResponse ( ) const
virtual

Set and Get macros for the additional input information

◆ GetInputDecomposedProjections()

template<class TDecomposedProjections, class TMeasuredProjections, class TIncidentSpectrum, class TProjections = itk::Image<typename TDecomposedProjections::PixelType::ValueType, TDecomposedProjections::ImageDimension>>
TDecomposedProjections::ConstPointer rtk::WeidingerForwardModelImageFilter< TDecomposedProjections, TMeasuredProjections, TIncidentSpectrum, TProjections >::GetInputDecomposedProjections ( )
protected

Getters for the inputs

◆ GetInputIncidentSpectrum()

template<class TDecomposedProjections, class TMeasuredProjections, class TIncidentSpectrum, class TProjections = itk::Image<typename TDecomposedProjections::PixelType::ValueType, TDecomposedProjections::ImageDimension>>
TIncidentSpectrum::ConstPointer rtk::WeidingerForwardModelImageFilter< TDecomposedProjections, TMeasuredProjections, TIncidentSpectrum, TProjections >::GetInputIncidentSpectrum ( )
protected

◆ GetInputMeasuredProjections()

template<class TDecomposedProjections, class TMeasuredProjections, class TIncidentSpectrum, class TProjections = itk::Image<typename TDecomposedProjections::PixelType::ValueType, TDecomposedProjections::ImageDimension>>
TMeasuredProjections::ConstPointer rtk::WeidingerForwardModelImageFilter< TDecomposedProjections, TMeasuredProjections, TIncidentSpectrum, TProjections >::GetInputMeasuredProjections ( )
protected

◆ GetInputProjectionsOfOnes()

template<class TDecomposedProjections, class TMeasuredProjections, class TIncidentSpectrum, class TProjections = itk::Image<typename TDecomposedProjections::PixelType::ValueType, TDecomposedProjections::ImageDimension>>
TProjections::ConstPointer rtk::WeidingerForwardModelImageFilter< TDecomposedProjections, TMeasuredProjections, TIncidentSpectrum, TProjections >::GetInputProjectionsOfOnes ( )
protected

◆ GetMaterialAttenuations()

template<class TDecomposedProjections, class TMeasuredProjections, class TIncidentSpectrum, class TProjections = itk::Image<typename TDecomposedProjections::PixelType::ValueType, TDecomposedProjections::ImageDimension>>
virtual const MaterialAttenuationsType & rtk::WeidingerForwardModelImageFilter< TDecomposedProjections, TMeasuredProjections, TIncidentSpectrum, TProjections >::GetMaterialAttenuations ( ) const
virtual

◆ GetNameOfClass()

template<class TDecomposedProjections, class TMeasuredProjections, class TIncidentSpectrum, class TProjections = itk::Image<typename TDecomposedProjections::PixelType::ValueType, TDecomposedProjections::ImageDimension>>
virtual const char * rtk::WeidingerForwardModelImageFilter< TDecomposedProjections, TMeasuredProjections, TIncidentSpectrum, TProjections >::GetNameOfClass ( ) const
virtual

Run-time type information (and related methods).

Reimplemented from itk::ImageToImageFilter< TDecomposedProjections, TDecomposedProjections >.

◆ GetOutput1()

template<class TDecomposedProjections, class TMeasuredProjections, class TIncidentSpectrum, class TProjections = itk::Image<typename TDecomposedProjections::PixelType::ValueType, TDecomposedProjections::ImageDimension>>
TOutputImage1 * rtk::WeidingerForwardModelImageFilter< TDecomposedProjections, TMeasuredProjections, TIncidentSpectrum, TProjections >::GetOutput1 ( )

Define the getters for the outputs, with correct types

◆ GetOutput2()

template<class TDecomposedProjections, class TMeasuredProjections, class TIncidentSpectrum, class TProjections = itk::Image<typename TDecomposedProjections::PixelType::ValueType, TDecomposedProjections::ImageDimension>>
TOutputImage2 * rtk::WeidingerForwardModelImageFilter< TDecomposedProjections, TMeasuredProjections, TIncidentSpectrum, TProjections >::GetOutput2 ( )

◆ MakeOutput() [1/2]

template<class TDecomposedProjections, class TMeasuredProjections, class TIncidentSpectrum, class TProjections = itk::Image<typename TDecomposedProjections::PixelType::ValueType, TDecomposedProjections::ImageDimension>>
itk::ProcessObject::DataObjectPointer rtk::WeidingerForwardModelImageFilter< TDecomposedProjections, TMeasuredProjections, TIncidentSpectrum, TProjections >::MakeOutput ( const itk::ProcessObject::DataObjectIdentifierType & )
overrideprotectedvirtual

Make a DataObject of the correct type to used as the specified output. Every ProcessObject subclass must be able to create a DataObject that can be used as a specified output. This method is automatically called when DataObject::DisconnectPipeline() is called. DataObject::DisconnectPipeline, disconnects a data object from being an output of its current source. When the data object is disconnected, the ProcessObject needs to construct a replacement output data object so that the ProcessObject is in a valid state. So DataObject::DisconnectPipeline eventually calls ProcessObject::MakeOutput. Note that MakeOutput always returns a SmartPointer to a DataObject. If a subclass of ImageSource has multiple outputs of different types, then that class must provide an implementation of MakeOutput().

Reimplemented from itk::ImageSource< TOutputImage >.

◆ MakeOutput() [2/2]

template<class TDecomposedProjections, class TMeasuredProjections, class TIncidentSpectrum, class TProjections = itk::Image<typename TDecomposedProjections::PixelType::ValueType, TDecomposedProjections::ImageDimension>>
itk::ProcessObject::DataObjectPointer rtk::WeidingerForwardModelImageFilter< TDecomposedProjections, TMeasuredProjections, TIncidentSpectrum, TProjections >::MakeOutput ( itk::ProcessObject::DataObjectPointerArraySizeType idx)
overrideprotectedvirtual

Creates the Outputs

Reimplemented from itk::ImageSource< TOutputImage >.

◆ New()

template<class TDecomposedProjections, class TMeasuredProjections, class TIncidentSpectrum, class TProjections = itk::Image<typename TDecomposedProjections::PixelType::ValueType, TDecomposedProjections::ImageDimension>>
static Pointer rtk::WeidingerForwardModelImageFilter< TDecomposedProjections, TMeasuredProjections, TIncidentSpectrum, TProjections >::New ( )
static

Method for creation through the object factory.

◆ SetBinnedDetectorResponse()

template<class TDecomposedProjections, class TMeasuredProjections, class TIncidentSpectrum, class TProjections = itk::Image<typename TDecomposedProjections::PixelType::ValueType, TDecomposedProjections::ImageDimension>>
virtual void rtk::WeidingerForwardModelImageFilter< TDecomposedProjections, TMeasuredProjections, TIncidentSpectrum, TProjections >::SetBinnedDetectorResponse ( const BinnedDetectorResponseType & detResp)
virtual

◆ SetInputDecomposedProjections()

template<class TDecomposedProjections, class TMeasuredProjections, class TIncidentSpectrum, class TProjections = itk::Image<typename TDecomposedProjections::PixelType::ValueType, TDecomposedProjections::ImageDimension>>
void rtk::WeidingerForwardModelImageFilter< TDecomposedProjections, TMeasuredProjections, TIncidentSpectrum, TProjections >::SetInputDecomposedProjections ( const TDecomposedProjections * decomposedProjections)

Set methods for all inputs, since they have different types

◆ SetInputIncidentSpectrum()

template<class TDecomposedProjections, class TMeasuredProjections, class TIncidentSpectrum, class TProjections = itk::Image<typename TDecomposedProjections::PixelType::ValueType, TDecomposedProjections::ImageDimension>>
void rtk::WeidingerForwardModelImageFilter< TDecomposedProjections, TMeasuredProjections, TIncidentSpectrum, TProjections >::SetInputIncidentSpectrum ( const TIncidentSpectrum * incidentSpectrum)

◆ SetInputMeasuredProjections()

template<class TDecomposedProjections, class TMeasuredProjections, class TIncidentSpectrum, class TProjections = itk::Image<typename TDecomposedProjections::PixelType::ValueType, TDecomposedProjections::ImageDimension>>
void rtk::WeidingerForwardModelImageFilter< TDecomposedProjections, TMeasuredProjections, TIncidentSpectrum, TProjections >::SetInputMeasuredProjections ( const TMeasuredProjections * measuredProjections)

◆ SetInputProjectionsOfOnes()

template<class TDecomposedProjections, class TMeasuredProjections, class TIncidentSpectrum, class TProjections = itk::Image<typename TDecomposedProjections::PixelType::ValueType, TDecomposedProjections::ImageDimension>>
void rtk::WeidingerForwardModelImageFilter< TDecomposedProjections, TMeasuredProjections, TIncidentSpectrum, TProjections >::SetInputProjectionsOfOnes ( const TProjections * projectionsOfOnes)

◆ SetMaterialAttenuations()

template<class TDecomposedProjections, class TMeasuredProjections, class TIncidentSpectrum, class TProjections = itk::Image<typename TDecomposedProjections::PixelType::ValueType, TDecomposedProjections::ImageDimension>>
virtual void rtk::WeidingerForwardModelImageFilter< TDecomposedProjections, TMeasuredProjections, TIncidentSpectrum, TProjections >::SetMaterialAttenuations ( const MaterialAttenuationsType & matAtt)
virtual

◆ VerifyInputInformation()

template<class TDecomposedProjections, class TMeasuredProjections, class TIncidentSpectrum, class TProjections = itk::Image<typename TDecomposedProjections::PixelType::ValueType, TDecomposedProjections::ImageDimension>>
void rtk::WeidingerForwardModelImageFilter< TDecomposedProjections, TMeasuredProjections, TIncidentSpectrum, TProjections >::VerifyInputInformation ( ) const
inlineoverrideprotectedvirtual

Verifies that the input images occupy the same physical space and the each index is at the same physical location.

The default implementation of the PropagateRequestedRegion() methods copies the index and size from the output to the input. This makes an implicit assumption that the images occupy the same physical location at each voxel. This method enforces that they are the same.

This implementation verifies that all input images of InputImageDimensions have the same origin, spacing and direction.

Filters which do not expect all input images to be at the same physical location should over-ride this method. Also filters whose inputs are different dimensions may need to override this method.

See also
ProcessObject::VerifyInputInformation

Reimplemented from itk::ImageToImageFilter< TDecomposedProjections, TDecomposedProjections >.

Definition at line 125 of file rtkWeidingerForwardModelImageFilter.h.

Member Data Documentation

◆ m_BinnedDetectorResponse

template<class TDecomposedProjections, class TMeasuredProjections, class TIncidentSpectrum, class TProjections = itk::Image<typename TDecomposedProjections::PixelType::ValueType, TDecomposedProjections::ImageDimension>>
BinnedDetectorResponseType rtk::WeidingerForwardModelImageFilter< TDecomposedProjections, TMeasuredProjections, TIncidentSpectrum, TProjections >::m_BinnedDetectorResponse
protected

Additional input parameters

Definition at line 157 of file rtkWeidingerForwardModelImageFilter.h.

◆ m_MaterialAttenuations

template<class TDecomposedProjections, class TMeasuredProjections, class TIncidentSpectrum, class TProjections = itk::Image<typename TDecomposedProjections::PixelType::ValueType, TDecomposedProjections::ImageDimension>>
MaterialAttenuationsType rtk::WeidingerForwardModelImageFilter< TDecomposedProjections, TMeasuredProjections, TIncidentSpectrum, TProjections >::m_MaterialAttenuations
protected

Definition at line 158 of file rtkWeidingerForwardModelImageFilter.h.

◆ m_NumberOfProjectionsInIncidentSpectrum

template<class TDecomposedProjections, class TMeasuredProjections, class TIncidentSpectrum, class TProjections = itk::Image<typename TDecomposedProjections::PixelType::ValueType, TDecomposedProjections::ImageDimension>>
itk::SizeValueType rtk::WeidingerForwardModelImageFilter< TDecomposedProjections, TMeasuredProjections, TIncidentSpectrum, TProjections >::m_NumberOfProjectionsInIncidentSpectrum
protected

Definition at line 159 of file rtkWeidingerForwardModelImageFilter.h.

◆ nBins

template<class TDecomposedProjections, class TMeasuredProjections, class TIncidentSpectrum, class TProjections = itk::Image<typename TDecomposedProjections::PixelType::ValueType, TDecomposedProjections::ImageDimension>>
unsigned int rtk::WeidingerForwardModelImageFilter< TDecomposedProjections, TMeasuredProjections, TIncidentSpectrum, TProjections >::nBins = TMeasuredProjections::PixelType::Dimension
staticconstexpr

Convenient parameters extracted from template types

Definition at line 64 of file rtkWeidingerForwardModelImageFilter.h.

◆ nMaterials

template<class TDecomposedProjections, class TMeasuredProjections, class TIncidentSpectrum, class TProjections = itk::Image<typename TDecomposedProjections::PixelType::ValueType, TDecomposedProjections::ImageDimension>>
unsigned int rtk::WeidingerForwardModelImageFilter< TDecomposedProjections, TMeasuredProjections, TIncidentSpectrum, TProjections >::nMaterials = TDecomposedProjections::PixelType::Dimension
staticconstexpr

Definition at line 65 of file rtkWeidingerForwardModelImageFilter.h.


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