43 #ifndef SVK_METABOLITE_RATIO_Z_SCORES_H
44 #define SVK_METABOLITE_RATIO_Z_SCORES_H
47 #include <vtkObject.h>
48 #include <vtkObjectFactory.h>
49 #include <vtkInformation.h>
90 void SetSeriesDescription(vtkstd::string newSeriesDescription);
91 void SetVerbose(
bool isVerbose );
92 void LimitToSelectedVolume(
float fraction = 0.5001);
93 void LimitToSelectedVolume(
short* selectedVolumeMask);
97 void SetZScoreThresholds(
double lowerThreshold,
double upperThreshold );
105 virtual int RequestData(
106 vtkInformation* request,
107 vtkInformationVector** inputVector,
108 vtkInformationVector* outputVector
111 virtual int FillInputPortInformation(
int vtkNotUsed(port), vtkInformation* info );
112 virtual int FillOutputPortInformation(
int vtkNotUsed(port), vtkInformation* info );
119 void InitQuantificationMask();
120 int GetTotalVoxels();
121 void ComputeZScore();
122 virtual void UpdateProvenance();
123 double GetMean(
double* pixels,
int numVoxels );
124 double GetDistanceSD(
double* pixels,
int numVoxels);
125 double GetRegressionSlope(
126 double* numeratorPixels,
127 double* denominatorPixels,
128 double numeratorMean,
129 double denominatorMean,
132 double GetRegressionSlopeZeroIntercept(
133 double* numeratorPixels,
134 double* denominatorPixels,
137 double GetRegressionIntercept(
double slope,
double numeratorMean,
double denominatorMean);
138 void GetRegression(
double& slope,
double& intercept);
139 void GetDistanceFromRegression(
double slope,
double intercept );
140 void GetZScores(
double slope,
double intercept);
145 vtkstd::string newSeriesDescription;
147 float useSelectedVolumeFraction;
148 short* quantificationMask;
149 short* iterationMask;
150 double zscoreLowerThreshold;
151 double zscoreUpperThreshold;
160 #endif //SVK_METABOLITE_RATIO_Z_SCORES_H
Definition: svkImageAlgorithm.h:70