![]() |
CASToR
3.2
Tomographic Reconstruction (PET/SPECT/CT)
|
This class holds all the matrices in the image domain that can be used in the algorithm: image, forward-image, correction, additional image, sensitivity image. More...
#include <oImageSpace.hh>
Public Member Functions | |
oImageSpace () | |
oImageSpace constructor. Initialize the member variables to their default values. More... | |
~oImageSpace () | |
oImageSpace destructor. More... | |
void | InstantiateImage () |
Allocate memory for the main image matrices. More... | |
void | DeallocateImage () |
Free memory for the main image matrices. More... | |
void | InstantiateForwardImage () |
Allocate memory for the forward image matrices. More... | |
void | DeallocateForwardImage () |
Free memory for the forward image matrices. More... | |
void | InstantiateBackwardImageFromDynamicBasis (int a_nbBackwardImages) |
void | DeallocateBackwardImageFromDynamicBasis () |
Free memory for the backward image matrices. More... | |
void | InstantiateBackwardImageFromDynamicBins () |
Allocate memory for the backward image matrices and initialize them. More... | |
void | DeallocateBackwardImageFromDynamicBins () |
Free memory of the backward image matrices. More... | |
void | InstantiateSensitivityImage (const string &a_pathToSensitivityImage) |
void | DeallocateSensitivityImage () |
Free memory for the sensitivity image matrices. More... | |
FLTNB * | AllocateMiscellaneousImage () |
Allocate a new miscellaneous image on m2p_miscellaneousImages and return the pointer to this image. More... | |
void | DeallocateMiscellaneousImage () |
Deallocate all allocated miscellaneous images. More... | |
int | InitMultiModalImage (const vector< string > &a_pathToMultiModalImage) |
void | DeallocateMultiModalImage () |
Free memory for the multimodal image. More... | |
int | InitMaskImage (const string &a_pathToImage) |
void | DeallocateMaskImage () |
Free memory for the mask image. More... | |
void | InstantiateOutputImage () |
Instanciate Image matrices dedicated to output writing on disk. More... | |
void | InstantiateRefImagesForDeformation () |
Allocate memory for the buffer sensitivity image required for image-based deformation. This function is called from the Deformation Manager. More... | |
void | InstantiateVisitedVoxelsImage () |
Memory allocation and initialization for the image matrix containing binary information regarding which 3D voxels have been visited during the projection steps. More... | |
void | DeallocateRefImagesForDeformation () |
Free memory for the buffer sensitivity image required for image-based deformation. This function is called from the Deformation Manager. More... | |
void | DeallocateOutputImage () |
Free memory for the Image matrices dedicated to output writing on disk. More... | |
void | DeallocateVisitedVoxelsImage () |
Free memory for the image matrix containing binary information regarding which 3D voxels have been visited during the projection steps. More... | |
int | InitImage (const string &a_pathToInitialImage, FLTNB a_value) |
void | InitBackwardImage () |
Initialize each voxel of the backward images to 0, also for sensitivity if not loaded (estimated on the fly). More... | |
int | InitSensitivityImage (const string &a_pathToSensitivityImage) |
void | InitRefImagesForDeformation () |
int | LoadInitialImage (const string &a_pathToImage) |
void | ComputeOutputImage () |
int | ApplyOutputFOVMasking () |
Mask the outside of the transaxial FOV based on the m_fovOutPercent. More... | |
int | ApplyOutputMaskImage () |
Mask the outside of the provided input mask image. More... | |
int | ApplyMaskToSensitivity () |
Apply the mask to the sensitivity image (only for the first thread, the image must be reduced beforehand) More... | |
int | ApplyOutputFlip () |
Just flip the output image. More... | |
int | SaveOutputImage (int a_iteration, int a_subset=-1) |
int | SaveOutputBasisCoefficientImage (int a_iteration, int a_subset=-1) |
void | SaveDebugImage (const string &a_name) |
int | SaveSensitivityImage (const string &a_pathToSensitivityImage) |
void | PrepareForwardImage () |
Copy current image matrix in the forward-image buffer matrix. More... | |
void | Reduce () |
Merge parallel results into the matrix of the backward image matrix of the first thread. Also for MPI. More... | |
void | CleanNeverVisitedVoxels () |
Based on the visitedVoxelsImage, clean the never visited voxels in the image. This function must be called at the end of each iteration. More... | |
void | LMS_InstantiateImage () |
Allocate memory for the main image matrices (for list-mode sensitivity generation) More... | |
void | LMS_InstantiateForwardImage () |
Allocate memory for the forward image matrices (for list-mode sensitivity generation) More... | |
void | LMS_InstantiateSensitivityImage () |
Allocate memory for the sensitivity image matrices (for list-mode sensitivity generation) More... | |
void | LMS_DeallocateImage () |
Free memory for the main image matrices (for list-mode sensitivity generation) More... | |
void | LMS_DeallocateForwardImage () |
Free memory for the forward image matrices (for list-mode sensitivity generation) More... | |
void | LMS_DeallocateSensitivityImage () |
Free memory for the sensitivity image matrices (for list-mode sensitivity generation) More... | |
void | LMS_DeallocateAttenuationImage () |
Free memory for the Attenuation image matrices (for analytical projection or list-mode sensitivity generation) More... | |
int | InitAttenuationImage (const string &a_pathToAtnImage) |
void | LMS_CopyAtnToImage () |
Copy the attenuation image contained in the 'm2p_attenuation' matrix inside the m2p_image matrix. More... | |
void | LMS_CopyAtnToForwardImage (bool a_use1stMotion, bool a_use2ndMotion) |
void | LMS_CopyBackwardToSensitivity () |
void | LMS_PrepareForwardImage () |
Copy current image in forward-image buffer (for list-mode sensitivity generation) More... | |
void | ReduceBackwardImage (int a_imageIndex, int a_timeIndex, int a_respIndex, int a_cardIndex) |
int | ApplyMaskToBackwardImage (int a_imageIndex, int a_timeIndex, int a_respIndex, int a_cardIndex) |
int | LMS_SaveSensitivityImage (const string &a_pathToSensitivityImage, oDeformationManager *ap_DeformationManager) |
void | PROJ_InstantiateProjectionImage (int a_nbProjs, int a_nbPixels) |
void | PROJ_DeallocateProjectionImage (int a_nbProjs) |
int | PROJ_InitImage (const string &a_pathToInitialImage) |
int | PROJ_LoadInitialImage (const string &a_pathToImage) |
int | PROJ_SaveProjectionImage () |
Save an image of the projected data (for analytic projection) More... | |
void | SetVerbose (int a_verboseLevel) |
void | SetImageDimensionsAndQuantification (oImageDimensionsAndQuantification *ap_ImageDimensionsAndQuantification) |
int | GetNbBackwardImages () |
bool | IsLoadedSensitivity () |
bool | IsLoadedMultiModal () |
bool | IsLoadedMask () |
bool | Checked () |
Simply check that the image dimensions and verbosity has been set. More... | |
int | GetNbMiscellaneousImages () |
oImageSpace () | |
oImageSpace constructor. Initialize the member variables to their default values. More... | |
~oImageSpace () | |
oImageSpace destructor. More... | |
void | InstantiateImage () |
void | DeallocateImage () |
void | InstantiateForwardImage () |
void | DeallocateForwardImage () |
void | InstantiateBackwardImageFromDynamicBasis (int a_nbBackwardImages) |
void | DeallocateBackwardImageFromDynamicBasis () |
void | InstantiateBackwardImageFromDynamicBins () |
void | DeallocateBackwardImageFromDynamicBins () |
void | InstantiateSensitivityImage (const string &a_pathToSensitivityImage) |
void | DeallocateSensitivityImage () |
FLTNB * | AllocateMiscellaneousImage () |
void | DeallocateMiscellaneousImage () |
int | InitMultiModalImage (const vector< string > &a_pathToMultiModalImage) |
void | DeallocateMultiModalImage () |
int | InitMaskImage (const string &a_pathToImage) |
void | DeallocateMaskImage () |
void | InstantiateOutputImage () |
void | InstantiateRefImagesForDeformation () |
void | InstantiateVisitedVoxelsImage () |
void | DeallocateRefImagesForDeformation () |
void | DeallocateOutputImage () |
void | DeallocateVisitedVoxelsImage () |
int | InitImage (const string &a_pathToInitialImage, FLTNB a_value) |
void | InitBackwardImage () |
int | InitSensitivityImage (const string &a_pathToSensitivityImage) |
void | InitRefImagesForDeformation () |
int | LoadInitialImage (const string &a_pathToImage) |
void | ComputeOutputImage () |
int | ApplyOutputFOVMasking () |
int | ApplyOutputMaskImage () |
int | ApplyMaskToSensitivity () |
int | ApplyOutputFlip () |
int | SaveOutputImage (int a_iteration, int a_subset=-1) |
int | SaveOutputBasisCoefficientImage (int a_iteration, int a_subset=-1) |
void | SaveDebugImage (const string &a_name) |
int | SaveSensitivityImage (const string &a_pathToSensitivityImage) |
void | PrepareForwardImage () |
void | Reduce () |
void | CleanNeverVisitedVoxels () |
void | LMS_InstantiateImage () |
void | LMS_InstantiateForwardImage () |
void | LMS_InstantiateSensitivityImage () |
void | LMS_DeallocateImage () |
void | LMS_DeallocateForwardImage () |
void | LMS_DeallocateSensitivityImage () |
void | LMS_DeallocateAttenuationImage () |
int | InitAttenuationImage (const string &a_pathToAtnImage) |
int | InitAttenuationImage (FLTNB a_value) |
void | LMS_CopyAtnToImage () |
void | LMS_CopyAtnToForwardImage (bool a_use1stMotion, bool a_use2ndMotion) |
void | LMS_CopyBackwardToSensitivity () |
void | LMS_PrepareForwardImage () |
void | ReduceBackwardImage (int a_imageIndex, int a_timeIndex, int a_respIndex, int a_cardIndex) |
int | ApplyMaskToBackwardImage (int a_imageIndex, int a_timeIndex, int a_respIndex, int a_cardIndex) |
int | LMS_SaveSensitivityImage (const string &a_pathToSensitivityImage, oDeformationManager *ap_DeformationManager) |
void | PROJ_InstantiateProjectionImage (int a_nbProjs, int a_nbPixels) |
void | PROJ_DeallocateProjectionImage (int a_nbProjs) |
int | PROJ_InitImage (const string &a_pathToInitialImage) |
int | PROJ_LoadInitialImage (const string &a_pathToImage) |
int | PROJ_SaveProjectionImage () |
void | SetVerbose (int a_verboseLevel) |
void | SetImageDimensionsAndQuantification (oImageDimensionsAndQuantification *ap_ImageDimensionsAndQuantification) |
int | GetNbBackwardImages () |
bool | IsLoadedSensitivity () |
bool | IsLoadedMultiModal () |
bool | IsLoadedMask () |
bool | Checked () |
int | GetNbMiscellaneousImages () |
Public Attributes | |
FLTNB **** | m4p_image |
FLTNB **** | m4p_forwardImage |
FLTNB ****** | m6p_backwardImage |
FLTNB ***** | m5p_sensitivity |
FLTNB ** | m2p_multiModalImage |
FLTNB * | mp_maskImage |
FLTNB * | mp_visitedVoxelsImage |
FLTNB ** | m2p_miscellaneousImage |
FLTNB **** | m4p_attenuation |
FLTNB **** | m4p_outputImage |
FLTNB **** | m4p_refDynForwardImage |
FLTNB ***** | m5p_refDynBackwardImage |
FLTNB **** | m4p_refDynSensitivityImage |
FLTNB ** | m2p_projectionImage |
Private Attributes | |
oImageDimensionsAndQuantification * | mp_ID |
int | m_verbose |
bool | m_loadedSensitivity |
bool | m_loadedMultiModal |
bool | m_loadedMask |
int | m_nbBackwardImages |
int | m_nbMiscellaneousImages |
This class holds all the matrices in the image domain that can be used in the algorithm: image, forward-image, correction, additional image, sensitivity image.
Image matrices are public and can be directly accessed from each classes.
It also includes many functions for initializating, reseting, or deforming the images.
Mandatory Reconstruction image matrices :
Image: 4 pointers: 1: dynamic frames, 2: respiratory gates, 3: cardiac gates, 4: 3D voxels
ForwardImage: 4 pointers: 1: dynamic frames, 2: respiratory gates, 3: cardiac gates, 4: 3D voxels
BackwardImage: 6 pointers: 1: number of images (for optimizer), 2: threads, 3: dynamic frames, 4: respiratory gates, 5: cardiac gates, 6: 3D voxels
SensitivityImage: 5 pointers: 1: threads, 2: dynamic frames, 3: respiratory gates, 4: cardiac gates, 5: 3D voxels
OutputImage: 4 pointers: 1: dynamic frames, 2: respiratory gates, 3: cardiac gates, 4: 3D voxels
VisitedVoxelsImage: 1 pointer: 1: 3D voxels
Optional Reconstruction image matrices :
MultiModalImage: 5 pointers: 1: number of multimodal images, 2: dynamic frames, 3: respiratory gates, 4: cardiac gates, 5: 3D voxels
DefTmpBackwardImage: 6 pointers: 1: number of images (for optimizer), 2: threads, 3: dynamic frames, 4: respiratory gates, 5: cardiac gates, 6: 3D voxels
DefTmpSensitivityImage: 5 pointers: 1: threads, 2: dynamic frames, 3: respiratory gates, 4: cardiac gates, 5: 3D voxels
Projection image matrices :
Attenuation: 4 pointers: 1: dynamic frames, 2: respiratory gates, 3: cardiac gates, 4: 3D voxels:
ProjectionImage: 2 pointers: 1: number of projections, 2: 2D pixels
Definition at line 38 of file code/include/image/oImageSpace.hh.
oImageSpace::oImageSpace | ( | ) |
oImageSpace constructor. Initialize the member variables to their default values.
Definition at line 16 of file code/src/image/oImageSpace.cc.
oImageSpace::~oImageSpace | ( | ) |
oImageSpace destructor.
Definition at line 47 of file code/src/image/oImageSpace.cc.
oImageSpace::oImageSpace | ( | ) |
oImageSpace constructor. Initialize the member variables to their default values.
oImageSpace::~oImageSpace | ( | ) |
oImageSpace destructor.
FLTNB * oImageSpace::AllocateMiscellaneousImage | ( | ) |
Allocate a new miscellaneous image on m2p_miscellaneousImages and return the pointer to this image.
Definition at line 505 of file code/src/image/oImageSpace.cc.
FLTNB* oImageSpace::AllocateMiscellaneousImage | ( | ) |
int oImageSpace::ApplyMaskToBackwardImage | ( | int | a_imageIndex, |
int | a_timeIndex, | ||
int | a_respIndex, | ||
int | a_cardIndex | ||
) |
Definition at line 1954 of file code/src/image/oImageSpace.cc.
int oImageSpace::ApplyMaskToBackwardImage | ( | int | a_imageIndex, |
int | a_timeIndex, | ||
int | a_respIndex, | ||
int | a_cardIndex | ||
) |
int oImageSpace::ApplyMaskToSensitivity | ( | ) |
Apply the mask to the sensitivity image (only for the first thread, the image must be reduced beforehand)
Do this on m5p_sensitivityImage
Definition at line 1916 of file code/src/image/oImageSpace.cc.
int oImageSpace::ApplyMaskToSensitivity | ( | ) |
int oImageSpace::ApplyOutputFlip | ( | ) |
Just flip the output image.
Do this on m4p_outputImage
Definition at line 1591 of file code/src/image/oImageSpace.cc.
int oImageSpace::ApplyOutputFlip | ( | ) |
int oImageSpace::ApplyOutputFOVMasking | ( | ) |
int oImageSpace::ApplyOutputFOVMasking | ( | ) |
Mask the outside of the transaxial FOV based on the m_fovOutPercent.
Do this on m4p_outputImage
Definition at line 1744 of file code/src/image/oImageSpace.cc.
int oImageSpace::ApplyOutputMaskImage | ( | ) |
int oImageSpace::ApplyOutputMaskImage | ( | ) |
Mask the outside of the provided input mask image.
Do this on m4p_outputImage
Definition at line 1880 of file code/src/image/oImageSpace.cc.
|
inline |
Simply check that the image dimensions and verbosity has been set.
Definition at line 631 of file code/include/image/oImageSpace.hh.
|
inline |
Definition at line 638 of file include/image/oImageSpace.hh.
void oImageSpace::CleanNeverVisitedVoxels | ( | ) |
Based on the visitedVoxelsImage, clean the never visited voxels in the image. This function must be called at the end of each iteration.
Definition at line 2258 of file code/src/image/oImageSpace.cc.
void oImageSpace::CleanNeverVisitedVoxels | ( | ) |
void oImageSpace::ComputeOutputImage | ( | ) |
void oImageSpace::ComputeOutputImage | ( | ) |
Definition at line 1533 of file code/src/image/oImageSpace.cc.
void oImageSpace::DeallocateBackwardImageFromDynamicBasis | ( | ) |
void oImageSpace::DeallocateBackwardImageFromDynamicBasis | ( | ) |
Free memory for the backward image matrices.
The dimensions are taken from the dynamic basis (number of time basis, respiratory and cardiac basis functions, as opposed to the number of frames/gates)
Definition at line 242 of file code/src/image/oImageSpace.cc.
void oImageSpace::DeallocateBackwardImageFromDynamicBins | ( | ) |
void oImageSpace::DeallocateBackwardImageFromDynamicBins | ( | ) |
Free memory of the backward image matrices.
The dimensions are taken from the dynamic bins (number of times frames, respiratory and cardiac gates, as opposed to the number of basis functions)
Definition at line 321 of file code/src/image/oImageSpace.cc.
void oImageSpace::DeallocateForwardImage | ( | ) |
void oImageSpace::DeallocateForwardImage | ( | ) |
Free memory for the forward image matrices.
The dimensions are taken from the dynamic basis (number of time basis, respiratory and cardiac basis functions, as opposed to the number of frames/gates)
Definition at line 163 of file code/src/image/oImageSpace.cc.
void oImageSpace::DeallocateImage | ( | ) |
Free memory for the main image matrices.
Definition at line 94 of file code/src/image/oImageSpace.cc.
void oImageSpace::DeallocateImage | ( | ) |
void oImageSpace::DeallocateMaskImage | ( | ) |
Free memory for the mask image.
Definition at line 689 of file code/src/image/oImageSpace.cc.
void oImageSpace::DeallocateMaskImage | ( | ) |
void oImageSpace::DeallocateMiscellaneousImage | ( | ) |
void oImageSpace::DeallocateMiscellaneousImage | ( | ) |
Deallocate all allocated miscellaneous images.
Definition at line 535 of file code/src/image/oImageSpace.cc.
void oImageSpace::DeallocateMultiModalImage | ( | ) |
void oImageSpace::DeallocateMultiModalImage | ( | ) |
Free memory for the multimodal image.
Definition at line 629 of file code/src/image/oImageSpace.cc.
void oImageSpace::DeallocateOutputImage | ( | ) |
Free memory for the Image matrices dedicated to output writing on disk.
Definition at line 765 of file code/src/image/oImageSpace.cc.
void oImageSpace::DeallocateOutputImage | ( | ) |
void oImageSpace::DeallocateRefImagesForDeformation | ( | ) |
Free memory for the buffer sensitivity image required for image-based deformation. This function is called from the Deformation Manager.
Definition at line 957 of file code/src/image/oImageSpace.cc.
void oImageSpace::DeallocateRefImagesForDeformation | ( | ) |
void oImageSpace::DeallocateSensitivityImage | ( | ) |
void oImageSpace::DeallocateSensitivityImage | ( | ) |
Free memory for the sensitivity image matrices.
Sensitivity image deallocation depends on the reconstruction mode (multithreaded in histogram but not in list-mode)
Definition at line 439 of file code/src/image/oImageSpace.cc.
void oImageSpace::DeallocateVisitedVoxelsImage | ( | ) |
Free memory for the image matrix containing binary information regarding which 3D voxels have been visited during the projection steps.
Definition at line 570 of file code/src/image/oImageSpace.cc.
void oImageSpace::DeallocateVisitedVoxelsImage | ( | ) |
|
inline |
Definition at line 607 of file code/include/image/oImageSpace.hh.
|
inline |
Definition at line 614 of file include/image/oImageSpace.hh.
|
inline |
Definition at line 637 of file code/include/image/oImageSpace.hh.
|
inline |
Definition at line 644 of file include/image/oImageSpace.hh.
int oImageSpace::InitAttenuationImage | ( | const string & | a_pathToAtnImage | ) |
Definition at line 1113 of file code/src/image/oImageSpace.cc.
int oImageSpace::InitAttenuationImage | ( | const string & | a_pathToAtnImage | ) |
int oImageSpace::InitAttenuationImage | ( | FLTNB | a_value | ) |
Definition at line 1211 of file src/image/oImageSpace.cc.
void oImageSpace::InitBackwardImage | ( | ) |
void oImageSpace::InitBackwardImage | ( | ) |
Initialize each voxel of the backward images to 0, also for sensitivity if not loaded (estimated on the fly).
Definition at line 1342 of file code/src/image/oImageSpace.cc.
int oImageSpace::InitImage | ( | const string & | a_pathToInitialImage, |
FLTNB | a_value | ||
) |
int oImageSpace::InitImage | ( | const string & | a_pathToInitialImage, |
FLTNB | a_value | ||
) |
Definition at line 1222 of file code/src/image/oImageSpace.cc.
int oImageSpace::InitMaskImage | ( | const string & | a_pathToImage | ) |
int oImageSpace::InitMaskImage | ( | const string & | a_pathToImage | ) |
Definition at line 648 of file code/src/image/oImageSpace.cc.
int oImageSpace::InitMultiModalImage | ( | const vector< string > & | a_pathToMultiModalImage | ) |
int oImageSpace::InitMultiModalImage | ( | const vector< string > & | a_pathToMultiModalImage | ) |
Definition at line 582 of file code/src/image/oImageSpace.cc.
void oImageSpace::InitRefImagesForDeformation | ( | ) |
void oImageSpace::InitRefImagesForDeformation | ( | ) |
Definition at line 1464 of file code/src/image/oImageSpace.cc.
int oImageSpace::InitSensitivityImage | ( | const string & | a_pathToSensitivityImage | ) |
int oImageSpace::InitSensitivityImage | ( | const string & | a_pathToSensitivityImage | ) |
Definition at line 1394 of file code/src/image/oImageSpace.cc.
void oImageSpace::InstantiateBackwardImageFromDynamicBasis | ( | int | a_nbBackwardImages | ) |
void oImageSpace::InstantiateBackwardImageFromDynamicBasis | ( | int | a_nbBackwardImages | ) |
Definition at line 197 of file code/src/image/oImageSpace.cc.
void oImageSpace::InstantiateBackwardImageFromDynamicBins | ( | ) |
void oImageSpace::InstantiateBackwardImageFromDynamicBins | ( | ) |
Allocate memory for the backward image matrices and initialize them.
The dimensions are taken from the dynamic bins (number of times frames, respiratory and cardiac gates, as opposed to the number of basis functions)
Definition at line 285 of file code/src/image/oImageSpace.cc.
void oImageSpace::InstantiateForwardImage | ( | ) |
void oImageSpace::InstantiateForwardImage | ( | ) |
Allocate memory for the forward image matrices.
The dimensions are taken from the dynamic basis (number of time basis, respiratory and cardiac basis functions, as opposed to the number of frames/gates)
Definition at line 127 of file code/src/image/oImageSpace.cc.
void oImageSpace::InstantiateImage | ( | ) |
Allocate memory for the main image matrices.
Definition at line 58 of file code/src/image/oImageSpace.cc.
void oImageSpace::InstantiateImage | ( | ) |
void oImageSpace::InstantiateOutputImage | ( | ) |
Instanciate Image matrices dedicated to output writing on disk.
Compute output image using the m4p_image matrix and the time/respiratory/cardiac basis functions. Store the result in the m4p_outputImage matrix.
Additionnal output image matrix is needed if the reconstruction uses intrinsic temporal basis functions In this case, the image matrices are defined in the temporal image basis functions space, therefore requiring an additional step to recover the images in the regular image-space. If no intrinsic temporal basis functions are used, m4p_outputImage just refers to the address of the image matrix containing the regular image.
If time/respiratory/cardiac basis functions have not been initialized, this function has no effect.
Definition at line 718 of file code/src/image/oImageSpace.cc.
void oImageSpace::InstantiateOutputImage | ( | ) |
void oImageSpace::InstantiateRefImagesForDeformation | ( | ) |
Allocate memory for the buffer sensitivity image required for image-based deformation. This function is called from the Deformation Manager.
Definition at line 845 of file code/src/image/oImageSpace.cc.
void oImageSpace::InstantiateRefImagesForDeformation | ( | ) |
void oImageSpace::InstantiateSensitivityImage | ( | const string & | a_pathToSensitivityImage | ) |
Definition at line 364 of file code/src/image/oImageSpace.cc.
void oImageSpace::InstantiateSensitivityImage | ( | const string & | a_pathToSensitivityImage | ) |
void oImageSpace::InstantiateVisitedVoxelsImage | ( | ) |
Memory allocation and initialization for the image matrix containing binary information regarding which 3D voxels have been visited during the projection steps.
Definition at line 558 of file code/src/image/oImageSpace.cc.
void oImageSpace::InstantiateVisitedVoxelsImage | ( | ) |
|
inline |
Definition at line 624 of file code/include/image/oImageSpace.hh.
|
inline |
Definition at line 631 of file include/image/oImageSpace.hh.
|
inline |
Definition at line 618 of file code/include/image/oImageSpace.hh.
|
inline |
Definition at line 625 of file include/image/oImageSpace.hh.
|
inline |
Definition at line 613 of file code/include/image/oImageSpace.hh.
|
inline |
Definition at line 620 of file include/image/oImageSpace.hh.
void oImageSpace::LMS_CopyAtnToForwardImage | ( | bool | a_use1stMotion, |
bool | a_use2ndMotion | ||
) |
Definition at line 2525 of file code/src/image/oImageSpace.cc.
void oImageSpace::LMS_CopyAtnToForwardImage | ( | bool | a_use1stMotion, |
bool | a_use2ndMotion | ||
) |
void oImageSpace::LMS_CopyAtnToImage | ( | ) |
Copy the attenuation image contained in the 'm2p_attenuation' matrix inside the m2p_image matrix.
This function is dedicated to list-mode sensitivity (LMS) generation.
Definition at line 2490 of file code/src/image/oImageSpace.cc.
void oImageSpace::LMS_CopyAtnToImage | ( | ) |
void oImageSpace::LMS_CopyBackwardToSensitivity | ( | ) |
Definition at line 2562 of file code/src/image/oImageSpace.cc.
void oImageSpace::LMS_CopyBackwardToSensitivity | ( | ) |
void oImageSpace::LMS_DeallocateAttenuationImage | ( | ) |
Free memory for the Attenuation image matrices (for analytical projection or list-mode sensitivity generation)
Definition at line 1083 of file code/src/image/oImageSpace.cc.
void oImageSpace::LMS_DeallocateAttenuationImage | ( | ) |
void oImageSpace::LMS_DeallocateForwardImage | ( | ) |
Free memory for the forward image matrices (for list-mode sensitivity generation)
This function is dedicated to list-mode sensitivity (LMS) generation.
Definition at line 2394 of file code/src/image/oImageSpace.cc.
void oImageSpace::LMS_DeallocateForwardImage | ( | ) |
void oImageSpace::LMS_DeallocateImage | ( | ) |
Free memory for the main image matrices (for list-mode sensitivity generation)
This function is dedicated to list-mode sensitivity (LMS) generation.
Definition at line 2329 of file code/src/image/oImageSpace.cc.
void oImageSpace::LMS_DeallocateImage | ( | ) |
void oImageSpace::LMS_DeallocateSensitivityImage | ( | ) |
void oImageSpace::LMS_DeallocateSensitivityImage | ( | ) |
Free memory for the sensitivity image matrices (for list-mode sensitivity generation)
This function is dedicated to list-mode sensitivity (LMS) generation.
Definition at line 2456 of file code/src/image/oImageSpace.cc.
void oImageSpace::LMS_InstantiateForwardImage | ( | ) |
void oImageSpace::LMS_InstantiateForwardImage | ( | ) |
Allocate memory for the forward image matrices (for list-mode sensitivity generation)
This function is dedicated to list-mode sensitivity (LMS) generation.
Definition at line 2360 of file code/src/image/oImageSpace.cc.
void oImageSpace::LMS_InstantiateImage | ( | ) |
Allocate memory for the main image matrices (for list-mode sensitivity generation)
This function is dedicated to list-mode sensitivity (LMS) generation.
Definition at line 2297 of file code/src/image/oImageSpace.cc.
void oImageSpace::LMS_InstantiateImage | ( | ) |
void oImageSpace::LMS_InstantiateSensitivityImage | ( | ) |
Allocate memory for the sensitivity image matrices (for list-mode sensitivity generation)
This function is dedicated to list-mode sensitivity (LMS) generation.
Definition at line 2426 of file code/src/image/oImageSpace.cc.
void oImageSpace::LMS_InstantiateSensitivityImage | ( | ) |
void oImageSpace::LMS_PrepareForwardImage | ( | ) |
Copy current image in forward-image buffer (for list-mode sensitivity generation)
This function is dedicated to list-mode sensitivity (LMS) generation.
Definition at line 2582 of file code/src/image/oImageSpace.cc.
void oImageSpace::LMS_PrepareForwardImage | ( | ) |
int oImageSpace::LMS_SaveSensitivityImage | ( | const string & | a_pathToSensitivityImage, |
oDeformationManager * | ap_DeformationManager | ||
) |
Definition at line 2650 of file code/src/image/oImageSpace.cc.
int oImageSpace::LMS_SaveSensitivityImage | ( | const string & | a_pathToSensitivityImage, |
oDeformationManager * | ap_DeformationManager | ||
) |
int oImageSpace::LoadInitialImage | ( | const string & | a_pathToImage | ) |
int oImageSpace::LoadInitialImage | ( | const string & | a_pathToImage | ) |
Definition at line 1304 of file code/src/image/oImageSpace.cc.
void oImageSpace::PrepareForwardImage | ( | ) |
Copy current image matrix in the forward-image buffer matrix.
Definition at line 2118 of file code/src/image/oImageSpace.cc.
void oImageSpace::PrepareForwardImage | ( | ) |
void oImageSpace::PROJ_DeallocateProjectionImage | ( | int | a_nbProjs | ) |
Definition at line 2810 of file code/src/image/oImageSpace.cc.
void oImageSpace::PROJ_DeallocateProjectionImage | ( | int | a_nbProjs | ) |
int oImageSpace::PROJ_InitImage | ( | const string & | a_pathToInitialImage | ) |
Definition at line 2836 of file code/src/image/oImageSpace.cc.
int oImageSpace::PROJ_InitImage | ( | const string & | a_pathToInitialImage | ) |
void oImageSpace::PROJ_InstantiateProjectionImage | ( | int | a_nbProjs, |
int | a_nbPixels | ||
) |
Definition at line 2782 of file code/src/image/oImageSpace.cc.
void oImageSpace::PROJ_InstantiateProjectionImage | ( | int | a_nbProjs, |
int | a_nbPixels | ||
) |
int oImageSpace::PROJ_LoadInitialImage | ( | const string & | a_pathToImage | ) |
Definition at line 2871 of file code/src/image/oImageSpace.cc.
int oImageSpace::PROJ_LoadInitialImage | ( | const string & | a_pathToImage | ) |
int oImageSpace::PROJ_SaveProjectionImage | ( | ) |
Save an image of the projected data (for analytic projection)
Definition at line 2912 of file code/src/image/oImageSpace.cc.
int oImageSpace::PROJ_SaveProjectionImage | ( | ) |
void oImageSpace::Reduce | ( | ) |
Merge parallel results into the matrix of the backward image matrix of the first thread. Also for MPI.
Definition at line 2141 of file code/src/image/oImageSpace.cc.
void oImageSpace::Reduce | ( | ) |
void oImageSpace::ReduceBackwardImage | ( | int | a_imageIndex, |
int | a_timeIndex, | ||
int | a_respIndex, | ||
int | a_cardIndex | ||
) |
Definition at line 2601 of file code/src/image/oImageSpace.cc.
void oImageSpace::ReduceBackwardImage | ( | int | a_imageIndex, |
int | a_timeIndex, | ||
int | a_respIndex, | ||
int | a_cardIndex | ||
) |
void oImageSpace::SaveDebugImage | ( | const string & | a_name | ) |
Definition at line 2085 of file code/src/image/oImageSpace.cc.
void oImageSpace::SaveDebugImage | ( | const string & | a_name | ) |
int oImageSpace::SaveOutputBasisCoefficientImage | ( | int | a_iteration, |
int | a_subset = -1 |
||
) |
Definition at line 2039 of file code/src/image/oImageSpace.cc.
int oImageSpace::SaveOutputBasisCoefficientImage | ( | int | a_iteration, |
int | a_subset = -1 |
||
) |
int oImageSpace::SaveOutputImage | ( | int | a_iteration, |
int | a_subset = -1 |
||
) |
Definition at line 1998 of file code/src/image/oImageSpace.cc.
int oImageSpace::SaveOutputImage | ( | int | a_iteration, |
int | a_subset = -1 |
||
) |
int oImageSpace::SaveSensitivityImage | ( | const string & | a_pathToSensitivityImage | ) |
Definition at line 2753 of file code/src/image/oImageSpace.cc.
int oImageSpace::SaveSensitivityImage | ( | const string & | a_pathToSensitivityImage | ) |
|
inline |
Definition at line 601 of file code/include/image/oImageSpace.hh.
|
inline |
Definition at line 608 of file include/image/oImageSpace.hh.
|
inline |
Definition at line 594 of file code/include/image/oImageSpace.hh.
|
inline |
Definition at line 601 of file include/image/oImageSpace.hh.
FLTNB ** oImageSpace::m2p_miscellaneousImage |
A bunch of images that can be allocated on demand using the AllocateMiscellaneousImage() function which return a pointer to the newly created image. They can thus be used anywhere in the code for any purpose.
Definition at line 103 of file code/include/image/oImageSpace.hh.
FLTNB ** oImageSpace::m2p_multiModalImage |
Dynamic array for multimodal images to be used in reconstruction, containing a 2-vectors voxellized image matrix. 2 pointers: 1: number of multimodal images 2: 3D voxels
Definition at line 90 of file code/include/image/oImageSpace.hh.
FLTNB ** oImageSpace::m2p_projectionImage |
Dynamic array for a projection image (currently dedicated to SPECT analytical projection), containing a 2-vectors voxellized image matrix Required in the case the reconstruction uses intrinsic temporal basis functions. In any other case, m4p_outputImage just refers to the address of the image matrix containing the regular image. 2 pointers: 1: number of projections 2: 2D pixels
Definition at line 152 of file code/include/image/oImageSpace.hh.
FLTNB **** oImageSpace::m4p_attenuation |
Dynamic array for the attenuation images, used in analytical projection or sensitivity list-mode generation, containing a 4-vectors voxellized image matrix. 4 pointers: 1: dynamic frames, 2: respiratory gates, 3: cardiac gates, 4: 3D voxels
Definition at line 106 of file code/include/image/oImageSpace.hh.
FLTNB **** oImageSpace::m4p_forwardImage |
Dynamic array for the forward image (image data before the projection step), containing a 4-vectors voxellized image matrix. 4 pointers: 1: dynamic frames, 2: respiratory gates, 3: cardiac gates, 4: 3D voxels
Definition at line 65 of file code/include/image/oImageSpace.hh.
FLTNB **** oImageSpace::m4p_image |
Dynamic array for the reconstructed image, containing a 4-vectors voxellized image matrix. 4 pointers: 1: dynamic frames, 2: respiratory gates, 3: cardiac gates, 4: 3D voxels
Definition at line 58 of file code/include/image/oImageSpace.hh.
FLTNB **** oImageSpace::m4p_outputImage |
Dynamic array for the output image to be written on disk, containing a 4-vectors voxellized image matrix Required in the case the reconstruction uses intrinsic temporal basis functions. In any other case, m4p_outputImage just refers to the address of the image matrix containing the regular image. 4 pointers: 1: dynamic frames, 2: respiratory gates, 3: cardiac gates, 4: 3D voxels
Definition at line 113 of file code/include/image/oImageSpace.hh.
FLTNB **** oImageSpace::m4p_refDynForwardImage |
Buffer dynamic array for the forward image (image-based correction factors computed after the projection/backprojection steps), containing a 5-vectors voxellized image matrix. Required for image-based deformation, in order to store the forward image of the reference position from which deformation are performed 5 pointers: 1: number of images (dedicated to the optimization algorithm) 2: dynamic frames, 3: respiratory gates, 4: cardiac gates, 5: 3D voxels
Definition at line 122 of file code/include/image/oImageSpace.hh.
FLTNB **** oImageSpace::m4p_refDynSensitivityImage |
Buffer dynamic array for the sensitivity image (image-based sensitivity factors), containing a 5-vectors voxellized image matrix. Required when image-based deformation is enabled during histogram-based reconstruction, in order to store the sensitivity factors in the reference position 5 pointers: 1: threads, 2: dynamic frames, 3: respiratory gates, 4: cardiac gates, 5: 3D voxels
Definition at line 143 of file code/include/image/oImageSpace.hh.
FLTNB ***** oImageSpace::m5p_refDynBackwardImage |
Buffer dynamic array for the backward image (image-based correction factors computed after the projection/backprojection steps), containing a 6-vectors voxellized image matrix. Required when image-based deformation, in order to store the correction factors in the reference position 6 pointers: 1: number of images (dedicated to the optimization algorithm) 2: threads, 3: dynamic frames, 4: respiratory gates, 5: cardiac gates, 6: 3D voxels
Definition at line 132 of file code/include/image/oImageSpace.hh.
FLTNB ***** oImageSpace::m5p_sensitivity |
Dynamic array for the sensitivity image (image-based normalization factors), containing a 5-vectors voxellized image matrix. 5 pointers: 1: threads, 2: dynamic frames, 3: respiratory gates, 4: cardiac gates, 5: 3D voxels
Definition at line 82 of file code/include/image/oImageSpace.hh.
FLTNB ****** oImageSpace::m6p_backwardImage |
Dynamic array for the backward image (image-based correction factors computed after the projection/backprojection steps), containing a 6-vectors voxellized image matrix. 6 pointers: 1: number of images (dedicated to the optimization algorithm) 2: threads, 3: dynamic frames, 4: respiratory gates, 5: cardiac gates, 6: 3D voxels
Definition at line 72 of file code/include/image/oImageSpace.hh.
|
private |
Flag indicating if a mask image has been loaded
Definition at line 648 of file code/include/image/oImageSpace.hh.
|
private |
Flag indicating if multimodal images have been loaded
Definition at line 647 of file code/include/image/oImageSpace.hh.
|
private |
Flag indicating if reconstruction is listmode, otherwise histogram because sensitivity is computed on-the-fly
Definition at line 646 of file code/include/image/oImageSpace.hh.
|
private |
Number of backward images in the related image matrix (for the optimizer)
Definition at line 649 of file code/include/image/oImageSpace.hh.
|
private |
Number of allocated miscellaneous images
Definition at line 650 of file code/include/image/oImageSpace.hh.
|
private |
Verbosity
Definition at line 645 of file code/include/image/oImageSpace.hh.
|
private |
Pointer to the oImageDimensionsAndQuantification object
Definition at line 644 of file code/include/image/oImageSpace.hh.
FLTNB * oImageSpace::mp_maskImage |
Array for a mask image to be used in reconstruction, for instance a background mask. 1 pointer: 1: 3D voxels
Definition at line 95 of file code/include/image/oImageSpace.hh.
FLTNB * oImageSpace::mp_visitedVoxelsImage |
1-D Dynamic array, containing binary information regarding which 3D voxels have been visited during the projection steps. 1 pointer: 3D voxels
Definition at line 99 of file code/include/image/oImageSpace.hh.