#include <NoImageAcquisition.h>
|
| NoImageAcquisition () |
|
virtual | ~NoImageAcquisition () |
|
nifti_image * | SimulateImageAcquisition (nifti_image *imgInFullImgSpace, nifti_image *imgInAcquisitionSpace, unsigned int dynamicImageTimePoint) |
|
void | CalculateAdjoint (nifti_image *imgInFullImgSpace, nifti_image *imgInAcquisitionSpace, unsigned int dynamicImageTimePoint) |
|
nifti_image * | AllocateMinimumSizeImgInFullImgSpace (nifti_image *imgInFullImgSpace, nifti_image *imgInAcquisitionSpace, unsigned int dynamicImageTimePoint) |
|
| 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 () |
|
◆ PrecisionType
◆ NoImageAcquisition()
NoImageAcquisition::NoImageAcquisition |
( |
| ) |
|
◆ ~NoImageAcquisition()
NoImageAcquisition::~NoImageAcquisition |
( |
| ) |
|
|
virtual |
◆ AllocateImageAfterAdjoint()
void NoImageAcquisition::AllocateImageAfterAdjoint |
( |
| ) |
|
|
protectedvirtual |
Note: This implementation is different to the reference implementaiton in reg_resp which adjusted the image size of the adjoint regardless of which acquisition simulation was selected. This could lead to a segmentation fault in some specific cases. As a result, here the image size is not adjusted for the no-image-acquisition class.
Implements ImageAcquisition.
◆ AllocateMinimumSizeImgInFullImgSpace()
nifti_image * NoImageAcquisition::AllocateMinimumSizeImgInFullImgSpace |
( |
nifti_image * |
imgInFullImgSpace, |
|
|
nifti_image * |
imgInAcquisitionSpace, |
|
|
unsigned int |
dynamicImageTimePoint |
|
) |
| |
|
virtual |
Implementation of allocating the minimum-sized image in full image space. Here no image acquisition is simulated, hence the allocated image has to have the size of the image in acquisition space.
- Parameters
-
imgInFullImgSpace | The full sized image |
imgInAcquisitionSpace | The image in acquisition space
|
dynamicImageTimePoint | Time point of the dynamic image (not used). |
- Returns
- An empty image with the size of
imgInAcquisitionSpace
Implements ImageAcquisition.
◆ CalculateAdjoint()
void NoImageAcquisition::CalculateAdjoint |
( |
nifti_image * |
imgInFullImgSpace, |
|
|
nifti_image * |
imgInAcquisitionSpace, |
|
|
unsigned int |
dynamicImageTimePoint |
|
) |
| |
|
virtual |
To achieve the required behaviour when not simulating any image acquisition, copy current image in acquisition space into the image after applying the adjoint. Image after adjoint still needs to be accessed via the corresponding getter function.
- Parameters
-
imgInFullImgSpace | The full sized image |
imgInAcquisitionSpace | The image in acquisition space
|
dynamicImageTimePoint | Time point of the dynamic image (not used here). |
Implements ImageAcquisition.
◆ SimulateImageAcquisition()
nifti_image * NoImageAcquisition::SimulateImageAcquisition |
( |
nifti_image * |
imgInFullImgSpace, |
|
|
nifti_image * |
imgInAcquisitionSpace, |
|
|
unsigned int |
dynamicImageTimePoint |
|
) |
| |
|
virtual |
Implementation of the image acquisition simulation. Since no image acqusition is simulated, the image in full space is simply returned. This needs to be considered when deleting images, check for equality.
- Parameters
-
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. |
Implements ImageAcquisition.
The documentation for this class was generated from the following files: