template<typename TOutputImage, typename TSingleComponentImage = TOutputImage, typename TWeightsImage = TOutputImage>
class rtk::ConjugateGradientConeBeamReconstructionFilter< TOutputImage, TSingleComponentImage, TWeightsImage >
Implements ConjugateGradient.
This filter implements the ConjugateGradient method. ConjugateGradient attempts to find the f that minimizes (1/2).|| sqrt(D) (Rf -p) ||_2^2 + (1/2).gamma.|| grad f ||_2^2 + (1/2).Tikhonov || f ||_2^2 with R the forward projection operator, p the measured projections, and D the displaced detector weighting operator.
With gamma=0, this it is similar to the ART and SART methods. The difference lies in the algorithm employed to minimize this cost function. ART uses the Kaczmarz method (projects and back projects one ray at a time), SART the block-Kaczmarz method (projects and back projects one projection at a time), and ConjugateGradient a conjugate gradient method (projects and back projects all projections together).
With gamma > 0, a regularization is applied.
- Test
- rtkconjugategradientreconstructiontest.cxx
- Author
- Cyril Mory
Definition at line 110 of file rtkConjugateGradientConeBeamReconstructionFilter.h.
|
| using | BackProjectionFilterType = BackProjectionImageFilter<TOutputImage, TOutputImage> |
| |
| using | BackProjectionType = typename Superclass::BackProjectionType |
| |
| using | CGOperatorFilterType |
| |
| using | ConjugateGradientFilterPointer = typename ConjugateGradientFilterType::Pointer |
| |
| using | ConjugateGradientFilterType = ConjugateGradientImageFilter<TOutputImage> |
| |
| using | ConstantImageSourceType = ConstantImageSource<TOutputImage> |
| |
| using | ConstantWeightSourceType = ConstantImageSource<TWeightsImage> |
| |
| using | CPUOutputImageType = typename itk::Image<typename TOutputImage::PixelType, TOutputImage::ImageDimension> |
| |
| using | DisplacedDetectorFilterType = DisplacedDetectorImageFilter<TWeightsImage> |
| |
| using | DivideFilterType = itk::DivideOrZeroOutImageFilter<TOutputImage> |
| |
| using | ForwardProjectionFilterPointer = typename ForwardProjectionFilterType::Pointer |
| |
| using | ForwardProjectionFilterType = ForwardProjectionImageFilter<TOutputImage, TOutputImage> |
| |
| using | ForwardProjectionType = typename Superclass::ForwardProjectionType |
| |
| using | MatrixVectorMultiplyFilterType = BlockDiagonalMatrixVectorMultiplyImageFilter<TOutputImage, TWeightsImage> |
| |
| using | MultiplyFilterType = itk::MultiplyImageFilter<TOutputImage, TSingleComponentImage, TOutputImage> |
| |
| using | MultiplyWithWeightsFilterType |
| |
| using | OutputImagePointer = typename TOutputImage::Pointer |
| |
| using | PlainMultiplyFilterType = itk::MultiplyImageFilter<TOutputImage, TOutputImage, TOutputImage> |
| |
| using | Pointer = itk::SmartPointer<Self> |
| |
| using | Self = ConjugateGradientConeBeamReconstructionFilter |
| |
| using | StatisticsFilterType = itk::StatisticsImageFilter<TSingleComponentImage> |
| |
| using | StatisticsImageFilterType = itk::StatisticsImageFilter<TOutputImage> |
| |
| using | Superclass = IterativeConeBeamReconstructionFilter<TOutputImage> |
| |
| using | BackProjectionFilterType = rtk::BackProjectionImageFilter<ProjectionStackType, VolumeType> |
| |
| using | BackProjectionPointerType = typename BackProjectionFilterType::Pointer |
| |
| using | BackProjectionType |
| |
| using | ConstPointer = itk::SmartPointer<const Self> |
| |
| using | ForwardProjectionFilterType = rtk::ForwardProjectionImageFilter<VolumeType, ProjectionStackType> |
| |
| using | ForwardProjectionPointerType = typename ForwardProjectionFilterType::Pointer |
| |
| using | ForwardProjectionType |
| |
| using | Pointer = itk::SmartPointer<Self> |
| |
| using | Self = IterativeConeBeamReconstructionFilter |
| |
| using | Superclass = itk::ImageToImageFilter<TOutputImage, TOutputImage> |
| |
| using | TClipImageType = itk::Image<double, VolumeType::ImageDimension> |
| |
| using | VolumeType = ProjectionStackType |
| |
| 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 |
| |
| 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 |
| |
| 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 |
| |
| using | ConstPointer = SmartPointer<const Self> |
| |
| using | Pointer = SmartPointer<Self> |
| |
| using | Self = Object |
| |
| using | Superclass = LightObject |
| |
| using | ConstPointer = SmartPointer<const Self> |
| |
| using | Pointer = SmartPointer<Self> |
| |
| using | Self = LightObject |
| |
|
| | ConjugateGradientConeBeamReconstructionFilter () |
| |
| void | GenerateData () override |
| |
| void | GenerateInputRequestedRegion () override |
| |
| void | GenerateOutputInformation () override |
| |
| TOutputImage::ConstPointer | GetInputProjectionStack () |
| |
| TOutputImage::ConstPointer | GetInputVolume () |
| |
| TWeightsImage::ConstPointer | GetInputWeights () |
| |
| TSingleComponentImage::ConstPointer | GetLocalRegularizationWeights () |
| |
| template<typename ImageType, typename IterativeConeBeamReconstructionFilter< TOutputImage >::template EnableCudaScalarAndVectorType< ImageType > * = nullptr> |
| ConjugateGradientFilterPointer | InstantiateCudaConjugateGradientImageFilter () |
| |
| template<typename ImageType, typename IterativeConeBeamReconstructionFilter< TOutputImage >::template DisableCudaScalarAndVectorType< ImageType > * = nullptr> |
| ConjugateGradientFilterPointer | InstantiateCudaConjugateGradientImageFilter () |
| |
| void | ReportProgress (itk::Object *, const itk::EventObject &) |
| |
| void | VerifyInputInformation () const override |
| |
| void | VerifyPreconditions () const override |
| |
| | ~ConjugateGradientConeBeamReconstructionFilter () override=default |
| |
| virtual BackProjectionPointerType | InstantiateBackProjectionFilter (int bptype) |
| |
| template<typename ImageType, EnableCudaScalarAndVectorType< ImageType > * = nullptr> |
| BackProjectionPointerType | InstantiateCudaBackProjection () |
| |
| template<typename ImageType, DisableCudaScalarAndVectorType< ImageType > * = nullptr> |
| BackProjectionPointerType | InstantiateCudaBackProjection () |
| |
| template<typename ImageType, EnableCudaScalarAndVectorType< ImageType > * = nullptr> |
| ForwardProjectionPointerType | InstantiateCudaForwardProjection () |
| |
| template<typename ImageType, DisableCudaScalarAndVectorType< ImageType > * = nullptr> |
| ForwardProjectionPointerType | InstantiateCudaForwardProjection () |
| |
| template<typename ImageType, EnableCudaScalarType< ImageType > * = nullptr> |
| BackProjectionPointerType | InstantiateCudaRayCastBackProjection () |
| |
| template<typename ImageType, DisableCudaScalarType< ImageType > * = nullptr> |
| BackProjectionPointerType | InstantiateCudaRayCastBackProjection () |
| |
| template<typename ImageType, EnableCudaScalarType< ImageType > * = nullptr> |
| BackProjectionPointerType | InstantiateCudaWarpBackProjection () |
| |
| template<typename ImageType, DisableCudaScalarType< ImageType > * = nullptr> |
| BackProjectionPointerType | InstantiateCudaWarpBackProjection () |
| |
| template<typename ImageType, EnableCudaScalarType< ImageType > * = nullptr> |
| ForwardProjectionPointerType | InstantiateCudaWarpForwardProjection () |
| |
| template<typename ImageType, DisableCudaScalarType< ImageType > * = nullptr> |
| ForwardProjectionPointerType | InstantiateCudaWarpForwardProjection () |
| |
| template<typename ImageType, EnableCudaScalarType< ImageType > * = nullptr> |
| BackProjectionPointerType | InstantiateCudaZengBackProjection () |
| |
| template<typename ImageType, DisableCudaScalarType< ImageType > * = nullptr> |
| BackProjectionPointerType | InstantiateCudaZengBackProjection () |
| |
| template<typename ImageType, EnableCudaScalarType< ImageType > * = nullptr> |
| ForwardProjectionPointerType | InstantiateCudaZengForwardProjection () |
| |
| template<typename ImageType, DisableCudaScalarType< ImageType > * = nullptr> |
| ForwardProjectionPointerType | InstantiateCudaZengForwardProjection () |
| |
| virtual ForwardProjectionPointerType | InstantiateForwardProjectionFilter (int fwtype) |
| |
| template<typename ImageType, EnableVectorType< ImageType > * = nullptr> |
| BackProjectionPointerType | InstantiateJosephBackAttenuatedProjection () |
| |
| template<typename ImageType, DisableVectorType< ImageType > * = nullptr> |
| BackProjectionPointerType | InstantiateJosephBackAttenuatedProjection () |
| |
| template<typename ImageType, EnableVectorType< ImageType > * = nullptr> |
| ForwardProjectionPointerType | InstantiateJosephForwardAttenuatedProjection () |
| |
| template<typename ImageType, DisableVectorType< ImageType > * = nullptr> |
| ForwardProjectionPointerType | InstantiateJosephForwardAttenuatedProjection () |
| |
| template<typename ImageType, EnableVectorType< ImageType > * = nullptr> |
| BackProjectionPointerType | InstantiateZengBackProjection () |
| |
| template<typename ImageType, DisableVectorType< ImageType > * = nullptr> |
| BackProjectionPointerType | InstantiateZengBackProjection () |
| |
| template<typename ImageType, EnableVectorType< ImageType > * = nullptr> |
| ForwardProjectionPointerType | InstantiateZengForwardProjection () |
| |
| template<typename ImageType, DisableVectorType< ImageType > * = nullptr> |
| ForwardProjectionPointerType | InstantiateZengForwardProjection () |
| |
| | IterativeConeBeamReconstructionFilter () |
| |
| | ~IterativeConeBeamReconstructionFilter () override=default |
| |
| 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) |
| |
| void | GenerateInputRequestedRegion () override |
| |
| void | GenerateInputRequestedRegion () override |
| |
| | ImageToImageFilter () |
| |
| | ImageToImageFilter () |
| |
| void | PrintSelf (std::ostream &os, Indent indent) const override |
| |
| void | PrintSelf (std::ostream &os, Indent indent) const override |
| |
| void | VerifyInputInformation () const override |
| |
| void | VerifyInputInformation () const override |
| |
| | ~ImageToImageFilter () override=default |
| |
| | ~ImageToImageFilter () override=default |
| |
| 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 ®ion, ThreadIdType threadId) |
| |
| virtual void | DynamicThreadedGenerateData (const OutputImageRegionType &outputRegionForThread) |
| |
| virtual bool | GetDynamicMultiThreading () const |
| |
| virtual void | SetDynamicMultiThreading (bool _arg) |
| |
| virtual void | DynamicMultiThreadingOn () |
| |
| virtual void | DynamicMultiThreadingOff () |
| |
| 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 | 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 &) |
| |
| | ~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) |
| |
| | Object () |
| |
| bool | PrintObservers (std::ostream &os, Indent indent) const |
| |
| virtual void | SetTimeStamp (const TimeStamp &timeStamp) |
| |
| | ~Object () override |
| |
| 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 () |
| |