[Insight-users] ShiftScaleImageFilter Bug
Andy Eow
vtkitk at hotmail.com
Sat Oct 30 01:47:00 EDT 2004
Hi,
According to the software guide, ShiftScaleImageFilter is suppose to perform the following operation:
OutputPixel = InputPixel * Scale + Shift
However, the code in itkShiftScaleImageFilter.txx does the opposite instead:
value = (static_cast<RealType>(it.Get()) + m_Shift) * m_Scale;
Is this a bug? It does make a lot more sense for the multiplication operation to take place first before the scalar shift.
Cheers,
Andy
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://public.kitware.com/pipermail/insight-users/attachments/20041030/afc5ee4b/attachment.htm
More information about the Insight-users
mailing list