[Insight-developers] Experiment: new Statistics and Backward compatibility

Bill Lorensen bill.lorensen at gmail.com
Sat Apr 11 00:26:25 EDT 2009


I just checked in changes that allow the new Statistics to build with
the Borland compiler. The changes should be portable.

On Fri, Apr 10, 2009 at 1:04 PM, Bill Lorensen <bill.lorensen at gmail.com> wrote:
> Folks,
>
> I spent 1 hour this morning to make the following classes available in
> the new statistics kit:
>
> itkCovarianceCalculator.h
> itkImageToListAdaptor.h
> itkMeanCalculator.h
> itkScalarImageTextureCalculator.h
>
> The old, unmodified tests compile and run without error:
>  1/  4 Testing itkMeanCalculatorBCTest          Passed
>  2/  4 Testing itkScalarImageTextureCalculato   Passed
>  3/  4 Testing itkCovarianceCalculatorTest      Passed
>  4/  4 Testing itkWeightedMeanCalculatorTest    Passed
>
> I did this without changing any code in the new statistics. Each new
> class was made a subclass of a similar new statistics class.
>
> I'll do few more over the few days. Just to see how a few hours of my
> time might save many more customer hours.
>
> It may be, that the calculators are easy to do and I'll run into a
> roadblock on other classes.
>
> My methodoglogy:
> 1) Created SourceBC and TestingBC in the new statistics.
> 2) Copied the "class to be saved" header file into SourceBC.
> 3) Change the superclass to the similar new statistics superclass
> (i.e. MeanCalculator to MeanFilter).
> 4) Keep the class constant code and change superclass defs.
> 5) Remove all of the rest of the header. In some cases I needed to add
> a metjhod for BC that called a Superclass method.
> 6) Copy the test unmodified to testingBC.
> 7) EditCMakeLists.txt file to add test.
>  8) Add test to itkStatisticsBCTests.
>
> I'll keep you posted,
>
> Bill
>


More information about the Insight-developers mailing list