Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Main Repositories
otb
Commits
8088150a
Commit
8088150a
authored
Feb 21, 2017
by
Julien Michel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
BUG: Compare double with epsilon (from RFC review)
parent
12d8a3bf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
Modules/Filtering/SAR/include/otbSarDeburstImageFilter.txx
Modules/Filtering/SAR/include/otbSarDeburstImageFilter.txx
+2
-2
No files found.
Modules/Filtering/SAR/include/otbSarDeburstImageFilter.txx
View file @
8088150a
...
...
@@ -45,11 +45,11 @@ SarDeburstImageFilter<TImage>::GenerateOutputInformation()
ImageType * outputPtr = this->GetOutput();
// Check that azimuth spacing has not been modified
if(inputPtr->GetSpacing()[1]
!=
1.)
if(
vcl_abs(
inputPtr->GetSpacing()[1]
-
1.)
>=std::numeric_limits<double>::epsilon())
itkExceptionMacro("Can not perform deburst if input image azimuth spacing is not 1.");
// Check that the azimuth sampling grid has not been modified
if(inputPtr->GetOrigin()[1]-static_cast<long>(inputPtr->GetOrigin()[1])
!= 0.5
)
if(
vcl_abs(
inputPtr->GetOrigin()[1]-static_cast<long>(inputPtr->GetOrigin()[1])
-0.5)>=std::numeric_limits<double>::epsilon()
)
itkExceptionMacro("Can not perform deburst if input image azimuth origin is not N.5");
// Retrieve input image keywordlist
...
...
Write
Preview
Markdown
is supported
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