Commit f65ab5af authored by Manuel Grizonnet's avatar Manuel Grizonnet
Browse files

MRG

parents 85c8a318 ae69343a
...@@ -141,8 +141,7 @@ WaveletOperatorBase<TMotherWaveletOperator, TPixel, VDimension, TAllocator> ...@@ -141,8 +141,7 @@ WaveletOperatorBase<TMotherWaveletOperator, TPixel, VDimension, TAllocator>
coeff = highPassCoeff; coeff = highPassCoeff;
const double epsilon = 0.0000000001; while ((coeff[0] == coeff[coeff.size() - 1]) && (coeff[0] == 0.0))
while ((coeff[0] == coeff[coeff.size() - 1]) && (vcl_abs(coeff[0]) < epsilon))
{ {
ReduceFilterLength(coeff); ReduceFilterLength(coeff);
} }
...@@ -169,8 +168,7 @@ WaveletOperatorBase<TMotherWaveletOperator, TPixel, VDimension, TAllocator> ...@@ -169,8 +168,7 @@ WaveletOperatorBase<TMotherWaveletOperator, TPixel, VDimension, TAllocator>
coeff = highPassCoeff; coeff = highPassCoeff;
const double epsilon = 0.0000000001; while ((coeff[0] == coeff[coeff.size() - 1]) && (coeff[0] == 0.0))
while ((coeff[0] == coeff[coeff.size() - 1]) && (vcl_abs(coeff[0]) < epsilon))
{ {
assert(coeff.size() > 1); assert(coeff.size() > 1);
ReduceFilterLength(coeff); ReduceFilterLength(coeff);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment