ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
rtk::ProjectionsReader< TOutputImage > Class Template Reference

#include <rtkProjectionsReader.h>

Detailed Description

template<class TOutputImage>
class rtk::ProjectionsReader< TOutputImage >

This is the universal projections reader of rtk (raw data converted to attenuation). Currently handles his (Elekta Synergy), hnd (Varian OBI), edf (ESRF), XRad. For all other ITK file formats (mha, tif, ...), it is assumed that the attenuation is directly passed if the pixel type is not unsigned short and there is no processing. Optionnally, one can activate cropping, binning, scatter correction, etc. The details of the mini- pipeline is provided below, note that dashed filters are shunt if they are not required according to parameters.

Test
rtkedftest.cxx, rtkelektatest.cxx, rtkimagxtest.cxx, rtkdigisenstest.cxx, rtkxradtest.cxx, rtkvariantest.cxx
Author
Simon Rit

Definition at line 126 of file rtkProjectionsReader.h.

+ Inheritance diagram for rtk::ProjectionsReader< TOutputImage >:
+ Collaboration diagram for rtk::ProjectionsReader< TOutputImage >:

Public Types

using FileNamesContainer = std::vector<std::string>
 
using MedianRadiusType = typename rtk::ConditionalMedianImageFilter<TOutputImage>::MedianRadiusType
 
using OutputImageDirectionType = typename OutputImageType::DirectionType
 
using OutputImagePixelType = typename OutputImageType::PixelType
 
using OutputImagePointer = typename OutputImageType::Pointer
 
using OutputImagePointType = typename OutputImageType::PointType
 
using OutputImageRegionType = typename OutputImageType::RegionType
 
using OutputImageSizeType = typename OutputImageType::SizeType
 
using OutputImageSpacingType = typename OutputImageType::SpacingType
 
using OutputImageType = TOutputImage
 
using Pointer = itk::SmartPointer<Self>
 
using Self = ProjectionsReader
 
using ShrinkFactorsType = itk::FixedArray<unsigned int, TOutputImage::ImageDimension>
 
using StreamingType = itk::StreamingImageFilter<TOutputImage, TOutputImage>
 
using Superclass = itk::ImageSource<TOutputImage>
 
using WaterPrecorrectionType = rtk::WaterPrecorrectionImageFilter<TOutputImage, TOutputImage>
 
using WaterPrecorrectionVectorType = std::vector<double>
 
- 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 void ComputeLineIntegralOff ()
 
virtual void ComputeLineIntegralOn ()
 
virtual::itk::LightObject::Pointer CreateAnother () const
 
void GenerateOutputInformation () override
 
virtual double GetAirThreshold ()
 
virtual bool GetComputeLineIntegral () const
 
virtual double GetConditionalMedianThresholdMultiplier ()
 
virtual OutputImageDirectionType GetDirection () const
 
const FileNamesContainer & GetFileNames () const
 
virtual double GetI0 ()
 
virtual double GetIDark ()
 
virtual const itk::ImageIOBase * GetImageIO () const
 
virtual OutputImageSizeType GetLowerBoundaryCropSize () const
 
virtual const MedianRadiusType & GetMedianRadius () const
 
virtual const char * GetNameOfClass () const
 
virtual double GetNonNegativityConstraintThreshold ()
 
virtual OutputImagePointType GetOrigin () const
 
virtual double GetScatterToPrimaryRatio ()
 
virtual const ShrinkFactorsType & GetShrinkFactors () const
 
virtual OutputImageSpacingType GetSpacing () const
 
virtual OutputImageSizeType GetUpperBoundaryCropSize () const
 
virtual int GetVectorComponent ()
 
virtual WaterPrecorrectionVectorType GetWaterPrecorrectionCoefficients ()
 
virtual void SetAirThreshold (double _arg)
 
virtual void SetComputeLineIntegral (bool _arg)
 
virtual void SetConditionalMedianThresholdMultiplier (double _arg)
 
virtual void SetDirection (OutputImageDirectionType _arg)
 
void SetFileNames (const FileNamesContainer &name)
 
virtual void SetI0 (double _arg)
 
virtual void SetIDark (double _arg)
 
