X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=tools%2FclitkImageArithmGenericFilter.txx;h=37fa000d3c3e402a1dac421696e070ed8f4f4e90;hb=d2264227eb56300989795b8fd305cc3e1cfbe081;hp=f3040750d6f8cb61b81ffb9052f511ad579cd761;hpb=3abd767ea72e82f5f3de805917014a0ae2a71da9;p=clitk.git diff --git a/tools/clitkImageArithmGenericFilter.txx b/tools/clitkImageArithmGenericFilter.txx index f304075..37fa000 100644 --- a/tools/clitkImageArithmGenericFilter.txx +++ b/tools/clitkImageArithmGenericFilter.txx @@ -397,7 +397,7 @@ void clitk::ImageArithmGenericFilter::ComputeImage(Iter1 it, Ite ito.Set(-log(0.5 / mScalar) ); } else { - ito.Set(-log(PixelTypeDownCast((double)it.Get() / mScalar)) ); + ito.Set(PixelTypeDownCast(-log((double)it.Get() / mScalar)) ); } ++it; ++ito;