SIVIC API
0.9.26
|
#include <svkStatistics.h>
Public Member Functions | |
vtkTypeMacro (svkStatistics, vtkObject) | |
Static Public Member Functions | |
static svkStatistics * | New () |
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... | |
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?
|
protected |
Constructor.
|
protected |
Destructor.
|
static |
Referenced by svkImageStatistics::ComputeSmoothStatistics(), and svkImageThreshold::RequestData().
|
static |
Referenced by svkImageStatistics::ComputeSmoothStatistics(), and svkImageMathematics::Update().
|
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().
|
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().
|
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 |
vtkTypeMacro | ( | svkStatistics | , |
vtkObject | |||
) |