virtual void SetImageIO (itk::ImageIOBase *_arg)
 
virtual void SetLowerBoundaryCropSize (OutputImageSizeType _arg)
 
virtual void SetMedianRadius (MedianRadiusType _arg)
 
virtual void SetNonNegativityConstraintThreshold (double _arg)
 
virtual void SetOrigin (OutputImagePointType _arg)
 
virtual void SetScatterToPrimaryRatio (double _arg)
 
virtual void SetShrinkFactors (ShrinkFactorsType _arg)
 
virtual void SetSpacing (OutputImageSpacingType _arg)
 
virtual void SetUpperBoundaryCropSize (OutputImageSizeType _arg)
 
virtual void SetVectorComponent (int _arg)
 
virtual void SetWaterPrecorrectionCoefficients (const WaterPrecorrectionVectorType _arg)
 
- 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::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 OutputImageDimension = TOutputImage::ImageDimension
 
- Static Public Attributes inherited from itk::ImageSource< TOutputImage >
static constexpr unsigned int OutputImageDimension = TOutputImage::ImageDimension
 

Protected Member Functions

void GenerateData () override
 
void PrintSelf (std::ostream &os, itk::Indent indent) const override
 
 ProjectionsReader ()
 
 ~ProjectionsReader () override=default
 
- Protected Member Functions inherited from itk::ImageSource< TOutputImage >
virtual void AfterThreadedGenerateData ()
 
virtual void AllocateOutputs ()
 
virtual void BeforeThreadedGenerateData ()
 
void ClassicMultiThread (ThreadFunctionType callbackFunction)
 
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 GenerateInputRequestedRegion ()
 
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
 
virtual void PopBackInput ()
 
virtual void PopFrontInput ()
 
 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 VerifyInputInformation () const
 
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

FileNamesContainer m_FileNames
 
- 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 {}
 

Private Member Functions

void ConnectElektaRawFilter (itk::ImageBase< OutputImageDimension > **nextInputBase)
 
void PropagateI0 (itk::ImageBase< OutputImageDimension > **nextInputBase)
 
template<class TInputImage>
void PropagateParametersToMiniPipeline ()
 

Private Attributes

double m_AirThreshold { 32000 }
 
itk::ProcessObject::Pointer m_BinningFilter
 
itk::ProcessObject::Pointer m_ChangeInformationFilter
 
bool m_ComputeLineIntegral { true }
 
itk::ProcessObject::Pointer m_ConditionalMedianFilter
 
double m_ConditionalMedianThresholdMultiplier { 1. }
 
itk::ProcessObject::Pointer m_CropFilter
 
OutputImageSizeType m_DefaultBoundaryCropSize = itk::MakeFilled<OutputImageSizeType>(m_DefaultBoundaryCropValue)
 
itk::SizeValueType m_DefaultBoundaryCropValue { itk::NumericTraits<itk::SizeValueType>::max() }
 
OutputImageDirectionType m_Direction
 
itk::ProcessObject::Pointer m_ElektaRawFilter
 
double m_I0 { itk::NumericTraits<double>::NonpositiveMin() }
 
itk::ProcessObject::Pointer m_I0EstimationFilter
 
double m_IDark { 0. }
 
itk::ImageIOBase::Pointer m_ImageIO { nullptr }
 
OutputImageSizeType m_LowerBoundaryCropSize { m_DefaultBoundaryCropSize }
 
MedianRadiusType m_MedianRadius
 
double m_NonNegativityConstraintThreshold { itk::NumericTraits<double>::NonpositiveMin() }
 
OutputImagePointType m_Origin
 
itk::ImageSource< TOutputImage >::Pointer m_RawCastFilter
 
itk::ProcessObject::Pointer m_RawDataReader
 
itk::ImageSource< TOutputImage >::Pointer m_RawToAttenuationFilter
 
itk::ProcessObject::Pointer m_ScatterFilter
 
double m_ScatterToPrimaryRatio { 0. }
 
ShrinkFactorsType m_ShrinkFactors
 
OutputImageSpacingType m_Spacing
 
StreamingType::Pointer m_StreamingFilter
 
OutputImageSizeType m_UpperBoundaryCropSize { m_DefaultBoundaryCropSize }
 
int m_VectorComponent { -1 }
 
itk::ProcessObject::Pointer m_VectorComponentSelectionFilter
 
WaterPrecorrectionVectorType m_WaterPrecorrectionCoefficients
 
itk::ProcessObject::Pointer m_WaterPrecorrectionFilter
 

Additional Inherited Members

- 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

◆ FileNamesContainer

template<class TOutputImage>
using rtk::ProjectionsReader< TOutputImage >::FileNamesContainer = std::vector<std::string>

Definition at line 152 of file rtkProjectionsReader.h.

◆ MedianRadiusType

template<class TOutputImage>
using rtk::ProjectionsReader< TOutputImage >::MedianRadiusType = typename rtk::ConditionalMedianImageFilter<TOutputImage>::MedianRadiusType

Definition at line 154 of file rtkProjectionsReader.h.

◆ OutputImageDirectionType

template<class TOutputImage>
using rtk::ProjectionsReader< TOutputImage >::OutputImageDirectionType = typename OutputImageType::DirectionType

Definition at line 147 of file rtkProjectionsReader.h.

◆ OutputImagePixelType

template<class TOutputImage>
using rtk::ProjectionsReader< TOutputImage >::OutputImagePixelType = typename OutputImageType::PixelType

Definition at line 146 of file rtkProjectionsReader.h.

◆ OutputImagePointer

template<class TOutputImage>
using rtk::ProjectionsReader< TOutputImage >::OutputImagePointer = typename OutputImageType::Pointer

Definition at line 144 of file rtkProjectionsReader.h.

◆ OutputImagePointType

template<class TOutputImage>
using rtk::ProjectionsReader< TOutputImage >::OutputImagePointType = typename OutputImageType::PointType

Definition at line 149 of file rtkProjectionsReader.h.

◆ OutputImageRegionType

template<class TOutputImage>
using rtk::ProjectionsReader< TOutputImage >::OutputImageRegionType = typename OutputImageType::RegionType

Definition at line 145 of file rtkProjectionsReader.h.

◆ OutputImageSizeType

template<class TOutputImage>
using rtk::ProjectionsReader< TOutputImage >::OutputImageSizeType = typename OutputImageType::SizeType

Definition at line 150 of file rtkProjectionsReader.h.

◆ OutputImageSpacingType

template<class TOutputImage>
using rtk::ProjectionsReader< TOutputImage >::OutputImageSpacingType = typename OutputImageType::SpacingType

Definition at line 148 of file rtkProjectionsReader.h.

◆ OutputImageType

template<class TOutputImage>
using rtk::ProjectionsReader< TOutputImage >::OutputImageType = TOutputImage

Some convenient type alias.

Definition at line 143 of file rtkProjectionsReader.h.

◆ Pointer

template<class TOutputImage>
using rtk::ProjectionsReader< TOutputImage >::Pointer = itk::SmartPointer<Self>

Definition at line 134 of file rtkProjectionsReader.h.

◆ Self

template<class TOutputImage>
using rtk::ProjectionsReader< TOutputImage >::Self = ProjectionsReader

Standard class type alias.

Definition at line 132 of file rtkProjectionsReader.h.

◆ ShrinkFactorsType

template<class TOutputImage>
using rtk::ProjectionsReader< TOutputImage >::ShrinkFactorsType = itk::FixedArray<unsigned int, TOutputImage::ImageDimension>

Definition at line 153 of file rtkProjectionsReader.h.

◆ StreamingType

template<class TOutputImage>
using rtk::ProjectionsReader< TOutputImage >::StreamingType = itk::StreamingImageFilter<TOutputImage, TOutputImage>

Definition at line 160 of file rtkProjectionsReader.h.

◆ Superclass

template<class TOutputImage>
using rtk::ProjectionsReader< TOutputImage >::Superclass = itk::ImageSource<TOutputImage>

Definition at line 133 of file rtkProjectionsReader.h.

◆ WaterPrecorrectionType

template<class TOutputImage>
using rtk::ProjectionsReader< TOutputImage >::WaterPrecorrectionType = rtk::WaterPrecorrectionImageFilter<TOutputImage, TOutputImage>

Typdefs of filters of the mini-pipeline that do not depend on the raw data type.

Definition at line 159 of file rtkProjectionsReader.h.

◆ WaterPrecorrectionVectorType

template<class TOutputImage>
using rtk::ProjectionsReader< TOutputImage >::WaterPrecorrectionVectorType = std::vector<double>

Definition at line 155 of file rtkProjectionsReader.h.

Constructor & Destructor Documentation

◆ ProjectionsReader()

template<class TOutputImage>
rtk::ProjectionsReader< TOutputImage >::ProjectionsReader ( )
protected

Referenced by GetNameOfClass().

◆ ~ProjectionsReader()

template<class TOutputImage>
rtk::ProjectionsReader< TOutputImage >::~ProjectionsReader ( )
overrideprotecteddefault

Member Function Documentation

◆ ComputeLineIntegralOff()

template<class TOutputImage>
virtual void rtk::ProjectionsReader< TOutputImage >::ComputeLineIntegralOff ( )
virtual

◆ ComputeLineIntegralOn()

template<class TOutputImage>
virtual void rtk::ProjectionsReader< TOutputImage >::ComputeLineIntegralOn ( )
virtual

◆ ConnectElektaRawFilter()

template<class TOutputImage>
void rtk::ProjectionsReader< TOutputImage >::ConnectElektaRawFilter ( itk::ImageBase< OutputImageDimension > ** nextInputBase)
private

◆ CreateAnother()

template<class TOutputImage>
virtual::itk::LightObject::Pointer rtk::ProjectionsReader< 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.

◆ GenerateData()

template<class TOutputImage>
void rtk::ProjectionsReader< TOutputImage >::GenerateData ( )
overrideprotectedvirtual

Does the real work.

Reimplemented from itk::ImageSource< TOutputImage >.

◆ GenerateOutputInformation()

template<class TOutputImage>
void rtk::ProjectionsReader< TOutputImage >::GenerateOutputInformation ( )
overridevirtual

Prepare the allocation of the output image during the first back propagation of the pipeline.

Reimplemented from itk::ProcessObject.

◆ GetAirThreshold()

template<class TOutputImage>
virtual double rtk::ProjectionsReader< TOutputImage >::GetAirThreshold ( )
virtual

◆ GetComputeLineIntegral()

template<class TOutputImage>
virtual bool rtk::ProjectionsReader< TOutputImage >::GetComputeLineIntegral ( ) const
virtual

◆ GetConditionalMedianThresholdMultiplier()

template<class TOutputImage>
virtual double rtk::ProjectionsReader< TOutputImage >::GetConditionalMedianThresholdMultiplier ( )
virtual

◆ GetDirection()

template<class TOutputImage>
virtual OutputImageDirectionType rtk::ProjectionsReader< TOutputImage >::GetDirection ( ) const
virtual

◆ GetFileNames()

template<class TOutputImage>
const FileNamesContainer & rtk::ProjectionsReader< TOutputImage >::GetFileNames ( ) const
inlinenodiscard

Definition at line 177 of file rtkProjectionsReader.h.

References m_FileNames.

◆ GetI0()

template<class TOutputImage>
virtual double rtk::ProjectionsReader< TOutputImage >::GetI0 ( )
virtual

Set/Get rtk::LUTbasedVariableI0RawToAttenuationImageFilter. Default is used if not set which depends on the input image type max. If equals 0, automated estimation is activated using rtk::I0EstimationProjectionFilter.

◆ GetIDark()

template<class TOutputImage>
virtual double rtk::ProjectionsReader< TOutputImage >::GetIDark ( )
virtual

Set/Get the intensity with no photons for rtk::LUTbasedVariableI0RawToAttenuationImageFilter.

◆ GetImageIO()

template<class TOutputImage>
virtual const itk::ImageIOBase * rtk::ProjectionsReader< TOutputImage >::GetImageIO ( ) const
virtual

◆ GetLowerBoundaryCropSize()

template<class TOutputImage>
virtual OutputImageSizeType rtk::ProjectionsReader< TOutputImage >::GetLowerBoundaryCropSize ( ) const
virtual

◆ GetMedianRadius()

