![]() |
CASToR
3.2
Tomographic Reconstruction (PET/SPECT/CT)
|
This class implements the "median root prior". More...
#include <iPenaltyMedianRootPrior.hh>
Public Member Functions | |
iPenaltyMedianRootPrior () | |
The constructor of iPenaltyMedianRootPrior. More... | |
~iPenaltyMedianRootPrior () | |
The destructor of iPenaltyMedianRootPrior. More... | |
int | ReadConfigurationFile (const string &a_configurationFile) |
int | ReadOptionsList (const string &a_optionsList) |
int | LocalPreProcessingStep (int a_tbf, int a_rbf, int a_cbf, INTNB a_voxel, int a_th) |
FLTNB | ComputePenaltyValue (int a_tbf, int a_rbf, int a_cbf, INTNB a_voxel, int a_th) |
FLTNB | ComputeFirstDerivative (int a_tbf, int a_rbf, int a_cbf, INTNB a_voxel, int a_th) |
FLTNB | ComputeSecondDerivative (int a_tbf, int a_rbf, int a_cbf, INTNB a_voxel, int a_th) |
iPenaltyMedianRootPrior () | |
~iPenaltyMedianRootPrior () | |
int | ReadConfigurationFile (const string &a_configurationFile) |
int | ReadOptionsList (const string &a_optionsList) |
int | LocalPreProcessingStep (int a_tbf, int a_rbf, int a_cbf, INTNB a_voxel, int a_th) |
FLTNB | ComputePenaltyValue (FLTNB *ap_image, INTNB a_voxel, int a_th) |
FLTNB | ComputeFirstDerivative (FLTNB *ap_image, INTNB a_voxel, int a_th) |
FLTNB | ComputeSecondDerivative (FLTNB *ap_image, INTNB a_voxel, int a_th) |
![]() | |
vPenalty () | |
The constructor of vPenalty. More... | |
virtual | ~vPenalty () |
The destructor of vPenalty. More... | |
void | ShowHelp () |
A function used to show help about the penalty. More... | |
int | CheckParameters () |
A public function used to check the parameters settings. More... | |
int | Initialize () |
A public function used to initialize the penalty. More... | |
virtual int | GlobalPreProcessingStep () |
A public function computing a global pre-processing step for the penalty. More... | |
void | SetVerbose (int a_verbose) |
void | SetImageDimensionsAndQuantification (oImageDimensionsAndQuantification *ap_ImageDimensionsAndQuantification) |
void | SetImageSpace (oImageSpace *ap_ImageSpace) |
void | SetPenaltyStrength (FLTNB a_penaltyStrength) |
FLTNB | GetPenaltyStrength () |
Get the penalty strength. More... | |
int | GetPenaltyDerivativesOrder () |
Get the penalty deratives order. More... | |
void | SetPenaltyID (const string &a_penaltyID) |
const string & | GetPenaltyID () |
vPenalty () | |
virtual | ~vPenalty () |
void | ShowHelp () |
int | CheckParameters () |
int | Initialize () |
virtual int | GlobalPreProcessingStep () |
void | SetVerbose (int a_verbose) |
void | SetImageDimensionsAndQuantification (oImageDimensionsAndQuantification *ap_ImageDimensionsAndQuantification) |
void | SetImageSpace (oImageSpace *ap_ImageSpace) |
void | SetDataFile (vDataFile *ap_DataFile) |
Set the image space in use. More... | |
void | SetPenaltyStrength (FLTNB a_penaltyStrength) |
FLTNB | GetPenaltyStrength () |
int | GetPenaltyDerivativesOrder () |
void | SetPenaltyID (const string &a_penaltyID) |
const string & | GetPenaltyID () |
Private Member Functions | |
void | ShowHelpSpecific () |
A function used to show help about the child penalty. More... | |
int | CheckSpecificParameters () |
A private function used to check the parameters settings specific to the child penalty. More... | |
int | InitializeSpecific () |
This function is used to initialize specific stuff to the child penalty. More... | |
int | BuildNeighborhoodKernel () |
A function used to build the neighborhood kernel. More... | |
int | BuildSpecificNeighborhood (INTNB a_voxel, int a_th) |
int | ComputeMedianInNeighborhood (int a_tbf, int a_rbf, int a_cbf, INTNB a_voxel, int a_th) |
void | ShowHelpSpecific () |
A function used to show help about the child module. More... | |
int | CheckSpecificParameters () |
A private function used to check the parameters settings specific to the child penalty. More... | |
int | InitializeSpecific () |
A private function used to initialize everything specific to the child penalty. More... | |
int | BuildNeighborhoodKernel () |
int | BuildSpecificNeighborhood (INTNB a_voxel, int a_th) |
int | ComputeMedianInNeighborhood (int a_tbf, int a_rbf, int a_cbf, INTNB a_voxel, int a_th) |
Additional Inherited Members | |
![]() | |
string | m_penaltyID |
oImageDimensionsAndQuantification * | mp_ImageDimensionsAndQuantification |
oImageSpace * | mp_ImageSpace |
int | m_verbose |
int | m_penaltyDerivativesOrder |
FLTNB | m_penaltyStrength |
vDataFile * | mp_DataFile |
This class implements the "median root prior".
This class inherits from vPenalty and implements the "median root prior".
Definition at line 30 of file code/include/optimizer/iPenaltyMedianRootPrior.hh.
iPenaltyMedianRootPrior::iPenaltyMedianRootPrior | ( | ) |
The constructor of iPenaltyMedianRootPrior.
This is the default and unique constructor. It does not take any parameter and its role is only to affect default values to each member of the class.
Definition at line 15 of file code/src/optimizer/iPenaltyMedianRootPrior.cc.
iPenaltyMedianRootPrior::~iPenaltyMedianRootPrior | ( | ) |
The destructor of iPenaltyMedianRootPrior.
This is the default and unique destructor. It does not take any parameter and its role is only to free or delete all structures that were built by this class.
Definition at line 38 of file code/src/optimizer/iPenaltyMedianRootPrior.cc.
iPenaltyMedianRootPrior::iPenaltyMedianRootPrior | ( | ) |
iPenaltyMedianRootPrior::~iPenaltyMedianRootPrior | ( | ) |
|
private |
|
private |
A function used to build the neighborhood kernel.
This function build the table m2p_neighborhoodKernel, that prepare neighborhood indices operations. It is called only one time at initialization. The kernel will be used when computing the specific neighborhood of any voxel later on.
Definition at line 255 of file code/src/optimizer/iPenaltyMedianRootPrior.cc.
|
private |
|
private |
Definition at line 388 of file code/src/optimizer/iPenaltyMedianRootPrior.cc.
|
privatevirtual |
A private function used to check the parameters settings specific to the child penalty.
This function is used to check that all parameters specific to the penalty are correctly set within allowed values. It is called by the CheckParameters() function. It is pure virtual so is implemented by children.
Implements vPenalty.
|
privatevirtual |
A private function used to check the parameters settings specific to the child penalty.
This function is used to check that all parameters specific to the penalty are correctly set within allowed values. It is called by the CheckParameters() function of the mother class. It is the implementation of the pure virtual function inherited from the abstract mother class vPenalty.
Implements vPenalty.
Definition at line 175 of file code/src/optimizer/iPenaltyMedianRootPrior.cc.
|
virtual |
Implements vPenalty.
Definition at line 506 of file src/optimizer/iPenaltyMedianRootPrior.cc.
|
virtual |
Implements vPenalty.
Definition at line 506 of file code/src/optimizer/iPenaltyMedianRootPrior.cc.
|
private |
|
private |
Definition at line 455 of file code/src/optimizer/iPenaltyMedianRootPrior.cc.
|
virtual |
Implements vPenalty.
Definition at line 489 of file src/optimizer/iPenaltyMedianRootPrior.cc.
|
virtual |
Implements vPenalty.
Definition at line 489 of file code/src/optimizer/iPenaltyMedianRootPrior.cc.
|
virtual |
Implements vPenalty.
Definition at line 521 of file src/optimizer/iPenaltyMedianRootPrior.cc.
|
virtual |
Implements vPenalty.
Definition at line 521 of file code/src/optimizer/iPenaltyMedianRootPrior.cc.
|
privatevirtual |
A private function used to initialize everything specific to the child penalty.
This function is used to initialize everything specific to the penalty that should be initialized. It is called by the Initialize() function. It is pure virtual so is implemented by children.
Implements vPenalty.
|
privatevirtual |
This function is used to initialize specific stuff to the child penalty.
It is called by the public Initialize() function from the mother.
Implements vPenalty.
Definition at line 203 of file code/src/optimizer/iPenaltyMedianRootPrior.cc.
|
virtual |
Reimplemented from vPenalty.
Definition at line 432 of file code/src/optimizer/iPenaltyMedianRootPrior.cc.
|
virtual |
Reimplemented from vPenalty.
|
virtual |
Implements vPenalty.
Definition at line 97 of file code/src/optimizer/iPenaltyMedianRootPrior.cc.
|
virtual |
Implements vPenalty.
|
virtual |
Implements vPenalty.
|
virtual |
Implements vPenalty.
Definition at line 163 of file code/src/optimizer/iPenaltyMedianRootPrior.cc.
|
privatevirtual |
A function used to show help about the child module.
This function must describe what the penalty does and how to use it. It describes in details the different parameters of the penalty, and how to set them through the use of a configuration file or a list of options. It is pure virtual so is implemented by children. It is private because called by the public ShowHelp() function.
Implements vPenalty.
|
privatevirtual |
A function used to show help about the child penalty.
This function must describe what the module does and how to use it. It describes in details the different parameters of the penalty, and how to set them through the use of a configuration file or a list of options. It is the implementation of the pure virtual function inherited from the abstract class vPenalty. It is called by the public ShowHelp() function.
Implements vPenalty.
Definition at line 72 of file code/src/optimizer/iPenaltyMedianRootPrior.cc.
|
private |
Neighborhood indices of a specific voxel. First index is on the threads, second one contains the list of the voxels in the neighborhood (as many as m_neighborhoodMaxNbVoxels). It follows strictly the same order than m2p_neighborhoodKernel, with the convention -1: out of image boundaries
Definition at line 206 of file code/include/optimizer/iPenaltyMedianRootPrior.hh.
|
private |
Neighborhood of a virtual voxel of coordinates 0, 0, 0 without boundary. First index on neighboring voxels, second one on indexes
Definition at line 204 of file code/include/optimizer/iPenaltyMedianRootPrior.hh.
|
private |
In case of a box neighborhood, remove the corners as in some papers, or not (keep them by default)
Definition at line 202 of file code/include/optimizer/iPenaltyMedianRootPrior.hh.
|
private |
In case of a box neighborhood, order of the box
Definition at line 201 of file code/include/optimizer/iPenaltyMedianRootPrior.hh.
|
private |
Maximum number of voxels in the neighborhood
Definition at line 203 of file code/include/optimizer/iPenaltyMedianRootPrior.hh.
|
private |
Type of neighborhood (sphere, box)
Definition at line 199 of file code/include/optimizer/iPenaltyMedianRootPrior.hh.
|
private |
In case of a spherical neighborhood, radius of the sphere
Definition at line 200 of file code/include/optimizer/iPenaltyMedianRootPrior.hh.
|
private |
Used to store the median value of the neighborhood, per thread
Definition at line 208 of file code/include/optimizer/iPenaltyMedianRootPrior.hh.
|
private |
Number of voxels in a specific neighborhood. The index is on threads
Definition at line 205 of file code/include/optimizer/iPenaltyMedianRootPrior.hh.