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

#include <svkStatistics.h>

Inheritance diagram for svkStatistics:

Public Member Functions

 vtkTypeMacro (svkStatistics, vtkObject)
 

Static Public Member Functions

static svkStatisticsNew ()
 
static vtkDataArray * GetMaskedPixels (svkMriImageData *image, svkMriImageData *roi, double minIncluded=1, double maxIncluded=VTK_DOUBLE_MAX)
 
static vtkFloatArray * GetHistogram (vtkDataArray *data, double binSize, double startBin, int numBins, int smoothBins=0)
 
static double ComputeModeFromHistogram (vtkDataArray *histogram, double binSize, double startBin, int smoothBins)
 
static vector< double > ComputeQuantilesFromHistogram (int numQuantiles, vtkDataArray *histogram, double binSize, double startBin, int numBins, int smoothBins)
 
static double GetAutoAdjustedBinSize (svkMriImageData *image, double startBinSize, double startBin, int numBins)
 

Protected Member Functions

 svkStatistics ()
 Constructor. More...
 
 ~svkStatistics ()
 Destructor. 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?

Constructor & Destructor Documentation

svkStatistics ( )
protected

Constructor.

~svkStatistics ( )
protected

Destructor.

Member Function Documentation

double ComputeModeFromHistogram ( vtkDataArray *  histogram,
double  binSize,
double  startBin,
int  smoothBins 
)
static
vector< double > ComputeQuantilesFromHistogram ( int  numQuantiles,
vtkDataArray *  histogram,
double  binSize,
double  startBin,
int  numBins,
int  smoothBins 
)
static
double GetAutoAdjustedBinSize ( svkMriImageData image,
double  startBinSize,
double  startBin,
int  numBins 
)
static

This method is to support a legacy feature to automatically adjust the binsize.

References svkImageData::GetDcmHeader(), svkDcmHeader::GetStringValue(), and svkUtils::NearestInt().

Referenced by svkImageThreshold::RequestData(), and svkImageStatistics::RequestData().

vtkFloatArray * GetHistogram ( vtkDataArray *  data,
double  binSize,
double  startBin,
int  numBins,
int  smoothBins = 0 
)
static

Generates a histogram for the given vtkDataArray. If smoothBins is greater then one then the histogram is smoothed. If smoothBins is even then the next highest odd number is used.

Referenced by svkImageStatistics::ComputeSmoothStatistics(), svkImageThreshold::RequestData(), and svkImageMathematics::Update().

vtkDataArray * GetMaskedPixels ( svkMriImageData image,
svkMriImageData roi,
double  minIncluded = 1,
double  maxIncluded = VTK_DOUBLE_MAX 
)
static

This method takes every pixel within the input image data that correspond to values > 0 in the roi image. Only looks at the current scalars. Only values >= minIncluded and <= maxIncluded are included.

Referenced by svkImageStatistics::ComputeOrderStatistics(), svkImageStatistics::ComputeSmoothStatistics(), svkImageThreshold::RequestData(), svkImageStatistics::RequestData(), and svkImageMathematics::Update().

static svkStatistics* New ( )
static
vtkTypeMacro ( svkStatistics  ,
vtkObject   
)

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