Proposals:Refactoring Statistics Framework 2007 Migration Users Guide: Difference between revisions
From KitwarePublic
Jump to navigationJump to search
Line 138: | Line 138: | ||
! Class Name !! Fate !! Deprecated API !! New API | ! Class Name !! Fate !! Deprecated API !! New API | ||
|- | |- | ||
| ImageToCoocurrenceListAdaptor || UNDECIDED || | | ImageToCoocurrenceListAdaptor || UNDECIDED || || | ||
|- | |- | ||
| ImageToListAdaptor || Refactored into "ImageToListSampleAdaptor" | | ImageToListAdaptor || Refactored into "ImageToListSampleAdaptor". This class handles images with scalar, fixed size array (itk::FixedArray) and variable length vector (itk::VariableLengthVector) pixel types. | ||
|| | |||
* Doesn't derive from ListSampleBase since ListSampleBase has been deprecated | |||
* removed the second template parameter ( MeasurementVectorType ) since it is redundant. The measurement vector type is determined from the input Image type using MeasurementVectorPixelTraits. | |||
* GetUseBuffer() : This method is renamed as GetUsePointContainer(). The term "buffer" is misleading. This flag is used in the class to differentiate between accessing the pixel value directly from the pixel container or using GetPixel(Index) method after computing the index for the given id using ComputeIndex() method. In addition to the Get method, Set methods have been added as indicated in the new API column. | |||
|| | |||
* The class derives from ListSample with the measurement vector type determined from the input image type | |||
* The Iterator and ConstIterator API is modified to be consistent with the iterator and constiterators of the ListSample class. | |||
* Added SetUsePixelContainer( bool ) : To turn on and off the UsePixelContainer flag. | |||
* Added UsePixelContainerOn(), UsePixelContainerOff() : convenient methods to turn on/off the UsePixelContainer flag. | |||
* | |||
|- | |- | ||
| ScalarImageToListAdaptor || Deprecated ( This class is redundant as the new ImageToListSampleAdaptor | | ScalarImageToListAdaptor || Deprecated ( This class is redundant as the new ImageToListSampleAdaptor also handles scalar images with scalar pixel type. ) || || | ||
|- | |- | ||
| JointDomainImageToListAdaptor || Refactored into "JointDomainImageToListSampleAdaptor" || || | | JointDomainImageToListAdaptor || Refactored into "JointDomainImageToListSampleAdaptor" || || |
Revision as of 17:15, 5 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 | Refactored Luis to add more here |
|
|
Histogram | Refactored Luis to add more here | ||
VariableDimensionHistogram | |||
KdTree | Refactored Luis to add more here |
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 |
---|---|---|---|
CovarianceCalculator | Refactored into CovarianceFilter | SetMean() because it was inconsistent | GetOutput(), SetInput(), GetMean() |
GreyLevelCooccurrenceMatrixTextureCoefficientsCalculator | Refactored into HistogramToTextureFeaturesFilter | now derives from ProcessObject, SetInput(), GetOutput() | |
MeanCalculator | Refactored into MeanFilter | SetSample() method replaced with SetInput() | now derives from ProcessObject |
ScalarImageTextureCalculator | Refactored into (???Filter) | ||
WeightedCovarianceCalculator | Refactored into WeightedCovarianceFilter |
|
|
WeightedMeanCalculator | Refactored into WeightedMeanFilter |
|
|
Generators
Class Name | Fate | Deprecated API | New API |
---|---|---|---|
Filters
Class Name | Fate | Deprecated API | New API |
---|---|---|---|
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 |
---|---|---|---|