#include <vtkImageEMGeneral.h>
Public Member Functions | |
| void | GEImageReader (vtkImageReader *VOLUME, const char FileName[], int Zmin, int Zmax, int ScalarType) |
| int | GEImageWriter (vtkImageData *Volume, char *FileName, int PrintFlag) |
| void * | GetPointerToVtkImageData (vtkImageData *Image, int DataType, int Ext[6]) |
| void | PrintMatrix (double **mat, int yMax, int xMax) |
| void | PrintMatrix3D (double ***mat, int zMax, int yMax, int xMax) |
| void | PrintSelf (ostream &os, vtkIndent indent) |
| void | SetInputIndex (int index, vtkImageData *image) |
| vtkTypeMacro (vtkImageEMGeneral, vtkObject) | |
Static Public Member Functions | |
| static float | CalcSimularityMeasure (vtkImageData *Image1, vtkImageData *Image2, float val, int PrintRes) |
| static float | CalcSimularityMeasure (vtkImageData *Image1, vtkImageData *Image2, float val, int PrintRes, int *BoundaryMin, int *BoundaryMax) |
| static int | CalculateGaussLookupTable (double *GaussLookupTable, double **ValueTable, double **InvCovMatrix, double InvSqrtDetCovMatrix, double *ValueVec, int GaussTableIndex, int TableSize, int NumberOfInputImages, int index) |
| static void | CalculateLogMeanandLogCovariance (double *mu, double *Sigma, double *LogMu, double *LogSigma, int NumberOfClasses, int SequenceMax) |
| static int | CalculateLogMeanandLogCovariance (double **Mu, double ***CovMatrix, double **LogMu, double ***LogCov, int NumberOfInputImages, int NumberOfClasses, int SequenceMax) |
| static double | CalculatingPJointDistribution (float *x, int *Vleft, double *mu, double **inv_cov, double inv_sqrt_det_cov, int SequenceMax, int setvar, int numvar) |
| static double | determinant (double **mat, int dim) |
| static double | FastGauss (const double inverse_sigma, const double x) |
| static float | FastGauss2 (const double inverse_sqrt_det_covariance, const float *x, const double *mu, double **inv_cov, const int virtualDim) |
| static float | FastGaussMulti (const double inverse_sqrt_det_covariance, const float *x, const double *mu, double **inv_cov, const int realDim, const int virtualDim) |
| static float | FastGaussMulti (const double inverse_sqrt_det_covariance, const float x, const int dim) |
| static double | FastGaussTest (const double inverse_sigma, const double x) |
| static double | GeneralGauss (float *x, double *mu, double **inv_cov, double inv_sqrt_det_cov, int n) |
| static double | GeneralGauss (double x, double m, double s) |
| static int | InvertMatrix (double **mat, double **inv_mat, int dim) |
| static double | LookupGauss (double *table, double *lbound, double *ubound, double *resolution, double *value, int NumberOfInputImages) |
| static double | LookupGauss (double *table, double lbound, double ubound, double resolution, double value) |
| static void | MatrixVectorMulti (double **mat, double *vec, double *res, int dim) |
| static vtkImageEMGeneral * | New () |
| static FILE * | OpenTextFile (const char *FileDir, const char FileName[], int Label, int LabelFlag, const char *LevelName, int LevelNameFlag, int iter, int IterFlag, const char FileSucessMessage[], char OpenFileName[]) |
| static void | SquareMatrix (double **Input, double **Output, int dim) |
Protected Member Functions | |
| void | DeleteVariables () |
| void | TestMatrixFunctions (int MatrixDim, int iter) |
| void | ThreadedExecute (vtkImageData **vtkNotUsed(inData), vtkImageData *vtkNotUsed(outData), int vtkNotUsed(outExt)[6], int vtkNotUsed(id)) |
| vtkImageEMGeneral () | |
| ~vtkImageEMGeneral () | |
Static Protected Member Functions | |
| static void | CalculateLogMeanandLogCovariance (double *mu, double *Sigma, double *LogMu, double *LogVariance, double *LogTestSequence, int NumberOfClasses, int SequenceMax) |
| static double | CalculateVectorMatrixVectorOperation (double **mat, double *vec, int offY, int dimY, int offX, int dimX) |
| static void | convMatrix3D (double ***mat3D, double ***U, int mat3DZlen, int mat3DYlen, int mat3DXlen, double v[], int vLen) |
| static double | InnerproductWithMatrixX (double **mat, int posY, int posX, int dimX, double *vec) |
| static double | InnerproductWithMatrixY (double *vec, double **mat, int posY, int dimY, int posX) |
Private Member Functions | |
| void | operator= (const vtkImageEMGeneral &) |
| vtkImageEMGeneral (const vtkImageEMGeneral &) | |
| vtkImageEMGeneral::vtkImageEMGeneral | ( | ) | [inline, protected] |
| vtkImageEMGeneral::~vtkImageEMGeneral | ( | ) | [inline, protected] |
| vtkImageEMGeneral::vtkImageEMGeneral | ( | const vtkImageEMGeneral & | ) | [private] |
| float vtkImageEMGeneral::CalcSimularityMeasure | ( | vtkImageData * | Image1, | |
| vtkImageData * | Image2, | |||
| float | val, | |||
| int | PrintRes | |||
| ) | [static] |
References New(), result, and vtkImageEMGeneral_CountLabel().
| float vtkImageEMGeneral::CalcSimularityMeasure | ( | vtkImageData * | Image1, | |
| vtkImageData * | Image2, | |||
| float | val, | |||
| int | PrintRes, | |||
| int * | BoundaryMin, | |||
| int * | BoundaryMax | |||
| ) | [static] |
References New(), result, and vtkImageEMGeneral_CountLabel().
Referenced by vtkImageEMAtlasSegmenter::PrintIntermediateResultsToFile().
| void vtkImageEMGeneral::CalculateLogMeanandLogCovariance | ( | double * | mu, | |
| double * | Sigma, | |||
| double * | LogMu, | |||
| double * | LogVariance, | |||
| double * | LogTestSequence, | |||
| int | NumberOfClasses, | |||
| int | SequenceMax | |||
| ) | [static, protected] |
References FastGauss(), and j.
| void vtkImageEMGeneral::CalculateLogMeanandLogCovariance | ( | double * | mu, | |
| double * | Sigma, | |||
| double * | LogMu, | |||
| double * | LogSigma, | |||
| int | NumberOfClasses, | |||
| int | SequenceMax | |||
| ) | [static] |
References CalculateLogMeanandLogCovariance(), and k.
| int vtkImageEMGeneral::CalculateLogMeanandLogCovariance | ( | double ** | Mu, | |
| double *** | CovMatrix, | |||
| double ** | LogMu, | |||
| double *** | LogCov, | |||
| int | NumberOfInputImages, | |||
| int | NumberOfClasses, | |||
| int | SequenceMax | |||
| ) | [static] |
References CalculatingPJointDistribution(), determinant(), InvertMatrix(), j, and k.
Referenced by CalculateLogMeanandLogCovariance(), and TestMatrixFunctions().
| double vtkImageEMGeneral::CalculateVectorMatrixVectorOperation | ( | double ** | mat, | |
| double * | vec, | |||
| int | offY, | |||
| int | dimY, | |||
| int | offX, | |||
| int | dimX | |||
| ) | [static, protected] |
References result.
Referenced by CalculateGaussLookupTable().
| double vtkImageEMGeneral::CalculatingPJointDistribution | ( | float * | x, | |
| int * | Vleft, | |||
| double * | mu, | |||
| double ** | inv_cov, | |||
| double | inv_sqrt_det_cov, | |||
| int | SequenceMax, | |||
| int | setvar, | |||
| int | numvar | |||
| ) | [static] |
References FastGauss(), FastGauss2(), and GeneralGauss().
Referenced by CalculateLogMeanandLogCovariance().
| void vtkImageEMGeneral::DeleteVariables | ( | ) | [protected] |
Reimplemented in vtkImageEMAtlasSegmenter, and vtkImageEMLocalSegmenter.
| double vtkImageEMGeneral::determinant | ( | double ** | mat, | |
| int | dim | |||
| ) | [static] |
| double vtkImageEMGeneral::FastGauss | ( | const double | inverse_sigma, | |
| const double | x | |||
| ) | [inline, static] |
| float vtkImageEMGeneral::FastGauss2 | ( | const double | inverse_sqrt_det_covariance, | |
| const float * | x, | |||
| const double * | mu, | |||
| double ** | inv_cov, | |||
| const int | virtualDim | |||
| ) | [inline, static] |
References EMSEGMENT_MINUS_ONE_OVER_2_LOG_2, EMSEGMENT_ONE_OVER_2_PI, EMSEGMENT_ONE_OVER_ROOT_2_PI, and vtkImageEMGeneral_qnexp2().
Referenced by CalculatingPJointDistribution(), and FastGaussMulti().
| float vtkImageEMGeneral::FastGaussMulti | ( | const double | inverse_sqrt_det_covariance, | |
| const float * | x, | |||
| const double * | mu, | |||
| double ** | inv_cov, | |||
| const int | realDim, | |||
| const int | virtualDim | |||
| ) | [inline, static] |
References FastGauss(), FastGauss2(), FastGaussMulti(), and j.
| float vtkImageEMGeneral::FastGaussMulti | ( | const double | inverse_sqrt_det_covariance, | |
| const float | x, | |||
| const int | dim | |||
| ) | [inline, static] |
References EMSEGMENT_MINUS_ONE_OVER_2_LOG_2, EMSEGMENT_ONE_OVER_ROOT_2_PI, and vtkImageEMGeneral_qnexp2().
Referenced by CalculateGaussLookupTable(), FastGaussMulti(), vtkEMAtlasSegment_ConditionalTissueProbability(), vtkImageEMAtlasAlgorithm(), and vtkImageEMAtlasSegmenter_MeanFieldApproximation3DPrivate().
| double vtkImageEMGeneral::FastGaussTest | ( | const double | inverse_sigma, | |
| const double | x | |||
| ) | [inline, static] |
| void vtkImageEMGeneral::GEImageReader | ( | vtkImageReader * | VOLUME, | |
| const char | FileName[], | |||
| int | Zmin, | |||
| int | Zmax, | |||
| int | ScalarType | |||
| ) |
Referenced by vtkImageEMAtlasSegmenter::HierarchicalSegmentation().
| int vtkImageEMGeneral::GEImageWriter | ( | vtkImageData * | Volume, | |
| char * | FileName, | |||
| int | PrintFlag | |||
| ) |
References New(), and vtkFileOps_WriteToFlippedGEFile().
Referenced by vtkImageEMAtlasSegmenter::PrintIntermediateResultsToFile(), and vtkImageEMAtlasSegmenter_PrintDataToOutputExtension().
| double vtkImageEMGeneral::GeneralGauss | ( | float * | x, | |
| double * | mu, | |||
| double ** | inv_cov, | |||
| double | inv_sqrt_det_cov, | |||
| int | n | |||
| ) | [static] |
References EMSEGMENT_ONE_OVER_ROOT_2_PI, and j.
| double vtkImageEMGeneral::GeneralGauss | ( | double | x, | |
| double | m, | |||
| double | s | |||
| ) | [static] |
References EMSEGMENT_ONE_OVER_ROOT_2_PI.
Referenced by CalculatingPJointDistribution().
| void * vtkImageEMGeneral::GetPointerToVtkImageData | ( | vtkImageData * | Image, | |
| int | DataType, | |||
| int | Ext[6] | |||
| ) |
Referenced by vtkImageEMAtlasSegmenter::HierarchicalSegmentation().
| double vtkImageEMGeneral::InnerproductWithMatrixX | ( | double ** | mat, | |
| int | posY, | |||
| int | posX, | |||
| int | dimX, | |||
| double * | vec | |||
| ) | [static, protected] |
References result.
Referenced by CalculateGaussLookupTable().
| double vtkImageEMGeneral::InnerproductWithMatrixY | ( | double * | vec, | |
| double ** | mat, | |||
| int | posY, | |||
| int | dimY, | |||
| int | posX | |||
| ) | [static, protected] |
References result.
Referenced by CalculateGaussLookupTable().
References determinant().
Referenced by CalculateLogMeanandLogCovariance(), EMAtlasSegment_CalcWeightedCovariance(), and vtkImageEMAtlasAlgorithm().
| double vtkImageEMGeneral::LookupGauss | ( | double * | table, | |
| double * | lbound, | |||
| double * | ubound, | |||
| double * | resolution, | |||
| double * | value, | |||
| int | NumberOfInputImages | |||
| ) | [static] |
References EMSEGMENT_TABLE_SIZE_MULTI.
| double vtkImageEMGeneral::LookupGauss | ( | double * | table, | |
| double | lbound, | |||
| double | ubound, | |||
| double | resolution, | |||
| double | value | |||
| ) | [static] |
| void vtkImageEMGeneral::MatrixVectorMulti | ( | double ** | mat, | |
| double * | vec, | |||
| double * | res, | |||
| int | dim | |||
| ) | [static] |
| vtkImageEMGeneral * vtkImageEMGeneral::New | ( | ) | [static] |
Reimplemented in vtkImageEMAtlasSegmenter, and vtkImageEMLocalSegmenter.
References autoSlicerTracto2regions::ret.
Referenced by CalcSimularityMeasure(), and GEImageWriter().
| FILE * vtkImageEMGeneral::OpenTextFile | ( | const char * | FileDir, | |
| const char | FileName[], | |||
| int | Label, | |||
| int | LabelFlag, | |||
| const char * | LevelName, | |||
| int | LevelNameFlag, | |||
| int | iter, | |||
| int | IterFlag, | |||
| const char | FileSucessMessage[], | |||
| char | OpenFileName[] | |||
| ) | [static] |
References FILE, fopen, and vtkFileOps::makeDirectoryIfNeeded().
| void vtkImageEMGeneral::operator= | ( | const vtkImageEMGeneral & | ) | [private] |
Reimplemented in vtkImageEMAtlasSegmenter, and vtkImageEMLocalSegmenter.
Referenced by TestMatrixFunctions().
Referenced by TestMatrixFunctions().
| void vtkImageEMGeneral::PrintSelf | ( | ostream & | os, | |
| vtkIndent | indent | |||
| ) | [inline] |
Reimplemented in vtkImageEMAtlasSegmenter, and vtkImageEMLocalSegmenter.
| void vtkImageEMGeneral::SetInputIndex | ( | int | index, | |
| vtkImageData * | image | |||
| ) | [inline] |
| void vtkImageEMGeneral::SquareMatrix | ( | double ** | Input, | |
| double ** | Output, | |||
| int | dim | |||
| ) | [static] |
Referenced by TestMatrixFunctions().
| void vtkImageEMGeneral::ThreadedExecute | ( | vtkImageData ** | vtkNotUsedinData, | |
| vtkImageData * | vtkNotUsedoutData, | |||
| int | vtkNotUsed(outExt)[6], | |||
| int | vtkNotUsedid | |||
| ) | [inline, protected] |
| vtkImageEMGeneral::vtkTypeMacro | ( | vtkImageEMGeneral | , | |
| vtkObject | ||||
| ) |
Reimplemented in vtkImageEMAtlasSegmenter, and vtkImageEMLocalSegmenter.
1.6.1