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
David Youssefi
otb
Commits
1739bfc5
Commit
1739bfc5
authored
Jul 25, 2020
by
Rémi Cresson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
FIX: StreamingMosaicFilter childs can have a different number of components per pixel at output
parent
38b25cad
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
6 deletions
+10
-6
.mailmap
.mailmap
+1
-0
Modules/Filtering/Mosaic/include/otbStreamingMosaicFilterBase.hxx
...Filtering/Mosaic/include/otbStreamingMosaicFilterBase.hxx
+9
-6
No files found.
.mailmap
View file @
1739bfc5
...
...
@@ -84,6 +84,7 @@ Rémi Cresson <remi.cresson@irstea.fr> Rémi <remi.cresson@t
Rémi Cresson <remi.cresson@irstea.fr> remi <remi.cresson@irstea.fr>
Rémi Cresson <remi.cresson@irstea.fr> remi cresson <remi.cresson@teledetection.fr>
Rémi Cresson <remi.cresson@irstea.fr> remicres <remi.cresson@teledetection.fr>
Rémi Cresson <remi.cresson@irstea.fr> remi cresson <remi.cresson@inrae.fr>
Sebastien Harasse <sebastien.harasse@c-s.fr>
Stephane Albert <stephane.albert@c-s.fr>
Stephane Albert <stephane.albert@c-s.fr> Stephane ALBERT <stephane.albert@c-s.fr>
...
...
Modules/Filtering/Mosaic/include/otbStreamingMosaicFilterBase.hxx
View file @
1739bfc5
...
...
@@ -321,18 +321,21 @@ void StreamingMosaicFilterBase<TInputImage, TOutputImage, TInternalValueType>::G
itk
::
EncapsulateMetaData
<
std
::
string
>
(
mosaicMetaData
,
static_cast
<
std
::
string
>
(
otb
::
MetaDataKey
::
ProjectionRefKey
),
projectionRef
);
// check no data pixels
if
(
m_NoDataOutputPixel
.
GetSize
()
!=
nbOfBands
||
m_NoDataInputPixel
.
GetSize
()
!=
nbOfBands
)
if
(
m_NoDataInputPixel
.
GetSize
()
!=
nbOfBands
)
{
if
(
m_NoDataOutputPixel
.
GetSize
()
!=
0
)
itkWarningMacro
(
<<
"Specified NoDataOutputPixel has not "
<<
nbOfBands
<<
" components. Using default (zeros)"
);
if
(
m_NoDataInputPixel
.
GetSize
()
!=
0
)
itkWarningMacro
(
<<
"Specified NoDataInputPixel has not "
<<
nbOfBands
<<
" components. Using default (zeros)"
);
m_NoDataOutputPixel
.
SetSize
(
nbOfBands
);
m_NoDataInputPixel
.
SetSize
(
nbOfBands
);
m_NoDataOutputPixel
.
Fill
(
itk
::
NumericTraits
<
OutputImageInternalPixelType
>::
Zero
);
m_NoDataInputPixel
.
Fill
(
itk
::
NumericTraits
<
InputImageInternalPixelType
>::
Zero
);
}
if
(
m_NoDataOutputPixel
.
GetSize
()
==
0
)
{
itkWarningMacro
(
<<
"NoDataOutputPixel not set. Using zeros"
);
m_NoDataOutputPixel
.
SetSize
(
nbOfBands
);
m_NoDataOutputPixel
.
Fill
(
itk
::
NumericTraits
<
InputImageInternalPixelType
>::
Zero
);
}
// Write no data flags
std
::
vector
<
bool
>
noDataValueAvailable
;
...
...
@@ -444,4 +447,4 @@ void StreamingMosaicFilterBase<TInputImage, TOutputImage, TInternalValueType>::P
}
// end namespace otb
#endif
#endif
\ No newline at end of file
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