SIVIC API  0.9.26
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | List of all members
svkImageStatistics Class Reference

#include <svkImageStatistics.h>

Inheritance diagram for svkImageStatistics:
svkGenericAlgorithmWithPortMapper

Public Types

enum  svkImageStatisticsParameter {
  INPUT_IMAGE = 0, INPUT_ROI, NUM_BINS, BIN_SIZE,
  AUTO_ADJUST_BIN_SIZE, IGNORE_NEGATIVE_NUMBERS, START_BIN, SMOOTH_BINS,
  COMPUTE_HISTOGRAM, COMPUTE_MEAN, COMPUTE_MAX, COMPUTE_MIN,
  COMPUTE_STDEV, COMPUTE_VOLUME, COMPUTE_MODE, COMPUTE_MEDIAN,
  COMPUTE_QUANTILES, COMPUTE_SUM, COMPUTE_MOMENT_2, COMPUTE_MOMENT_3,
  COMPUTE_MOMENT_4, COMPUTE_VARIANCE, COMPUTE_SAMPLE_KURTOSIS, COMPUTE_SAMPLE_SKEWNESS,
  COMPUTE_POPULATION_KURTOSIS, COMPUTE_POPULATION_SKEWNESS, NORMALIZATION_METHOD, NORMALIZATION_ROI_INDEX,
  OUTPUT_FILE_NAME
}
 
enum  svkNormalizationOptions { NONE = 0, MODE, MEAN }
 

Public Member Functions

 vtkTypeMacro (svkImageStatistics, svkGenericAlgorithmWithPortMapper)
 
vtkXMLDataElement * GetOutput ()
 This will grab the output object as the correct data type to avoid casting. More...
 
- Public Member Functions inherited from svkGenericAlgorithmWithPortMapper
 vtkTypeMacro (svkGenericAlgorithmWithPortMapper, vtkAlgorithm)
 
void SetInputPortsFromXML (vtkXMLDataElement *element)
 Uses port mapper to parse an XML element and convert it into input port data objects. More...
 
svkAlgorithmPortMapperGetPortMapper ()
 Get the internal XML interpreter. More...
 
void PrintSelf (ostream &os, vtkIndent indent)
 Prints all input parameters set. More...
 

Static Public Member Functions

static svkImageStatisticsNew ()
 

Protected Member Functions

 svkImageStatistics ()
 Constructor. More...
 
 ~svkImageStatistics ()
 Destructor. More...
 
virtual int RequestData (vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
 Does the computation of the statistics. More...
 
void ComputeAccumulateStatistics (svkMriImageData *image, svkMriImageData *roi, double binSize, vtkDataArray *maskedPixels, vtkXMLDataElement *result, double normalization=0)
 
void ComputeOrderStatistics (svkMriImageData *image, svkMriImageData *roi, vtkDataArray *maskedPixels, vtkXMLDataElement *result)
 
void ComputeDescriptiveStatistics (svkMriImageData *image, svkMriImageData *roi, vtkDataArray *maskedPixels, vtkXMLDataElement *result)
 
void ComputeSmoothStatistics (svkMriImageData *image, svkMriImageData *roi, double binSize, vtkDataArray *maskedPixel, vtkXMLDataElement *results, double normalization=0)
 
void AddHistogramTag (vtkDataArray *histogram, double binSize, double startBin, int numBins, int smoothBins, vtkXMLDataElement *results)
 
- Protected Member Functions inherited from svkGenericAlgorithmWithPortMapper
 svkGenericAlgorithmWithPortMapper ()
 
 ~svkGenericAlgorithmWithPortMapper ()
 
virtual int FillInputPortInformation (int port, vtkInformation *info)
 All ports must be initialized using the svkAlgorithmPortMapper BEFORE this method is called. More...
 
virtual int FillOutputPortInformation (int port, vtkInformation *info)
 All ports must be initialized using the svkAlgorithmPortMapper BEFORE this method is called. More...
 
virtual int ProcessRequest (vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
 Calls RequestData when the correct request comes through. More...
 

Additional Inherited Members

- Protected Attributes inherited from svkGenericAlgorithmWithPortMapper
svkAlgorithmPortMapperportMapper
 The port mapper used to set the input port parameters. More...
 

Detailed Description

The purpose of this class is to take in an XML element that defines a set of ROI's, a set of images, filters to apply to the ROI's/images, and a set of statistics to be computed. Then statistics for every combination will be computed using svkImageStatistics and an XML data element will be output containing the results of the computation.

TODO: Should this be converted into an svkImageAlgorithmWithPortMapper?

Member Enumeration Documentation

Enumerator
INPUT_IMAGE 
INPUT_ROI 
NUM_BINS 
BIN_SIZE 
AUTO_ADJUST_BIN_SIZE 
IGNORE_NEGATIVE_NUMBERS 
START_BIN 
SMOOTH_BINS 
COMPUTE_HISTOGRAM 
COMPUTE_MEAN 
COMPUTE_MAX 
COMPUTE_MIN 
COMPUTE_STDEV 
COMPUTE_VOLUME 
COMPUTE_MODE 
COMPUTE_MEDIAN 
COMPUTE_QUANTILES 
COMPUTE_SUM 
COMPUTE_MOMENT_2 
COMPUTE_MOMENT_3 
COMPUTE_MOMENT_4 
COMPUTE_VARIANCE 
COMPUTE_SAMPLE_KURTOSIS 
COMPUTE_SAMPLE_SKEWNESS 
COMPUTE_POPULATION_KURTOSIS 
COMPUTE_POPULATION_SKEWNESS 
NORMALIZATION_METHOD 
NORMALIZATION_ROI_INDEX 
OUTPUT_FILE_NAME 
Enumerator
NONE 
MODE 
MEAN 

Constructor & Destructor Documentation

svkImageStatistics ( )
protected
~svkImageStatistics ( )
protected

Destructor.

Member Function Documentation

void AddHistogramTag ( vtkDataArray *  histogram,
double  binSize,
double  startBin,
int  numBins,
int  smoothBins,
vtkXMLDataElement *  results 
)
protected

Inserts the histogram tag into the result

References svkTypeUtils::IntToString().

Referenced by svkImageStatistics::ComputeSmoothStatistics().

void ComputeAccumulateStatistics ( svkMriImageData image,
svkMriImageData roi,
double  binSize,
vtkDataArray *  maskedPixels,
vtkXMLDataElement *  results,
double  normalization = 0 
)
protected
void ComputeDescriptiveStatistics ( svkMriImageData image,
svkMriImageData roi,
vtkDataArray *  maskedPixels,
vtkXMLDataElement *  results 
)
protected
void ComputeOrderStatistics ( svkMriImageData image,
svkMriImageData roi,
vtkDataArray *  maskedPixels,
vtkXMLDataElement *  results 
)
protected
void ComputeSmoothStatistics ( svkMriImageData image,
svkMriImageData roi,
double  binSize,
vtkDataArray *  maskedPixels,
vtkXMLDataElement *  results,
double  normalization = 0 
)
protected
vtkXMLDataElement * GetOutput ( )

This will grab the output object as the correct data type to avoid casting.

References svkXML::GetValue().

Referenced by svkImageStatistics::RequestData().

static svkImageStatistics* New ( )
static
int RequestData ( vtkInformation *  request,
vtkInformationVector **  inputVector,
vtkInformationVector *  outputVector 
)
protectedvirtual

The documentation for this class was generated from the following files: