ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
rtk::PhasesToInterpolationWeights Class Reference

#include <rtkPhasesToInterpolationWeights.h>

Detailed Description

Parses csv file containing the cardiac or respiratory phases of each projection, and generates interpolation weights for 4D reconstruction.

Useful for 4D reconstruction of beating heart or breathing thorax

Author
Cyril Mory

Definition at line 40 of file rtkPhasesToInterpolationWeights.h.

+ Inheritance diagram for rtk::PhasesToInterpolationWeights:
+ Collaboration diagram for rtk::PhasesToInterpolationWeights:

Public Types

using Array2DType = itk::Array2D<float>
 
using ConstPointer = itk::SmartPointer<const Self>
 
using Pointer = itk::SmartPointer<Self>
 
using Self = PhasesToInterpolationWeights
 
using Superclass = CSVFileReaderBase
 
using ValueType = float
 
- Public Types inherited from itk::CSVFileReaderBase
using ConstPointer = SmartPointer<const Self>
 
using Pointer = SmartPointer<Self>
 
using Self = CSVFileReaderBase
 
using Superclass = LightProcessObject
 
- Public Types inherited from itk::LightProcessObject
using ConstPointer = SmartPointer<const Self>
 
using Pointer = SmartPointer<Self>
 
using Self = LightProcessObject
 
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 char * GetNameOfClass () const
 
virtual int GetNumberOfReconstructedFrames ()
 
virtual Array2DType GetOutput ()
 
virtual std::vector< bool > GetSelectedProjections ()
 
virtual bool GetUnevenTemporalSpacing ()
 
void Parse () override
 
virtual void SetNumberOfReconstructedFrames (int _arg)
 
void SetSelectedProjections (std::vector< bool > sprojs)
 
virtual void SetUnevenTemporalSpacing (bool _arg)
 
virtual void Update ()
 
- Public Member Functions inherited from itk::CSVFileReaderBase
template<typename TData>
TData ConvertStringToValueType (const std::string &str)
 
void GetDataDimension (SizeValueType &rows, SizeValueType &cols)
 
virtual char GetFieldDelimiterCharacter ()
 
virtual bool GetHasColumnHeaders () const
 
virtual bool GetHasRowHeaders () const
 
void GetNextField (std::string &)
 
virtual char GetStringDelimiterCharacter ()
 
virtual bool GetUseStringDelimiterCharacter () const
 
virtual void SetFieldDelimiterCharacter (char _arg)
 
virtual void SetFileName (const char *_arg)
 
virtual void SetHasColumnHeaders (bool _arg)
 
virtual void SetHasRowHeaders (bool _arg)
 
virtual void SetStringDelimiterCharacter (char _arg)
 
virtual void SetUseStringDelimiterCharacter (bool _arg)
 
virtual void HasRowHeadersOn ()
 
virtual void HasRowHeadersOff ()
 
virtual void HasColumnHeadersOn ()
 
virtual void HasColumnHeadersOff ()
 
virtual void UseStringDelimiterCharacterOn ()
 
virtual void UseStringDelimiterCharacterOff ()
 
- Public Member Functions inherited from itk::LightProcessObject
virtual void AbortGenerateDataOff ()
 
virtual void AbortGenerateDataOn ()
 
virtual const bool & GetAbortGenerateData () const
 
virtual void SetAbortGenerateData (bool _arg)
 
virtual void UpdateOutputData ()
 
void UpdateProgress (float amount)
 
virtual void SetProgress (float _arg)
 
virtual const float & GetProgress () 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::LightProcessObject
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

 PhasesToInterpolationWeights ()
 
void PrintSelf (std::ostream &os, itk::Indent indent) const override
 
 ~PhasesToInterpolationWeights () override=default
 
- Protected Member Functions inherited from itk::CSVFileReaderBase
 CSVFileReaderBase ()
 
void PrepareForParsing ()
 
 ~CSVFileReaderBase () override=default
 
- Protected Member Functions inherited from itk::LightProcessObject
virtual void GenerateData ()
 
 LightProcessObject ()
 
 ~LightProcessObject () override
 
- 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

Array2DType m_Array2D
 
int m_NumberOfReconstructedFrames
 
std::vector< bool > m_SelectedProjections
 
bool m_UnevenTemporalSpacing
 

Additional Inherited Members

- Protected Attributes inherited from itk::CSVFileReaderBase
std::streamoff m_EndOfColumnHeadersLine {}
 
char m_FieldDelimiterCharacter {}
 
std::string m_FileName {}
 
