Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Main Repositories
otb
Commits
2280d09d
Commit
2280d09d
authored
Jul 18, 2011
by
Manuel Grizonnet
Browse files
ENH:change condition test if coeff[0] is numerically zero
parent
3cca75c3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Code/MultiScale/otbWaveletOperatorBase.txx
View file @
2280d09d
...
...
@@ -141,7 +141,8 @@ WaveletOperatorBase<TMotherWaveletOperator, TPixel, VDimension, TAllocator>
coeff = highPassCoeff;
while ((coeff[0] == coeff[coeff.size() - 1]) && (coeff[0] == 0.0))
const double epsilon = 0.0000000001;
while ((coeff[0] == coeff[coeff.size() - 1]) && (vcl_abs(coeff[0]) < epsilon))
{
ReduceFilterLength(coeff);
}
...
...
@@ -168,7 +169,8 @@ WaveletOperatorBase<TMotherWaveletOperator, TPixel, VDimension, TAllocator>
coeff = highPassCoeff;
while ((coeff[0] == coeff[coeff.size() - 1]) && (coeff[0] == 0.0))
const double epsilon = 0.0000000001;
while ((coeff[0] == coeff[coeff.size() - 1]) && (vcl_abs(coeff[0]) < epsilon))
{
assert(coeff.size() > 1);
ReduceFilterLength(coeff);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment