Proposals:Refactoring Statistics Framework 2007 Migration Users Guide: Difference between revisions
From KitwarePublic
Jump to navigationJump to search
Line 365: | Line 365: | ||
|- | |- | ||
| ListSampleToHistogramFilter || Refactored as SampleToHistogramFilter || | | ListSampleToHistogramFilter || Refactored as SampleToHistogramFilter || | ||
* | * It used to derive from Object, now derives from ProcessObject | ||
* It used to expect a ListSample as input, it now takes any class that complies with the Sample API | |||
* SetListSample() removed. The method SetInput() should be used instead. | |||
* SetHistogram() removed. The resulting histogram is now obtained from the GetOutput() method, according to a standard Filter API. | |||
* Update() implementation removed, the default Update() of the superclass ProcessObject() provides the correct functionality. | |||
* Run() method removed. The method Update() in the superclass provides the equivalent functionality. | |||
|| | || | ||
* It derives now from ProcessObject | * It derives now from ProcessObject | ||
* SetInput( const SampleType * ) | * SetInput( const SampleType * ) | ||
* const SampleType * GetInput() const | * const SampleType * GetInput() const | ||
* const HistogramType * GetOutput() const | |||
* Copy Constructor and Operator=() are declared protected are purposely not implemented in order to enforce the correct use of SmartPointers. | * Copy Constructor and Operator=() are declared protected are purposely not implemented in order to enforce the correct use of SmartPointers. | ||
* MakeOutput() method added, so that the filter is compatible with the DisconnectPipeline() API of the output DataObject. | * MakeOutput() method added, so that the filter is compatible with the DisconnectPipeline() API of the output DataObject. |
Revision as of 19:44, 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 |
|
|
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 |
|
|
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 ( Use ScalarImageToCooccurrenceMatrixFilter instead since this takes a mask image in addition to the input image ) |
Filters
Class Name | Fate | Deprecated API | New API |
---|---|---|---|
ListSampleToHistogramFilter | Refactored as SampleToHistogramFilter |
|
|
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 |
---|---|---|---|