#include <rtkProjectionStackToFourDImageFilter.h>
Implements part of the 4D reconstruction by conjugate gradient.
See the reference paper: "Cardiac C-arm computed tomography using a 3D + time ROI reconstruction method with spatial and temporal regularization" by Mory et al.
4D conjugate gradient reconstruction consists in iteratively minimizing the following cost function:
Sum_over_theta || R_theta S_theta f - p_theta ||_2^2
with
Computing the gradient of this cost function yields:
S_theta^T R_theta^T R_theta S_theta f - S_theta^T R_theta^T p_theta
where A^T means the adjoint of operator A.
ProjectionStackToFourDImageFilter implements S_theta^T R_theta^T.
Definition at line 105 of file rtkProjectionStackToFourDImageFilter.h.
Inheritance diagram for rtk::ProjectionStackToFourDImageFilter< VolumeSeriesType, ProjectionStackType, TFFTPrecision >:
Collaboration diagram for rtk::ProjectionStackToFourDImageFilter< VolumeSeriesType, ProjectionStackType, TFFTPrecision >:Public Member Functions | |
| virtual::itk::LightObject::Pointer | CreateAnother () const |
| ProjectionStackType::ConstPointer | GetInputProjectionStack () |
| VolumeSeriesType::ConstPointer | GetInputVolumeSeries () |
| virtual const char * | GetNameOfClass () const |
| virtual bool | GetUseCudaSources () |
| virtual bool | GetUseCudaSplat () |
| virtual itk::Array2D< float > | GetWeights () |
| void | SetBackProjectionFilter (BackProjectionFilterType *_arg) |
| virtual void | SetGeometry (const GeometryType *_arg) |
| void | SetInputProjectionStack (const ProjectionStackType *Projection) |
| void | SetInputVolumeSeries (const VolumeSeriesType *VolumeSeries) |
| virtual void | SetSignal (const std::vector< double > &signal) |
| virtual void | SetUseCudaSources (bool _arg) |
| virtual void | SetUseCudaSplat (bool _arg) |
| virtual void | SetWeights (itk::Array2D< float > _arg) |
Public Member Functions inherited from itk::ImageToImageFilter< VolumeSeriesType, VolumeSeriesType > | |
| 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 VolumeSeriesType *image) |
| virtual void | SetInput (unsigned int, const VolumeSeriesType *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 |
| ProcessObject::DataObjectPointer | MakeOutput (ProcessObject::DataObjectPointerArraySizeType idx) override |
| ProcessObject::DataObjectPointer | MakeOutput (const ProcessObject::DataObjectIdentifierType &) override |
Public Member Functions inherited from itk::ProcessObject | |
| virtual void | AbortGenerateDataOff () |
| virtual void | AbortGenerateDataOn () |
| virtual void | EnlargeOutputRequestedRegion (DataObject *output) |
| virtual const bool & | GetAbortGenerateData () const |
| DataObjectPointerArray | GetIndexedInputs () |
| DataObjectPointerArray | GetIndexedOutputs () |
| NameArray | GetInputNames () const |
| DataObjectPointerArray | GetInputs () |
| MultiThreaderBase * | GetMultiThreader () const |
| DataObjectPointerArraySizeType | GetNumberOfIndexedInputs () const |
| DataObjectPointerArraySizeType | GetNumberOfIndexedOutputs () const |
| DataObjectPointerArraySizeType | GetNumberOfInputs () const |
| DataObjectPointerArraySizeType | GetNumberOfOutputs () const |
| virtual DataObjectPointerArraySizeType | GetNumberOfValidRequiredInputs () const |
| NameArray | GetOutputNames () const |
| DataObjectPointerArray | GetOutputs () |
| virtual float | GetProgress () const |
| NameArray | GetRequiredInputNames () const |
| bool | HasInput (const DataObjectIdentifierType &key) const |
| bool | HasOutput (const DataObjectIdentifierType &key) const |
| void | IncrementProgress (float increment) |
| virtual void | PrepareOutputs () |
| virtual void | PropagateRequestedRegion (DataObject *output) |
| virtual void | ResetPipeline () |
| virtual void | SetAbortGenerateData (bool _arg) |
| void | SetMultiThreader (MultiThreaderBase *threader) |
| virtual void | SetNumberOfWorkUnitsFromThreadRatio (ThreadIdType ratio) |
| virtual void | Update () |
| virtual void | UpdateLargestPossibleRegion () |
| virtual void | UpdateOutputData (DataObject *output) |
| virtual void | UpdateOutputInformation () |
| void | UpdateProgress (float progress) |
| virtual void | SetReleaseDataFlag (bool val) |
| virtual bool | GetReleaseDataFlag () const |
| void | ReleaseDataFlagOn () |
| void | ReleaseDataFlagOff () |
| virtual void | SetReleaseDataBeforeUpdateFlag (bool _arg) |
| virtual const bool & | GetReleaseDataBeforeUpdateFlag () const |
| virtual void | ReleaseDataBeforeUpdateFlagOn () |
| virtual void | ReleaseDataBeforeUpdateFlagOff () |
| virtual void | SetNumberOfWorkUnits (ThreadIdType numberOfWorkUnits) |
| virtual ThreadIdType | GetNumberOfWorkUnits () const |
Public Member Functions inherited from itk::Object | |
| unsigned long | AddObserver (const EventObject &event, Command *cmd) const |
| unsigned long | AddObserver (const EventObject &event, std::function< void(const EventObject &)> function) const |
| virtual void | DebugOff () const |
| virtual void | DebugOn () const |
| Command * | GetCommand (unsigned long tag) |
| bool | GetDebug () const |
| MetaDataDictionary & | GetMetaDataDictionary () |
| const MetaDataDictionary & | GetMetaDataDictionary () const |
| virtual ModifiedTimeType | GetMTime () const |
| virtual const TimeStamp & | GetTimeStamp () const |
| bool | HasObserver (const EventObject &event) const |
| void | InvokeEvent (const EventObject &) |
| void | InvokeEvent (const EventObject &) const |
| virtual void | Modified () const |
| void | Register () const override |
| void | RemoveAllObservers () |
| void | RemoveObserver (unsigned long tag) const |
| void | SetDebug (bool debugFlag) const |
| void | SetReferenceCount (int) override |
| void | UnRegister () const noexcept override |
| void | SetMetaDataDictionary (const MetaDataDictionary &rhs) |
| void | SetMetaDataDictionary (MetaDataDictionary &&rrhs) |
| virtual void | SetObjectName (std::string _arg) |
| virtual const std::string & | GetObjectName () const |
Public Member Functions inherited from itk::LightObject | |
| Pointer | Clone () const |
| virtual void | Delete () |
| virtual int | GetReferenceCount () const |
| void | Print (std::ostream &os, Indent indent=0) const |
Static Public Member Functions | |
| static Pointer | New () |
Static Public Member Functions inherited from itk::ImageToImageFilter< VolumeSeriesType, VolumeSeriesType > | |
| 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 () |
Protected Attributes | |
| BackProjectionFilterType::Pointer | m_BackProjectionFilter |
| ConstantImageSourceType::Pointer | m_ConstantImageSource |
| ConstantVolumeSeriesSourceType::Pointer | m_ConstantVolumeSeriesSource |
| ExtractFilterType::Pointer | m_ExtractFilter |
| GeometryType::ConstPointer | m_Geometry |
| std::vector< double > | m_Signal |
| SplatFilterType::Pointer | m_SplatFilter |
| bool | m_UseCudaSources |
| bool | m_UseCudaSplat |
| itk::Array2D< float > | m_Weights |
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 | |
Static Public Attributes inherited from itk::ImageToImageFilter< VolumeSeriesType, VolumeSeriesType > | |
| 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 Types inherited from itk::ImageToImageFilter< VolumeSeriesType, VolumeSeriesType > | |
| 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) |
| using rtk::ProjectionStackToFourDImageFilter< VolumeSeriesType, ProjectionStackType, TFFTPrecision >::BackProjectionFilterType = rtk::BackProjectionImageFilter<VolumeType, VolumeType> |
Definition at line 137 of file rtkProjectionStackToFourDImageFilter.h.
| using rtk::ProjectionStackToFourDImageFilter< VolumeSeriesType, ProjectionStackType, TFFTPrecision >::ConstantImageSourceType = rtk::ConstantImageSource<VolumeType> |
Definition at line 139 of file rtkProjectionStackToFourDImageFilter.h.
| using rtk::ProjectionStackToFourDImageFilter< VolumeSeriesType, ProjectionStackType, TFFTPrecision >::ConstantVolumeSeriesSourceType = rtk::ConstantImageSource<VolumeSeriesType> |
Definition at line 140 of file rtkProjectionStackToFourDImageFilter.h.
| using rtk::ProjectionStackToFourDImageFilter< VolumeSeriesType, ProjectionStackType, TFFTPrecision >::CPUVolumeSeriesType |
SFINAE type alias, depending on whether a CUDA image is used.
Definition at line 146 of file rtkProjectionStackToFourDImageFilter.h.
| using rtk::ProjectionStackToFourDImageFilter< VolumeSeriesType, ProjectionStackType, TFFTPrecision >::CudaConstantVolumeSeriesSourceType = ConstantVolumeSeriesSourceType |
Definition at line 162 of file rtkProjectionStackToFourDImageFilter.h.
| using rtk::ProjectionStackToFourDImageFilter< VolumeSeriesType, ProjectionStackType, TFFTPrecision >::CudaConstantVolumeSourceType = ConstantImageSourceType |
Definition at line 161 of file rtkProjectionStackToFourDImageFilter.h.
| using rtk::ProjectionStackToFourDImageFilter< VolumeSeriesType, ProjectionStackType, TFFTPrecision >::CudaSplatImageFilterType = SplatFilterType |
Definition at line 160 of file rtkProjectionStackToFourDImageFilter.h.
| using rtk::ProjectionStackToFourDImageFilter< VolumeSeriesType, ProjectionStackType, TFFTPrecision >::ExtractFilterType = itk::ExtractImageFilter<ProjectionStackType, ProjectionStackType> |
Definition at line 138 of file rtkProjectionStackToFourDImageFilter.h.
| using rtk::ProjectionStackToFourDImageFilter< VolumeSeriesType, ProjectionStackType, TFFTPrecision >::GeometryType = rtk::ThreeDCircularProjectionGeometry |
Definition at line 143 of file rtkProjectionStackToFourDImageFilter.h.
| using rtk::ProjectionStackToFourDImageFilter< VolumeSeriesType, ProjectionStackType, TFFTPrecision >::Pointer = itk::SmartPointer<Self> |
Definition at line 114 of file rtkProjectionStackToFourDImageFilter.h.
| using rtk::ProjectionStackToFourDImageFilter< VolumeSeriesType, ProjectionStackType, TFFTPrecision >::Self = ProjectionStackToFourDImageFilter |
Standard class type alias.
Definition at line 112 of file rtkProjectionStackToFourDImageFilter.h.
| using rtk::ProjectionStackToFourDImageFilter< VolumeSeriesType, ProjectionStackType, TFFTPrecision >::SplatFilterType = rtk::SplatWithKnownWeightsImageFilter<VolumeSeriesType, VolumeType> |
Definition at line 141 of file rtkProjectionStackToFourDImageFilter.h.
| using rtk::ProjectionStackToFourDImageFilter< VolumeSeriesType, ProjectionStackType, TFFTPrecision >::Superclass = itk::ImageToImageFilter<VolumeSeriesType, VolumeSeriesType> |
Definition at line 113 of file rtkProjectionStackToFourDImageFilter.h.
| using rtk::ProjectionStackToFourDImageFilter< VolumeSeriesType, ProjectionStackType, TFFTPrecision >::VolumeType = ProjectionStackType |
Convenient type alias
Definition at line 117 of file rtkProjectionStackToFourDImageFilter.h.
|
protected |
Referenced by GetNameOfClass().
|
overrideprotecteddefault |
|
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.
|
overrideprotectedvirtual |
Does the real work.
Reimplemented from itk::ImageSource< TOutputImage >.
|
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.
Reimplemented from itk::ImageToImageFilter< VolumeSeriesType, VolumeSeriesType >.
|
overrideprotectedvirtual |
Generate the information describing the output data. The default implementation of this method will copy information from the input to the output. A filter may override this method if its output will have different information than its input. For instance, a filter that shrinks an image will need to provide an implementation for this method that changes the spacing of the pixels. Such filters should call their superclass' implementation of this method prior to changing the information values they need (i.e. GenerateOutputInformation() should call Superclass::GenerateOutputInformation() prior to changing the information.
Reimplemented from itk::ProcessObject.
| ProjectionStackType::ConstPointer rtk::ProjectionStackToFourDImageFilter< VolumeSeriesType, ProjectionStackType, TFFTPrecision >::GetInputProjectionStack | ( | ) |
| VolumeSeriesType::ConstPointer rtk::ProjectionStackToFourDImageFilter< VolumeSeriesType, ProjectionStackType, TFFTPrecision >::GetInputVolumeSeries | ( | ) |
|
virtual |
Run-time type information (and related methods).
Reimplemented from itk::ImageToImageFilter< VolumeSeriesType, VolumeSeriesType >.
References ProjectionStackToFourDImageFilter().
|
virtual |
|
virtual |
|
virtual |
Macros that take care of implementing the Get and Set methods for Weights
|
protected |
|
static |
Method for creation through the object factory.
| void rtk::ProjectionStackToFourDImageFilter< VolumeSeriesType, ProjectionStackType, TFFTPrecision >::SetBackProjectionFilter | ( | BackProjectionFilterType * | _arg | ) |
Pass the backprojection filter to SingleProjectionToFourDFilter
|
virtual |
Pass the geometry to SingleProjectionToFourDFilter
| void rtk::ProjectionStackToFourDImageFilter< VolumeSeriesType, ProjectionStackType, TFFTPrecision >::SetInputProjectionStack | ( | const ProjectionStackType * | Projection | ) |
Set/Get the stack of projections
| void rtk::ProjectionStackToFourDImageFilter< VolumeSeriesType, ProjectionStackType, TFFTPrecision >::SetInputVolumeSeries | ( | const VolumeSeriesType * | VolumeSeries | ) |
Set/Get the 4D image to be updated.
|
virtual |
Store the phase signal in a member variable
|
virtual |
|
virtual |
Use CUDA splat / sources
|
virtual |
|
overrideprotectedvirtual |
Checks that inputs are correctly set.
Reimplemented from itk::ProcessObject.
|
protected |
Definition at line 209 of file rtkProjectionStackToFourDImageFilter.h.
|
protected |
Definition at line 211 of file rtkProjectionStackToFourDImageFilter.h.
|
protected |
Definition at line 212 of file rtkProjectionStackToFourDImageFilter.h.
|
protected |
Definition at line 210 of file rtkProjectionStackToFourDImageFilter.h.
|
protected |
Definition at line 216 of file rtkProjectionStackToFourDImageFilter.h.
|
protected |
Definition at line 219 of file rtkProjectionStackToFourDImageFilter.h.
|
protected |
Member pointers to the filters used internally (for convenience)
Definition at line 208 of file rtkProjectionStackToFourDImageFilter.h.
|
protected |
Definition at line 218 of file rtkProjectionStackToFourDImageFilter.h.
|
protected |
Definition at line 217 of file rtkProjectionStackToFourDImageFilter.h.
|
protected |
Other member variables
Definition at line 215 of file rtkProjectionStackToFourDImageFilter.h.