[Insight-users] ShiftScaleImageFilter problem
Stefano Diciotti
diciotti at asp . det . unifi . it
Fri, 05 Dec 2003 08:56:02 +0100
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