otbShiftScaleVectorImageFilter and otbShiftScaleSampleListFilter inconsistent with itkShiftScaleImageFilter
Mantis Issue 514, reported by jrziehn, assigned to jmichel, created: 2012-02-08
The original itkShiftScaleImageFilter applies the operation
xnew = (xold + shift) * scale
However both the otbShiftScaleVectorImageFilter and the otbShiftScaleSampleListFilter apply
xnew = (xold - shift) / scale
This behavior is counterintuitive since the similarity in the filter names suggest they follow the same principles as the ITK filter.
Futhermore it is not mentioned in the Doxygen of the ...VectorImageFilter.
The ...SampleListFilter gives the formula but does not explicitly mention a difference from the ITK filter.
The current behavior is surprising but useful and it would seem reasonable to continue offering it (possibly along with a filter that matches the ITK name and behavior or allows switching).
1447149241 - julienhttps://git.orfeo-toolbox.org/otb.git/commitdiff/3f2ef7a1ca0b7a20facd86bf479848ec14b9a04c