template<class TOutputImage>
virtual const MedianRadiusType & rtk::ProjectionsReader< TOutputImage >::GetMedianRadius ( ) const
virtual

◆ GetNameOfClass()

template<class TOutputImage>
virtual const char * rtk::ProjectionsReader< TOutputImage >::GetNameOfClass ( ) const
virtual

Run-time type information (and related methods).

Reimplemented from itk::ImageSource< TOutputImage >.

References ProjectionsReader().

◆ GetNonNegativityConstraintThreshold()

template<class TOutputImage>
virtual double rtk::ProjectionsReader< TOutputImage >::GetNonNegativityConstraintThreshold ( )
virtual

◆ GetOrigin()

template<class TOutputImage>
virtual OutputImagePointType rtk::ProjectionsReader< TOutputImage >::GetOrigin ( ) const
virtual

◆ GetScatterToPrimaryRatio()

template<class TOutputImage>
virtual double rtk::ProjectionsReader< TOutputImage >::GetScatterToPrimaryRatio ( )
virtual

◆ GetShrinkFactors()

template<class TOutputImage>
virtual const ShrinkFactorsType & rtk::ProjectionsReader< TOutputImage >::GetShrinkFactors ( ) const
virtual

◆ GetSpacing()

template<class TOutputImage>
virtual OutputImageSpacingType rtk::ProjectionsReader< TOutputImage >::GetSpacing ( ) const
virtual

◆ GetUpperBoundaryCropSize()

template<class TOutputImage>
virtual OutputImageSizeType rtk::ProjectionsReader< TOutputImage >::GetUpperBoundaryCropSize ( ) const
virtual

◆ GetVectorComponent()

template<class TOutputImage>
virtual int rtk::ProjectionsReader< TOutputImage >::GetVectorComponent ( )
virtual

Set/Get the index of the component to be extracted if the projection data contains vectors instead of scalars.

◆ GetWaterPrecorrectionCoefficients()

template<class TOutputImage>
virtual WaterPrecorrectionVectorType rtk::ProjectionsReader< TOutputImage >::GetWaterPrecorrectionCoefficients ( )
virtual

Get / Set the water precorrection parameters.

◆ New()

template<class TOutputImage>
static Pointer rtk::ProjectionsReader< TOutputImage >::New ( )
static

Method for creation through the object factory.

◆ PrintSelf()

