![]() |
SuPReMo
0.1.1
|
#include <MoCoRecon.h>

Public Types | |
| typedef float | PrecisionType |
| typedef std::vector< std::vector< PrecisionType > > | SurrogateSignalType |
Public Member Functions | |
| MoCoRecon () | |
| virtual | ~MoCoRecon () |
| void | SetCorrespondenceModel (const std::shared_ptr< CorrespondenceModel > &correspondenceModelIn) |
| void | SetImageAcquisition (const std::shared_ptr< ImageAcquisition > &imageAcquisitionIn) |
| void | SetSurrogateSignals (const SurrogateSignalType &surrSignalsIn) |
| void | SetDynamicImages (const std::vector< nifti_image * > &dynamicImagesIn) |
| void | SetReconstructionGeometryImage (nifti_image *reconstructionGeometryImageIn) |
| virtual void | Update ()=0 |
| nifti_image * | GetReconstructedImage () |
| bool | GetRepeatedUpdateChangesMCR () |
| void | CopyReconstructedImageContentsToImage (nifti_image *destinationImage) |
Protected Member Functions | |
| void | AllocateReconstructedImage () |
| void | ClearReconstructedImage () |
Protected Attributes | |
| std::shared_ptr< CorrespondenceModel > | correspondenceModel |
| Pointer to the correspondence model. More... | |
| std::shared_ptr< ImageAcquisition > | imageAcquisition |
| Pointer to the image acquisition opbject. More... | |
| SurrogateSignalType | surrogateSignals |
| Vector holding the surrogate signals. More... | |
| std::vector< nifti_image * > | dynamicImages |
| Vector holding the dynamic images. More... | |
| size_t | numberOfDynamicImages |
| The number of the dynamic images - will be derived from the vector dynamicImages. More... | |
| nifti_image * | reconstructionGeometryImage |
| Pointer to the image that defines the reconstruction geometry, think of it as a reference image. More... | |
| nifti_image * | reconstructedImage |
| Pointer to the reconstructed image. More... | |
| PrecisionType | paddingValue |
| The padding value used if no data available to reconstruct an image intensity value. More... | |
| bool | repeatedUpdateChangesMCRImage |
| Indicates wether a repeated call of the update function cahgnes the MCR result. More... | |
Baseclass defining the interface and some default implementations for the motion-compensated image reconstruction.
| typedef float MoCoRecon::PrecisionType |
| typedef std::vector< std::vector<PrecisionType> > MoCoRecon::SurrogateSignalType |
| MoCoRecon::MoCoRecon | ( | ) |
Constructor
|
virtual |
Destructor
|
protected |
Allocate memory to hold the reconstructed image
|
protected |
Clear the memory reserved for the reconstructed image and set the corresponding pointer to null.
| void MoCoRecon::CopyReconstructedImageContentsToImage | ( | nifti_image * | destinationImage | ) |
Copy the reconstructed image to the destination image.
| destinationImage | Nifti-image into which the reconstructed image will be written. Has to have the same size as the reconstruction geometry image. |
| nifti_image * MoCoRecon::GetReconstructedImage | ( | ) |
Get a pointer to the reconstructed image. Note, the destructor of this class will clean up the image.
|
inline |
Returns a boolean indicating if a repeated call of the Update() method changes the result - even if the CorrespondenceModel, or the dynamic images did not change. This behaviour has to be determined by a derived class by setting repeatedUpdateChangesMCRImage accordingly.
| void MoCoRecon::SetCorrespondenceModel | ( | const std::shared_ptr< CorrespondenceModel > & | correspondenceModelIn | ) |
Set the correspondence model.
| correspondenceModelIn | The input correspondence model |
| void MoCoRecon::SetDynamicImages | ( | const std::vector< nifti_image * > & | dynamicImagesIn | ) |
Define the dynamic images
| dynamicImagesIn | Vector holding the pointers to the dynamic images. |
| void MoCoRecon::SetImageAcquisition | ( | const std::shared_ptr< ImageAcquisition > & | imageAcquisitionIn | ) |
Set the image acquisition object.
| imageAcquisitionIn | The object providing the image-acquisition functionality. |
| void MoCoRecon::SetReconstructionGeometryImage | ( | nifti_image * | reconstructionGeometryImageIn | ) |
Define the reconstruction geometry.
| reconstructionGeometryImageIn | Pointer to the image that defines the geometry of the reconstructed image. |
| void MoCoRecon::SetSurrogateSignals | ( | const SurrogateSignalType & | surrSignalsIn | ) |
Set the surrogate signal. Has to be given, such that the correspondence model can be used to generate the required transformations.
|
pure virtual |
Abstract base class to actually calculate the motion-compensated reconstruction. Has to be implemented by a specific method.
Implemented in MoCoReconSuperResolutionIBP, and MoCoReconWeightedAverage.
|
protected |
Pointer to the correspondence model.
|
protected |
Vector holding the dynamic images.
|
protected |
Pointer to the image acquisition opbject.
|
protected |
The number of the dynamic images - will be derived from the vector dynamicImages.
|
protected |
The padding value used if no data available to reconstruct an image intensity value.
|
protected |
Pointer to the reconstructed image.
|
protected |
Pointer to the image that defines the reconstruction geometry, think of it as a reference image.
|
protected |
Indicates wether a repeated call of the update function cahgnes the MCR result.
|
protected |
Vector holding the surrogate signals.