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
c5c18476
Commit
c5c18476
authored
Feb 16, 2016
by
Guillaume Pasero
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ENH: throw exception if mask and image don't match
parent
31a5e9fd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
Modules/Filtering/ImageManipulation/include/otbMaskedIteratorDecorator.txx
.../ImageManipulation/include/otbMaskedIteratorDecorator.txx
+2
-3
No files found.
Modules/Filtering/ImageManipulation/include/otbMaskedIteratorDecorator.txx
View file @
c5c18476
...
...
@@ -19,7 +19,7 @@
#define otbMaskedIteratorDecorator_hxx
#include "otbMaskedIteratorDecorator.h"
#include "
otb
Macro.h"
#include "
itk
Macro.h"
namespace otb
{
...
...
@@ -39,8 +39,7 @@ MaskedIteratorDecorator<TIteratorType,TMaskIteratorType>
{
if (image->GetLargestPossibleRegion() != mask->GetLargestPossibleRegion())
{
m_UseMask = false;
otbWarningMacro("Input image and mask have different largest regions : mask is discarded!");
itkGenericExceptionMacro("Input image and mask have different largest regions : mask is discarded!");
}
else
{
...
...
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