SuPReMo
0.1.1
|
#include <ImageAcquisition.h>
Public Types | |
typedef float | PrecisionType |
Public Member Functions | |
ImageAcquisition () | |
virtual | ~ImageAcquisition () |
virtual nifti_image * | SimulateImageAcquisition (nifti_image *imgInFullImgSpace, nifti_image *imgInAcquisitionSpace, unsigned int dynamicImageTimePoint)=0 |
virtual void | CalculateAdjoint (nifti_image *imgInFullImgSpace, nifti_image *imgInAcquisitionSpace, unsigned int dynamicImageTimePoint)=0 |
virtual nifti_image * | AllocateMinimumSizeImgInFullImgSpace (nifti_image *imgInFullImgSpace, nifti_image *imgInAcquisitionSpace, unsigned int dynamicImageTimePoint)=0 |
virtual nifti_image * | GetImageAfterAdjoint () |
virtual nifti_image * | GetWeightsImageAfterAdjoint () |
Protected Member Functions | |
virtual void | AllocateImageAfterAdjoint ()=0 |
virtual void | AllocateWeightsImageAfterAdjoint () |
virtual void | ClearImageAfterAdjoint () |
virtual void | ClearWeightsImageAfterAdjoint () |
Protected Attributes | |
nifti_image * | imageAfterAdjoint |
nifti_image * | weightsImageAfterAdjoint |
nifti_image * | curImageInAcquisitionSpace |
Current image in acquisition space. More... | |
nifti_image * | curImageInFullImgSpace |
Current image in full image space. More... | |
unsigned int | curDynamicImageTimePoint |
Current dynamic image time point. More... | |
Base class defining the image acquisition interface.
typedef float ImageAcquisition::PrecisionType |
ImageAcquisition::ImageAcquisition | ( | ) |
Constructor
|
virtual |
Destructor
|
protectedpure virtual |
Implemented in LowResolutionImageAcquisition, and NoImageAcquisition.
|
pure virtual |
Allocate an empty image in full image space that has the minimum required size to simulate the image acquisition. This allows, for instance, efficient warping of the image in full image space without the need to warp the full sized image. This has to be implemented by a derived class. This was usually used as the "warped" image in reg-resp.
imgInFullImgSpace | The full sized image |
imgInAcquisitionSpace | The image in acquisition space |
dynamicImageTimePoint | Time point of the dynamic image (if used). |
Implemented in LowResolutionImageAcquisition, and NoImageAcquisition.
|
protectedvirtual |
|
pure virtual |
Calculate the adjoint of the image acquisition - also known as the back-projection for some imaging modalities. Needs to be implementd by derived class according to the image acquisition method. The adjoint image will be allocated internally and kept as a member variable. To access it, use GetImageAfterAdjoint. This image will be deleted by this object.
imgInFullImgSpace | Pointer to nifti image holding the image in full image space. |
imgInAcquisitionSpace | Pointer to the nifti image in acquisition space. |
dynamicImageTimePoint | The dynamic image time point in case time-dependent meta data needs to be used internally. |
Implemented in LowResolutionImageAcquisition, and NoImageAcquisition.
|
protectedvirtual |
|
protectedvirtual |
|
virtual |
Get a pointer to the image after adjoint (after the back-projection)
|
virtual |
Get a copy to the weights image after adjoint
|
pure virtual |
Simulate the image acquisition also known as a forward-projection depending on the imaging modality. Needs to be implemented by derived class depending on the image acquisition method. The returned image should be allocated by this function and deleted after use externally(see return
).
imgInFullImgSpace | Pointer to nifti image holding the image in full image space. |
imgInAcquisitionSpace | Pointer to the nifti image in acquisition space. |
dynamicImageTimePoint | The dynamic image time point in case time-dependent meta data needs to be used internally. |
nifti_image_free()
. Implemented in LowResolutionImageAcquisition, and NoImageAcquisition.
|
protected |
Current dynamic image time point.
|
protected |
Current image in acquisition space.
|
protected |
Current image in full image space.
|
protected |
|
protected |