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

Backed out changeset f0c920939714

parent 2280d09d
......@@ -141,8 +141,7 @@ WaveletOperatorBase<TMotherWaveletOperator, TPixel, VDimension, TAllocator>
coeff = highPassCoeff;
const double epsilon = 0.0000000001;
while ((coeff[0] == coeff[coeff.size() - 1]) && (vcl_abs(coeff[0]) < epsilon))
while ((coeff[0] == coeff[coeff.size() - 1]) && (coeff[0] == 0.0))
{
ReduceFilterLength(coeff);
}
......@@ -169,8 +168,7 @@ WaveletOperatorBase<TMotherWaveletOperator, TPixel, VDimension, TAllocator>
coeff = highPassCoeff;
const double epsilon = 0.0000000001;
while ((coeff[0] == coeff[coeff.size() - 1]) && (vcl_abs(coeff[0]) < epsilon))
while ((coeff[0] == coeff[coeff.size() - 1]) && (coeff[0] == 0.0))
{
assert(coeff.size() > 1);
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