[Insight-users] ShiftScaleImageFilter problem

Luis Ibanez luis . ibanez at kitware . com
Fri, 05 Dec 2003 10:55:23 -0500


Hi Stefano,

Thanks for pointing this out.

You are right the equation in the SoftwareGuide doesn't correspond
the to actual operation applied in the code.  We just commited a
fix for the documentation (the code stays the same).  This correction
however will not show up in the online PDF document for a while.


Thanks



    Luis


---------------------------------
Stefano Diciotti wrote:

> Hi,
> I have found a difference between the documentation and the coding 
> regarding the ShiftScaleImageFilter class:
> 
> On line 95 of "Insight/Code/BasicFilters/itkShiftScaleImageFilter.txx" 
> we have:
> 
> value = (static_cast<RealType>(it.Get()) + m_Shift) * m_Scale;
> 
> Instead in the "Itk Software Guide", on page 121, the formula used is:
> outputPixel = inputPixel * Scale + Shift
> 
> Personally, I think that the formulation given in the documentation is 
> more correct, however it is important to match the two formulas.
> 
> Many thanks,
> 
> Stefano
> 
> -- 
> Ing. Stefano Diciotti
> Dept. of Electronics and Telecommunications
> University of Florence, Italy
> Tel. +39 055 4796 443
> e-mail diciotti at asp . det . unifi . it
> 
> 
> 
> _______________________________________________
> Insight-users mailing list
> Insight-users at itk . org
> http://www . itk . org/mailman/listinfo/insight-users
>