template<class TOutputImage>
void rtk::ProjectionsReader< TOutputImage >::PrintSelf ( std::ostream & os,
itk::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::ImageSource< TOutputImage >.

◆ PropagateI0()

template<class TOutputImage>
void rtk::ProjectionsReader< TOutputImage >::PropagateI0 ( itk::ImageBase< OutputImageDimension > ** nextInputBase)
private

◆ PropagateParametersToMiniPipeline()

template<class TOutputImage>
template<class TInputImage>
void rtk::ProjectionsReader< TOutputImage >::PropagateParametersToMiniPipeline ( )
private

Function that checks and propagates the parameters of the class to the mini-pipeline. Due to concept checking, i0 propagation can only be done with unsigned shorts and is left apart without template.

◆ SetAirThreshold()

template<class TOutputImage>
virtual void rtk::ProjectionsReader< TOutputImage >::SetAirThreshold ( double _arg)
virtual

◆ SetComputeLineIntegral()

template<class TOutputImage>
virtual void rtk::ProjectionsReader< TOutputImage >::SetComputeLineIntegral ( bool _arg)
virtual

Convert the projection data to line integrals after pre-processing. Default is on.

◆ SetConditionalMedianThresholdMultiplier()

template<class TOutputImage>
virtual void rtk::ProjectionsReader< TOutputImage >::SetConditionalMedianThresholdMultiplier ( double _arg)
virtual

◆ SetDirection()

template<class TOutputImage>
virtual void rtk::ProjectionsReader< TOutputImage >::SetDirection ( OutputImageDirectionType _arg)
virtual

◆ SetFileNames()

template<class TOutputImage>
void rtk::ProjectionsReader< TOutputImage >::SetFileNames ( const FileNamesContainer & name)
inline

Set the vector of strings that contains the file names. Files are processed in sequential order.

Definition at line 168 of file rtkProjectionsReader.h.

References m_FileNames, and itk::Object::Modified().

◆ SetI0()

template<class TOutputImage>
virtual void rtk::ProjectionsReader< TOutputImage >::SetI0 ( double _arg)
virtual

◆ SetIDark()

template<class TOutputImage>
virtual void rtk::ProjectionsReader< TOutputImage >::SetIDark ( double _arg)
virtual

◆ SetImageIO()

template<class TOutputImage>
virtual void rtk::ProjectionsReader< TOutputImage >::SetImageIO ( itk::ImageIOBase * _arg)
virtual

Set/Get the ImageIO helper class. Often this is created via the object factory mechanism that determines whether a particular ImageIO can read a certain file. This method provides a way to get the ImageIO instance that is created. Or you can directly specify the ImageIO to use to read a particular file in case the factory mechanism will not work properly (e.g., unknown or unusual extension).

◆ SetLowerBoundaryCropSize()

template<class TOutputImage>
virtual void rtk::ProjectionsReader< TOutputImage >::SetLowerBoundaryCropSize ( OutputImageSizeType _arg)
virtual

◆ SetMedianRadius()

template<class TOutputImage>
virtual void rtk::ProjectionsReader< TOutputImage >::SetMedianRadius ( MedianRadiusType _arg)
virtual

Set/Get itk::ConditionalMedianImageFilter parameters

◆ SetNonNegativityConstraintThreshold()

template<class TOutputImage>
virtual void rtk::ProjectionsReader< TOutputImage >::SetNonNegativityConstraintThreshold ( double _arg)
virtual

◆ SetOrigin()

template<class TOutputImage>
virtual void rtk::ProjectionsReader< TOutputImage >::SetOrigin ( OutputImagePointType _arg)
virtual

Set/Get the new image information for the input projections before any pre-processing.

◆ SetScatterToPrimaryRatio()

template<class TOutputImage>
virtual void rtk::ProjectionsReader< TOutputImage >::SetScatterToPrimaryRatio ( double _arg)
virtual

◆ SetShrinkFactors()

template<class TOutputImage>
virtual void rtk::ProjectionsReader< TOutputImage >::SetShrinkFactors ( ShrinkFactorsType _arg)
virtual

Set/Get itk::BinShrinkImageFilter parameters

◆ SetSpacing()

template<class TOutputImage>
virtual void rtk::ProjectionsReader< TOutputImage >::SetSpacing ( OutputImageSpacingType _arg)
virtual

◆ SetUpperBoundaryCropSize()

template<class TOutputImage>
virtual void rtk::ProjectionsReader< TOutputImage >::SetUpperBoundaryCropSize ( OutputImageSizeType _arg)
virtual

Set/Get the cropping sizes for the upper and lower boundaries.

◆ SetVectorComponent()

template<class TOutputImage>
virtual void rtk::ProjectionsReader< TOutputImage >::SetVectorComponent ( int _arg)
virtual

◆ SetWaterPrecorrectionCoefficients()

template<class TOutputImage>
virtual void rtk::ProjectionsReader< TOutputImage >::SetWaterPrecorrectionCoefficients ( const WaterPrecorrectionVectorType _arg)
inlinevirtual

Member Data Documentation

◆ m_AirThreshold

template<class TOutputImage>
double rtk::ProjectionsReader< TOutputImage >::m_AirThreshold { 32000 }
private

Definition at line 335 of file rtkProjectionsReader.h.

◆ m_BinningFilter

template<class TOutputImage>
itk::ProcessObject::Pointer rtk::ProjectionsReader< TOutputImage >::m_BinningFilter
private

Definition at line 304 of file rtkProjectionsReader.h.

◆ m_ChangeInformationFilter

template<class TOutputImage>
itk::ProcessObject::Pointer rtk::ProjectionsReader< TOutputImage >::m_ChangeInformationFilter
private

Definition at line 300 of file rtkProjectionsReader.h.

◆ m_ComputeLineIntegral

template<class TOutputImage>
bool rtk::ProjectionsReader< TOutputImage >::m_ComputeLineIntegral { true }
private

Definition at line 342 of file rtkProjectionsReader.h.

◆ m_ConditionalMedianFilter

template<class TOutputImage>
itk::ProcessObject::Pointer rtk::ProjectionsReader< TOutputImage >::m_ConditionalMedianFilter
private

Definition at line 303 of file rtkProjectionsReader.h.

◆ m_ConditionalMedianThresholdMultiplier

template<class TOutputImage>
double rtk::ProjectionsReader< TOutputImage >::m_ConditionalMedianThresholdMultiplier { 1. }
private

Definition at line 340 of file rtkProjectionsReader.h.

◆ m_CropFilter

template<class TOutputImage>
itk::ProcessObject::Pointer rtk::ProjectionsReader< TOutputImage >::m_CropFilter
private

Definition at line 302 of file rtkProjectionsReader.h.

◆ m_DefaultBoundaryCropSize

template<class TOutputImage>
OutputImageSizeType rtk::ProjectionsReader< TOutputImage >::m_DefaultBoundaryCropSize = itk::MakeFilled<OutputImageSizeType>(m_DefaultBoundaryCropValue)
private

Definition at line 330 of file rtkProjectionsReader.h.

◆ m_DefaultBoundaryCropValue

template<class TOutputImage>
itk::SizeValueType rtk::ProjectionsReader< TOutputImage >::m_DefaultBoundaryCropValue { itk::NumericTraits<itk::SizeValueType>::max() }
private

Definition at line 329 of file rtkProjectionsReader.h.

◆ m_Direction

template<class TOutputImage>
OutputImageDirectionType rtk::ProjectionsReader< TOutputImage >::m_Direction
private

Definition at line 328 of file rtkProjectionsReader.h.

◆ m_ElektaRawFilter

template<class TOutputImage>
itk::ProcessObject::Pointer rtk::ProjectionsReader< TOutputImage >::m_ElektaRawFilter
private

Definition at line 301 of file rtkProjectionsReader.h.

◆ m_FileNames

template<class TOutputImage>
FileNamesContainer rtk::ProjectionsReader< TOutputImage >::m_FileNames
protected

A list of filenames to be processed.

Definition at line 279 of file rtkProjectionsReader.h.

Referenced by GetFileNames(), and SetFileNames().

◆ m_I0

template<class TOutputImage>
double rtk::ProjectionsReader< TOutputImage >::m_I0 { itk::NumericTraits<double>::NonpositiveMin() }
private

Definition at line 338 of file rtkProjectionsReader.h.

◆ m_I0EstimationFilter

template<class TOutputImage>
itk::ProcessObject::Pointer rtk::ProjectionsReader< TOutputImage >::m_I0EstimationFilter
private

Definition at line 306 of file rtkProjectionsReader.h.

◆ m_IDark

template<class TOutputImage>
double rtk::ProjectionsReader< TOutputImage >::m_IDark { 0. }
private

Definition at line 339 of file rtkProjectionsReader.h.

◆ m_ImageIO

template<class TOutputImage>
itk::ImageIOBase::Pointer rtk::ProjectionsReader< TOutputImage >::m_ImageIO { nullptr }
private

Image IO object which is stored to create the pipe only when required

Definition at line 321 of file rtkProjectionsReader.h.

◆ m_LowerBoundaryCropSize

template<class TOutputImage>
OutputImageSizeType rtk::ProjectionsReader< TOutputImage >::m_LowerBoundaryCropSize { m_DefaultBoundaryCropSize }
private

Definition at line 331 of file rtkProjectionsReader.h.

◆ m_MedianRadius

template<class TOutputImage>
MedianRadiusType rtk::ProjectionsReader< TOutputImage >::m_MedianRadius
private

Definition at line 334 of file rtkProjectionsReader.h.

◆ m_NonNegativityConstraintThreshold

template<class TOutputImage>
double rtk::ProjectionsReader< TOutputImage >::m_NonNegativityConstraintThreshold { itk::NumericTraits<double>::NonpositiveMin() }
private

Definition at line 337 of file rtkProjectionsReader.h.

◆ m_Origin

template<class TOutputImage>
OutputImagePointType rtk::ProjectionsReader< TOutputImage >::m_Origin
private

Copy of parameters for the mini-pipeline. Parameters are checked and propagated when required in the GenerateOutputInformation. Refer to the documentation of the corresponding filter for more information.

Definition at line 326 of file rtkProjectionsReader.h.

◆ m_RawCastFilter

template<class TOutputImage>
itk::ImageSource<TOutputImage>::Pointer rtk::ProjectionsReader< TOutputImage >::m_RawCastFilter
private

When m_ComputeLineIntegral is off, one just casts the value instead of doing a line integral.

Definition at line 314 of file rtkProjectionsReader.h.

◆ m_RawDataReader

template<class TOutputImage>
itk::ProcessObject::Pointer rtk::ProjectionsReader< TOutputImage >::m_RawDataReader
private

The projections reader which template depends on the scanner. It is not typed because we want to keep the data as on disk. The pointer is stored to reference the filter and avoid its destruction.

Definition at line 296 of file rtkProjectionsReader.h.

◆ m_RawToAttenuationFilter

template<class TOutputImage>
itk::ImageSource<TOutputImage>::Pointer rtk::ProjectionsReader< TOutputImage >::m_RawToAttenuationFilter
private

Conversion from raw to attenuation. Depends on the input image type, set to binning filter output by default.

Definition at line 310 of file rtkProjectionsReader.h.

◆ m_ScatterFilter

template<class TOutputImage>
itk::ProcessObject::Pointer rtk::ProjectionsReader< TOutputImage >::m_ScatterFilter
private

Definition at line 305 of file rtkProjectionsReader.h.

◆ m_ScatterToPrimaryRatio

template<class TOutputImage>
double rtk::ProjectionsReader< TOutputImage >::m_ScatterToPrimaryRatio { 0. }
private

Definition at line 336 of file rtkProjectionsReader.h.

◆ m_ShrinkFactors

template<class TOutputImage>
ShrinkFactorsType rtk::ProjectionsReader< TOutputImage >::m_ShrinkFactors
private

Definition at line 333 of file rtkProjectionsReader.h.

◆ m_Spacing

template<class TOutputImage>
OutputImageSpacingType rtk::ProjectionsReader< TOutputImage >::m_Spacing
private

Definition at line 327 of file rtkProjectionsReader.h.

◆ m_StreamingFilter

template<class TOutputImage>
StreamingType::Pointer rtk::ProjectionsReader< TOutputImage >::m_StreamingFilter
private

Definition at line 318 of file rtkProjectionsReader.h.

◆ m_UpperBoundaryCropSize

template<class TOutputImage>
OutputImageSizeType rtk::ProjectionsReader< TOutputImage >::m_UpperBoundaryCropSize { m_DefaultBoundaryCropSize }
private

Definition at line 332 of file rtkProjectionsReader.h.

◆ m_VectorComponent

template<class TOutputImage>
int rtk::ProjectionsReader< TOutputImage >::m_VectorComponent { -1 }
private

Definition at line 343 of file rtkProjectionsReader.h.

◆ m_VectorComponentSelectionFilter

template<class TOutputImage>
itk::ProcessObject::Pointer rtk::ProjectionsReader< TOutputImage >::m_VectorComponentSelectionFilter
private

Pointers for pre-processing filters that are created only when required.

Definition at line 299 of file rtkProjectionsReader.h.

◆ m_WaterPrecorrectionCoefficients

template<class TOutputImage>
WaterPrecorrectionVectorType rtk::ProjectionsReader< TOutputImage >::m_WaterPrecorrectionCoefficients
private

Definition at line 341 of file rtkProjectionsReader.h.

Referenced by SetWaterPrecorrectionCoefficients().

◆ m_WaterPrecorrectionFilter

template<class TOutputImage>
itk::ProcessObject::Pointer rtk::ProjectionsReader< TOutputImage >::m_WaterPrecorrectionFilter
private

Pointers for post-processing filters that are created only when required.

Definition at line 317 of file rtkProjectionsReader.h.

◆ OutputImageDimension

template<class TOutputImage>
unsigned int rtk::ProjectionsReader< TOutputImage >::OutputImageDimension = TOutputImage::ImageDimension
staticconstexpr

ImageDimension constant

Definition at line 163 of file rtkProjectionsReader.h.


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