Proposals:Refactoring Statistics Framework 2007 Migration Users Guide: Difference between revisions
From KitwarePublic
Jump to navigationJump to search
Line 196: | Line 196: | ||
|- | |- | ||
| MeanCalculator || Refactored into MeanFilter || | | MeanCalculator || Refactored into MeanFilter || | ||
* SetSample() method | * SetSample() method replaced with SetInput() | ||
* GetOutput() method return type modified ( the new signature returns a data object decorator ) | * GetOutput() method return type modified ( the new signature returns a data object decorator ) | ||
|| | || | ||
Line 202: | Line 202: | ||
** SetInput() | ** SetInput() | ||
** GetOutput() (returns a data object decorated type of the mean vector ) | ** GetOutput() (returns a data object decorated type of the mean vector ) | ||
* GetMean() (returns the mean vector as it is without any decoration ) | * GetMean() (returns the mean vector as it is without any decoration ) | ||
|- | |- | ||
| WeightedMeanCalculator || Refactored into WeightedMeanFilter || | | WeightedMeanCalculator || Refactored into WeightedMeanFilter || | ||
* SetSample() method replaced with SetInput() | * SetSample() method replaced with SetInput() | ||
* SetWeightFunction() | * SetWeights() method input argument modified ( the new signature takes dataobject decorated weight array) | ||
* SetWeightFunction() method replaced with SetWeightingFunction() | |||
* GetWeights() method return type modified ( new signature returns a data object decorator of the weight array) | |||
* GetWeightingFunction() method replaced with GetWeightingFunction() | |||
* GetOutput() method return type modified ( the new signature returns a data object decorator of the mean ) | |||
|| | || | ||
* | * Derives from ProcessObject and the following methods added to integrate the class into the pipeline | ||
* | ** SetInput() | ||
** GetOutput() (returns a data object decorated type of the mean vector ) | |||
** SetWeights() (Takes dataObjecte decorated version of weight array type ) | |||
** SetWeightingFunction (Takes dataObject decorated version of weighting function type ) | |||
|- | |- | ||
| CovarianceCalculator || Refactored into CovarianceFilter || | | CovarianceCalculator || Refactored into CovarianceFilter || |
Revision as of 15:26, 7 May 2007
How To Migrate your code to the New Statistics Framework
Measurement Containers
Class Name | Fate | Deprecated API | New API |
---|---|---|---|
Sample | Refactored |
|
|
Subsample | Refactored |
|
|
ListSampleBase | Deprecated. The class was unecessary, it was providing only a Search() method that should in fact be provided by a process class, not a data container. |
|
|
ListSample | Refactored Luis to add more here | The iterators API was updated, const-correctness is now enforced | |
MembershipSample | Refactoring in Progress Luis |
|
|
Histogram | Refactored Luis to add more here | ||
VariableDimensionHistogram | Pending | ||
KdTree | Pending |
Frequency Containers
Class Name | Fate | Deprecated API | New API |
---|---|---|---|
DenseFrequencyContainer | |||
SparseFrequencyContainer |
Process Objects
Class Name | Fate | Deprecated API | New API |
---|---|---|---|
SampleClassifier | |||
SampleClassifierWithMask |
Traits
Class Name | Fate | Deprecated API | New API |
---|---|---|---|
MeasurementVectorTraits | Refactored (same name) |
|
MeanShift
Class Name | Fate | Deprecated API | New API |
---|---|---|---|
Adaptors
Class Name | Fate | Deprecated API | New API |
---|---|---|---|
ImageToCoocurrenceListAdaptor | UNDECIDED | ||
ImageToListAdaptor | Refactored into "ImageToListSampleAdaptor". This class handles images with scalar, fixed size array (itk::FixedArray) and variable length vector (itk::VariableLengthVector) pixel types. |
|
|
ScalarImageToListAdaptor | Deprecated ( This class is redundant as the new ImageToListSampleAdaptor also handles scalar images with scalar pixel type. ) | ||
JointDomainImageToListAdaptor | Refactored into "JointDomainImageToListSampleAdaptor" |
|
|
PointSetToListAdapor | Refactored into "PointSetToListSampleAdaptor" |
|
|
Univariate Distributions
Class Name | Fate | Deprecated API | New API |
---|---|---|---|
Algorithms
Class Name | Fate | Deprecated API | New API |
---|---|---|---|
Calculators
Class Name | Fate | Deprecated API | New API |
---|---|---|---|
MeanCalculator | Refactored into MeanFilter |
|
|
WeightedMeanCalculator | Refactored into WeightedMeanFilter |
|
|
CovarianceCalculator | Refactored into CovarianceFilter |
|
|
WeightedCovarianceCalculator | Refactored into WeightedCovarianceFilter |
|
|
GreyLevelCooccurrenceMatrixTextureCoefficientsCalculator | Refactored into HistogramToTextureFeaturesFilter | now derives from ProcessObject, SetInput(), GetOutput() | |
ScalarImageTextureCalculator | To be Refactored into ScalarImageToTextureFeaturesFilter |
|
Generators
Class Name | Fate | Deprecated API | New API |
---|---|---|---|
ListSampleToHistogramGenerator | Refactored into SampleToHistogramFilter | ||
ImageToListGenerator | Refactored into ImageToListSampleFilter | ||
ScalarImageToGreyLevelCooccurrenceMatrixGenerator | Refactored into ScalarImageToCooccurrenceMatrixFilter |
| |
MaskedScalarImageToGreyLevelCooccurrenceMatrixGenerator | Deprecated ( ScalarImageToCooccurrenceMatrixFilter accepts a mask image in addition to the input image ) |
Filters
Class Name | Fate | Deprecated API | New API |
---|---|---|---|
ListSampleToHistogramFilter |
Multivariate Density Functions
Class Name | Fate | Deprecated API | New API |
---|---|---|---|
Distance Metrics
Class Name | Fate | Deprecated API | New API |
---|---|---|---|
Components
Class Name | Fate | Deprecated API | New API |
---|---|---|---|
Estimators
Class Name | Fate | Deprecated API | New API |
---|---|---|---|