Proposals:Refactoring Statistics Framework 2007 Migration Users Guide: Difference between revisions
From KitwarePublic
Jump to navigationJump to search
Line 66: | Line 66: | ||
* The iterators API was updated, | * The iterators API was updated, | ||
** const-correctness is now enforced | ** const-correctness is now enforced | ||
** Constructor with instance identifier was moved to the protected section | |||
** ConstIterator does not refer to the non-const Iterator any more. | |||
** Method that allowed to convert ConstIterator into non-const Iterators were removed because they were facilitating the violation of const-correctness | |||
* Various API modifications | * Various API modifications | ||
** SearchResultVectorType trait was removed. Search is to be implemented as an external algorithm. | ** SearchResultVectorType trait was removed. Search is to be implemented as an external algorithm. | ||
Line 72: | Line 75: | ||
** Size() method used to return unsigned int, now it returns InstanceIdentifier (keeping 64bits in mind) | ** Size() method used to return unsigned int, now it returns InstanceIdentifier (keeping 64bits in mind) | ||
** GetMeasurementVector() instance identifier argument is now passed by copy, since it is just a number | ** GetMeasurementVector() instance identifier argument is now passed by copy, since it is just a number | ||
** | ** SetMeasurementVector() now passes InstanceIdentifier by copy, not by const reference | ||
** SetMeasurement() now passes InstanceIdentifier by copy, not by const reference | ** SetMeasurement() now passes InstanceIdentifier by copy, not by const reference | ||
** GetFrequency() now passes InstanceIdentifier by copy, not by const reference | ** GetFrequency() now passes InstanceIdentifier by copy, not by const reference | ||
|| | || | ||
* It derives now from the Sample class directly | * It derives now from the Sample class directly | ||
* Iterators | |||
** ConstIterator use friendship to the ListSample | |||
** operator-- removed | |||
** non-const Iterator is no longer a friend of the ConstIterator. Instead it derives from the ConstIterator | |||
|- | |- | ||
| MembershipSample || Refactoring in Progress <font style="color: #006400;">'''Luis'''</font> || | | MembershipSample || Refactoring in Progress <font style="color: #006400;">'''Luis'''</font> || |
Revision as of 18:33, 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 |
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 |
---|---|---|---|