#include <EMLocalShapeCostFunction.h>
| EMLocalShapeCostFunction::EMLocalShapeCostFunction | ( | EMLocal_Hierarchical_Class_Parameters * | initEMHierarchyParameters, | |
| int * | initPCANumberOfEigenModes, | |||
| int | DisableMultiThreading | |||
| ) |
References ClassToAtlasRotationMatrix, ClassToAtlasTranslationVector, EMHierarchyParameters, EMLocalInterface_GetDefaultNumberOfThreads(), EMLocalShapeCostFunction_ShapeCostFunctionMultiThreaded_Function(), EMLocalShapeCostFunction_IterationSpecificVariables::GaussianPenalty, EMLocalShapeCostFunction_IterationSpecificVariables::ImagePenalty, IncludeSpatialPriorForNormalization, j, k, MultiThreadedParameters, NumberOfTotalTypeCLASS, NumberOfVoxelsInImage, NumOfThreads, EMLocal_Hierarchical_Class_Parameters::NumTotalTypeCLASS, ParaDepVar, PCAEigenVectorsIncY, PCAEigenVectorsIncZ, EMLocalShapeCostFunction_MultiThreadedParameters::PCAEigenVectorsJump, PCAEigenVectorsPtr, PCAMeanShapeIncY, PCAMeanShapeIncZ, EMLocalShapeCostFunction_MultiThreadedParameters::PCAMeanShapeJump, PCAMeanShapePtr, PCANumberOfEigenModes, EMLocalShapeCostFunction_IterationSpecificVariables::PCAPara, ProbDataIncY, ProbDataIncZ, EMLocalShapeCostFunction_MultiThreadedParameters::ProbDataJump, ProbDataPtr, ROI, EMLocalShapeCostFunction_IterationSpecificVariables::SpatialCostFunction, Threader, and weights.
| EMLocalShapeCostFunction::~EMLocalShapeCostFunction | ( | ) |
References IncludeSpatialPriorForNormalization, j, MultiThreadedParameters, NumberOfTotalTypeCLASS, NumOfThreads, ParaDepVar, PCAEigenVectorsIncY, PCAEigenVectorsIncZ, EMLocalShapeCostFunction_MultiThreadedParameters::PCAEigenVectorsJump, PCAEigenVectorsPtr, PCAMeanShapeIncY, PCAMeanShapeIncZ, EMLocalShapeCostFunction_MultiThreadedParameters::PCAMeanShapeJump, PCAMeanShapePtr, ProbDataIncY, ProbDataIncZ, EMLocalShapeCostFunction_MultiThreadedParameters::ProbDataJump, ProbDataPtr, SpatialCostFunctionOff(), Threader, and weights.
| float EMLocalShapeCostFunction::ComputeCostFunction | ( | const double * | initPCAPara | ) | const |
References EMSEGMENT_PCASHAPE_DEPENDENT, EMLocalShapeCostFunction_IterationSpecificVariables::GaussianPenalty, EMLocalShapeCostFunction_IterationSpecificVariables::ImagePenalty, k, MultiThreadedParameters, NumberOfTotalTypeCLASS, NumOfThreads, ParaDepVar, PCAInverseEigenValues, PCANumberOfEigenModes, EMLocalShapeCostFunction_IterationSpecificVariables::PCAPara, PCAShapeModelType, EMLocalShapeCostFunction_MultiThreadedParameters::Result, result, ROIExactVoxelCount, EMLocalShapeCostFunction_IterationSpecificVariables::SpatialCostFunction, and Threader.
| void EMLocalShapeCostFunction::DefinePCADataPtr | ( | int | inPCAMinX, | |
| int | inPCAMinY, | |||
| int | inPCAMinZ, | |||
| int | inBoundaryMaxX, | |||
| int | inBoundaryMaxY, | |||
| int | inDataIncY, | |||
| int | inDataIncZ, | |||
| int & | outJump, | |||
| int & | outDataIncY, | |||
| int & | outDataIncZ | |||
| ) | [private] |
References ROI_LengthX, and ROI_LengthY.
Referenced by InitializeCostFunction().
| int EMLocalShapeCostFunction::GetDataIncY | ( | ) | [inline] |
Referenced by EMLocalShapeCostFunction_CalculateCostFunction().
| int EMLocalShapeCostFunction::GetDataIncZ | ( | ) | [inline] |
Referenced by EMLocalShapeCostFunction_CalculateCostFunction().
| int EMLocalShapeCostFunction::GetDataJump | ( | ) | [inline] |
Referenced by EMLocalShapeCostFunction_CalculateCostFunction().
| float EMLocalShapeCostFunction::GetGaussianPenalty | ( | ) | [inline] |
| int* EMLocalShapeCostFunction::GetImage_Length | ( | ) | [inline] |
Referenced by EMLocalShapeCostFunction_CalculateCostFunction().
| float EMLocalShapeCostFunction::GetImage_MidX | ( | ) | [inline] |
Referenced by EMLocalShapeCostFunction_CalculateCostFunction().
| float EMLocalShapeCostFunction::GetImage_MidY | ( | ) | [inline] |
Referenced by EMLocalShapeCostFunction_CalculateCostFunction().
| float EMLocalShapeCostFunction::GetImage_MidZ | ( | ) | [inline] |
Referenced by EMLocalShapeCostFunction_CalculateCostFunction().
| float EMLocalShapeCostFunction::GetImagePenalty | ( | ) | [inline] |
| char* EMLocalShapeCostFunction::GetIncludeSpatialPriorForNormalization | ( | ) | [inline] |
Referenced by EMLocalShapeCostFunction_CalculateCostFunction().
| EMLocalShapeCostFunction_MultiThreadedParameters* EMLocalShapeCostFunction::GetMultiThreadedParameters | ( | ) | [inline] |
| int EMLocalShapeCostFunction::GetNumberOfTotalTypeCLASS | ( | ) | [inline] |
Referenced by EMLocalShapeCostFunction_CalculateCostFunction().
| int* EMLocalShapeCostFunction::GetNumChildClasses | ( | ) | [inline] |
Referenced by EMLocalShapeCostFunction_CalculateCostFunction().
| int EMLocalShapeCostFunction::GetNumClasses | ( | ) | [inline] |
Referenced by EMLocalShapeCostFunction_CalculateCostFunction().
| int EMLocalShapeCostFunction::GetNumOfThreads | ( | ) | [inline] |
| int** EMLocalShapeCostFunction::GetPCAEigenVectorsIncY | ( | ) | [inline] |
Referenced by EMLocalShapeCostFunction_CalculateCostFunction().
| int** EMLocalShapeCostFunction::GetPCAEigenVectorsIncZ | ( | ) | [inline] |
Referenced by EMLocalShapeCostFunction_CalculateCostFunction().
Referenced by EMLocalShapeCostFunction_CalculateCostFunction().
| int* EMLocalShapeCostFunction::GetPCAMeanShapeIncY | ( | ) | [inline] |
Referenced by EMLocalShapeCostFunction_CalculateCostFunction().
| int* EMLocalShapeCostFunction::GetPCAMeanShapeIncZ | ( | ) | [inline] |
Referenced by EMLocalShapeCostFunction_CalculateCostFunction().
| float* EMLocalShapeCostFunction::GetPCAMeanShapePtr | ( | int | index | ) | [inline] |
Referenced by EMLocalShapeCostFunction_CalculateCostFunction().
| int* EMLocalShapeCostFunction::GetPCANumberOfEigenModes | ( | ) | [inline] |
Referenced by EMLocalShapeCostFunction_CalculateCostFunction().
| const double* EMLocalShapeCostFunction::GetPCAPara | ( | ) | [inline] |
Referenced by EMLocalShapeCostFunction_CalculateCostFunction().
| int EMLocalShapeCostFunction::GetPCATotalNumOfShapeParameters | ( | ) | [inline] |
| int* EMLocalShapeCostFunction::GetProbDataIncY | ( | ) | [inline] |
Referenced by EMLocalShapeCostFunction_CalculateCostFunction().
| int* EMLocalShapeCostFunction::GetProbDataIncZ | ( | ) | [inline] |
Referenced by EMLocalShapeCostFunction_CalculateCostFunction().
| float* EMLocalShapeCostFunction::GetProbDataMinusWeight | ( | ) | [inline] |
| void** EMLocalShapeCostFunction::GetProbDataPtr | ( | ) | [inline] |
| int EMLocalShapeCostFunction::GetProbDataType | ( | ) | [inline] |
| float* EMLocalShapeCostFunction::GetProbDataWeight | ( | ) | [inline] |
| int EMLocalShapeCostFunction::GetRegistrationType | ( | void | ) | [inline] |
Referenced by EMLocalShapeCostFunction_CalculateCostFunction().
| unsigned char* EMLocalShapeCostFunction::GetROI | ( | ) | [inline] |
Referenced by EMLocalShapeCostFunction_CalculateCostFunction().
| int EMLocalShapeCostFunction::GetROI_LengthX | ( | ) | [inline] |
| int EMLocalShapeCostFunction::GetROI_LengthY | ( | ) | [inline] |
| int EMLocalShapeCostFunction::GetROI_LengthZ | ( | ) | [inline] |
| int EMLocalShapeCostFunction::GetROI_MaxX | ( | ) | [inline] |
Referenced by EMLocalShapeCostFunction_CalculateCostFunction().
| int EMLocalShapeCostFunction::GetROI_MaxY | ( | ) | [inline] |
Referenced by EMLocalShapeCostFunction_CalculateCostFunction().
| int EMLocalShapeCostFunction::GetROI_MaxZ | ( | ) | [inline] |
| int EMLocalShapeCostFunction::GetROI_MinX | ( | ) | [inline] |
Referenced by EMLocalShapeCostFunction_CalculateCostFunction().
| int EMLocalShapeCostFunction::GetROI_MinY | ( | ) | [inline] |
Referenced by EMLocalShapeCostFunction_CalculateCostFunction().
| int EMLocalShapeCostFunction::GetROI_MinZ | ( | ) | [inline] |
| int EMLocalShapeCostFunction::GetROIIncY | ( | ) | [inline] |
Referenced by EMLocalShapeCostFunction_CalculateCostFunction().
| int EMLocalShapeCostFunction::GetROIIncZ | ( | ) | [inline] |
Referenced by EMLocalShapeCostFunction_CalculateCostFunction().
| float* EMLocalShapeCostFunction::GetSpatialCostFunction | ( | ) | [inline] |
Referenced by EMLocalShapeCostFunction_CalculateCostFunction().
| float* EMLocalShapeCostFunction::Getweights | ( | int | index | ) | [inline] |
Referenced by EMLocalShapeCostFunction_CalculateCostFunction().
| int EMLocalShapeCostFunction::GetweightsIncY | ( | ) | [inline] |
Referenced by EMLocalShapeCostFunction_CalculateCostFunction().
| int EMLocalShapeCostFunction::GetweightsIncZ | ( | ) | [inline] |
Referenced by EMLocalShapeCostFunction_CalculateCostFunction().
| void EMLocalShapeCostFunction::InitializeCostFunction | ( | int | PCAMaxX, | |
| int | PCAMinX, | |||
| int | PCAMaxY, | |||
| int | PCAMinY, | |||
| int | PCAMaxZ, | |||
| int | PCAMinZ, | |||
| int | BoundaryMinX, | |||
| int | BoundaryMinY, | |||
| int | BoundaryMinZ, | |||
| int | Boundary_LengthX, | |||
| int | Boundary_LengthY, | |||
| float ** | w_m, | |||
| unsigned char * | PCA_ROI, | |||
| void ** | initProbDataPtr, | |||
| float ** | initPCAMeanShapePtr, | |||
| int * | initPCAMeanShapeIncY, | |||
| int * | initPCAMeanShapeIncZ, | |||
| float *** | initPCAEigenVectorsPtr, | |||
| int ** | initPCAEigenVectorsIncY, | |||
| int ** | initPCAEigenVectorsIncZ | |||
| ) |
References DataIncY, DataIncZ, EMLocalShapeCostFunction_MultiThreadedParameters::DataJump, DataJump, DefinePCADataPtr(), EMHierarchyParameters, EMLocalInterface_DefineMultiThreadJump(), EMLocalShapeCostFunction_AssignProbDataPtr(), EMSEGMENT_REGISTRATION_DISABLED, GetProbDataType(), j, k, MultiThreadedParameters, NumberOfTotalTypeCLASS, EMLocalShapeCostFunction_MultiThreadedParameters::NumberOfVoxels, NumOfThreads, PCAEigenVectorsIncY, PCAEigenVectorsIncZ, EMLocalShapeCostFunction_MultiThreadedParameters::PCAEigenVectorsJump, PCAEigenVectorsPtr, PCAMeanShapeIncY, PCAMeanShapeIncZ, EMLocalShapeCostFunction_MultiThreadedParameters::PCAMeanShapeJump, PCAMeanShapePtr, PCANumberOfEigenModes, EMLocal_Hierarchical_Class_Parameters::ProbDataIncY, ProbDataIncY, EMLocal_Hierarchical_Class_Parameters::ProbDataIncZ, ProbDataIncZ, EMLocalShapeCostFunction_MultiThreadedParameters::ProbDataJump, ProbDataPtr, RegistrationType, ROI, ROI_LengthX, ROI_LengthY, ROI_LengthZ, ROI_MaxX, ROI_MaxY, ROI_MaxZ, ROI_MinX, ROI_MinY, ROI_MinZ, ROIIncY, ROIIncZ, EMLocalShapeCostFunction_MultiThreadedParameters::VoxelStart, weights, weightsIncY, and weightsIncZ.
Referenced by itkEMLocalOptimization_Shape_Start().
| void EMLocalShapeCostFunction::InitRegSpecPara | ( | int | RegistrationType, | |
| int | LengthX, | |||
| int | LengthY, | |||
| int | LengthZ | |||
| ) |
References Image_Length, Image_MidX, Image_MidY, Image_MidZ, and RegistrationType.
| void EMLocalShapeCostFunction::ROI_Unassign | ( | ) | [inline] |
| void EMLocalShapeCostFunction::SetNumberOfVoxelsInImage | ( | int | init | ) | [inline] |
| void EMLocalShapeCostFunction::SetProbDataPtr | ( | void * | init, | |
| int | i | |||
| ) | [inline] |
| void EMLocalShapeCostFunction::SetROIExactVoxelCount | ( | int * | init | ) | [inline] |
| void EMLocalShapeCostFunction::SpatialCostFunctionOff | ( | ) |
References ParaDepVar, and EMLocalShapeCostFunction_IterationSpecificVariables::SpatialCostFunction.
Referenced by ~EMLocalShapeCostFunction().
| void EMLocalShapeCostFunction::SpatialCostFunctionOn | ( | ) |
| double EMLocalShapeCostFunction::Transfere_DistanceMap_Into_SpatialPrior | ( | double | distance, | |
| float | variance, | |||
| float | boundary, | |||
| float | Min, | |||
| float | Max | |||
| ) |
References double(), and NumberOfTrainingSamples.
Referenced by EMLocalShapeCostFunction_CalculateCostFunction().
| void EMLocalShapeCostFunction::TransfereArrayIntoPCAShapeParameters | ( | float * | PCAParameters, | |
| float ** | PCAShapeParameters | |||
| ) |
References EMSEGMENT_PCASHAPE_DEPENDENT, k, NumberOfTotalTypeCLASS, PCANumberOfEigenModes, and PCAShapeModelType.
Referenced by itkEMLocalOptimization_Shape_Start().
| void EMLocalShapeCostFunction::TransferePCAShapeParametersIntoArray | ( | float ** | PCAShapeParameters, | |
| float * | PCAParameters | |||
| ) |
References EMSEGMENT_PCASHAPE_DEPENDENT, k, NumberOfTotalTypeCLASS, PCANumberOfEigenModes, and PCAShapeModelType.
Referenced by itkEMLocalOptimization_Shape_Start().
Referenced by EMLocalShapeCostFunction(), and EMLocalShapeCostFunction_CalculateCostFunction().
Referenced by EMLocalShapeCostFunction(), and EMLocalShapeCostFunction_CalculateCostFunction().
int EMLocalShapeCostFunction::DataIncY [private] |
Referenced by InitializeCostFunction().
int EMLocalShapeCostFunction::DataIncZ [private] |
Referenced by InitializeCostFunction().
int EMLocalShapeCostFunction::DataJump [private] |
Referenced by InitializeCostFunction().
Referenced by EMLocalShapeCostFunction(), and InitializeCostFunction().
int EMLocalShapeCostFunction::Image_Length[3] [private] |
Referenced by InitRegSpecPara().
float EMLocalShapeCostFunction::Image_MidX [private] |
Referenced by InitRegSpecPara().
float EMLocalShapeCostFunction::Image_MidY [private] |
Referenced by InitRegSpecPara().
float EMLocalShapeCostFunction::Image_MidZ [private] |
Referenced by InitRegSpecPara().
Referenced by EMLocalShapeCostFunction(), and ~EMLocalShapeCostFunction().
EMLocalShapeCostFunction_MultiThreadedParameters* EMLocalShapeCostFunction::MultiThreadedParameters [private] |
Referenced by ComputeCostFunction(), EMLocalShapeCostFunction(), InitializeCostFunction(), and ~EMLocalShapeCostFunction().
Referenced by Transfere_DistanceMap_Into_SpatialPrior().
Referenced by EMLocalShapeCostFunction(), and SpatialCostFunctionOn().
int EMLocalShapeCostFunction::NumOfThreads [private] |
Referenced by ComputeCostFunction(), EMLocalShapeCostFunction(), InitializeCostFunction(), and ~EMLocalShapeCostFunction().
int** EMLocalShapeCostFunction::PCAEigenVectorsIncY [private] |
Referenced by EMLocalShapeCostFunction(), InitializeCostFunction(), and ~EMLocalShapeCostFunction().
int** EMLocalShapeCostFunction::PCAEigenVectorsIncZ [private] |
Referenced by EMLocalShapeCostFunction(), InitializeCostFunction(), and ~EMLocalShapeCostFunction().
float*** EMLocalShapeCostFunction::PCAEigenVectorsPtr [private] |
Referenced by EMLocalShapeCostFunction(), InitializeCostFunction(), and ~EMLocalShapeCostFunction().
Referenced by ComputeCostFunction().
Referenced by EMLocalShapeCostFunction_CalculateCostFunction().
Referenced by EMLocalShapeCostFunction_CalculateCostFunction().
Referenced by EMLocalShapeCostFunction_CalculateCostFunction().
Referenced by EMLocalShapeCostFunction_CalculateCostFunction().
int* EMLocalShapeCostFunction::PCAMeanShapeIncY [private] |
Referenced by EMLocalShapeCostFunction(), InitializeCostFunction(), and ~EMLocalShapeCostFunction().
int* EMLocalShapeCostFunction::PCAMeanShapeIncZ [private] |
Referenced by EMLocalShapeCostFunction(), InitializeCostFunction(), and ~EMLocalShapeCostFunction().
float** EMLocalShapeCostFunction::PCAMeanShapePtr [private] |
Referenced by EMLocalShapeCostFunction(), InitializeCostFunction(), and ~EMLocalShapeCostFunction().
int* EMLocalShapeCostFunction::ProbDataIncY [private] |
Referenced by EMLocalShapeCostFunction(), InitializeCostFunction(), and ~EMLocalShapeCostFunction().
int* EMLocalShapeCostFunction::ProbDataIncZ [private] |
Referenced by EMLocalShapeCostFunction(), InitializeCostFunction(), and ~EMLocalShapeCostFunction().
void** EMLocalShapeCostFunction::ProbDataPtr [private] |
Referenced by EMLocalShapeCostFunction(), InitializeCostFunction(), and ~EMLocalShapeCostFunction().
Referenced by InitializeCostFunction(), and InitRegSpecPara().
unsigned char* EMLocalShapeCostFunction::ROI [private] |
Referenced by EMLocalShapeCostFunction(), and InitializeCostFunction().
int EMLocalShapeCostFunction::ROI_LengthX [private] |
Referenced by DefinePCADataPtr(), and InitializeCostFunction().
int EMLocalShapeCostFunction::ROI_LengthY [private] |
Referenced by DefinePCADataPtr(), and InitializeCostFunction().
int EMLocalShapeCostFunction::ROI_LengthZ [private] |
Referenced by InitializeCostFunction().
int EMLocalShapeCostFunction::ROI_MaxX [private] |
Referenced by InitializeCostFunction().
int EMLocalShapeCostFunction::ROI_MaxY [private] |
Referenced by InitializeCostFunction().
int EMLocalShapeCostFunction::ROI_MaxZ [private] |
Referenced by InitializeCostFunction().
int EMLocalShapeCostFunction::ROI_MinX [private] |
Referenced by InitializeCostFunction().
int EMLocalShapeCostFunction::ROI_MinY [private] |
Referenced by InitializeCostFunction().
int EMLocalShapeCostFunction::ROI_MinZ [private] |
Referenced by InitializeCostFunction().
int* EMLocalShapeCostFunction::ROIExactVoxelCount [private] |
Referenced by ComputeCostFunction().
int EMLocalShapeCostFunction::ROIIncY [private] |
Referenced by InitializeCostFunction().
int EMLocalShapeCostFunction::ROIIncZ [private] |
Referenced by InitializeCostFunction().
vtkMultiThreader* EMLocalShapeCostFunction::Threader [private] |
Referenced by ComputeCostFunction(), EMLocalShapeCostFunction(), and ~EMLocalShapeCostFunction().
float** EMLocalShapeCostFunction::weights [private] |
Referenced by EMLocalShapeCostFunction(), InitializeCostFunction(), and ~EMLocalShapeCostFunction().
int EMLocalShapeCostFunction::weightsIncY [private] |
Referenced by InitializeCostFunction().
int EMLocalShapeCostFunction::weightsIncZ [private] |
Referenced by InitializeCostFunction().
1.6.1