bool m_HasColumnHeaders {}
 
bool m_HasRowHeaders {}
 
std::ifstream m_InputStream {}
 
std::string m_Line {}
 
char m_StringDelimiterCharacter {}
 
bool m_UseStringDelimiterCharacter {}
 
- Protected Attributes inherited from itk::LightObject
std::atomic< int > m_ReferenceCount {}
 

Member Typedef Documentation

◆ Array2DType

◆ ConstPointer

◆ Pointer

◆ Self

◆ Superclass

◆ ValueType

The value type of the dataset.

Definition at line 61 of file rtkPhasesToInterpolationWeights.h.

Constructor & Destructor Documentation

◆ PhasesToInterpolationWeights()

rtk::PhasesToInterpolationWeights::PhasesToInterpolationWeights ( )
protected

Referenced by GetNameOfClass().

◆ ~PhasesToInterpolationWeights()

rtk::PhasesToInterpolationWeights::~PhasesToInterpolationWeights ( )
overrideprotecteddefault

Member Function Documentation

◆ CreateAnother()

virtual::itk::LightObject::Pointer rtk::PhasesToInterpolationWeights::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::LightProcessObject.

◆ GetNameOfClass()

virtual const char * rtk::PhasesToInterpolationWeights::GetNameOfClass ( ) const
virtual

Run-time type information (and related methods)

Reimplemented from itk::CSVFileReaderBase.

References PhasesToInterpolationWeights().

◆ GetNumberOfReconstructedFrames()

virtual int rtk::PhasesToInterpolationWeights::GetNumberOfReconstructedFrames ( )
virtual

◆ GetOutput()

virtual Array2DType rtk::PhasesToInterpolationWeights::GetOutput ( )
virtual

Aliased to the GetDataFrameObject() method to be consistent with the rest of the pipeline

◆ GetSelectedProjections()

virtual std::vector< bool > rtk::PhasesToInterpolationWeights::GetSelectedProjections ( )
virtual

◆ GetUnevenTemporalSpacing()

virtual bool rtk::PhasesToInterpolationWeights::GetUnevenTemporalSpacing ( )
virtual

◆ New()

static Pointer rtk::PhasesToInterpolationWeights::New ( )
static

Standard New method.

◆ Parse()

void rtk::PhasesToInterpolationWeights::Parse ( )
overridevirtual

This method can be used to get the data frame object once the data from the file has been parsed. Parses the data from the file. Gets the phases of the projections into a vector, then generate an Array2D object containing the interpolation weights

Implements itk::CSVFileReaderBase.

◆ PrintSelf()

void rtk::PhasesToInterpolationWeights::PrintSelf ( std::ostream & os,
itk::Indent indent ) const
overrideprotectedvirtual

Print the reader.

Reimplemented from itk::CSVFileReaderBase.

◆ SetNumberOfReconstructedFrames()

virtual void rtk::PhasesToInterpolationWeights::SetNumberOfReconstructedFrames ( int _arg)
virtual

Configure the filter to use uneven temporal spacing (finer temporal resolution during systole)

◆ SetSelectedProjections()

void rtk::PhasesToInterpolationWeights::SetSelectedProjections ( std::vector< bool > sprojs)

Set/Get for a list of booleans indicating whether or not each projection must be selected

◆ SetUnevenTemporalSpacing()

virtual void rtk::PhasesToInterpolationWeights::SetUnevenTemporalSpacing ( bool _arg)
virtual

Configure the filter to use uneven temporal spacing (finer temporal resolution during systole)

◆ Update()

virtual void rtk::PhasesToInterpolationWeights::Update ( )
virtual

Aliased to the Parse() method to be consistent with the rest of the pipeline.

Member Data Documentation

◆ m_Array2D

Array2DType rtk::PhasesToInterpolationWeights::m_Array2D
private

Definition at line 104 of file rtkPhasesToInterpolationWeights.h.

◆ m_NumberOfReconstructedFrames

int rtk::PhasesToInterpolationWeights::m_NumberOfReconstructedFrames
private

Definition at line 105 of file rtkPhasesToInterpolationWeights.h.

◆ m_SelectedProjections

std::vector<bool> rtk::PhasesToInterpolationWeights::m_SelectedProjections
private

Definition at line 107 of file rtkPhasesToInterpolationWeights.h.

◆ m_UnevenTemporalSpacing

bool rtk::PhasesToInterpolationWeights::m_UnevenTemporalSpacing
private

Definition at line 106 of file rtkPhasesToInterpolationWeights.h.


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