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
460d4c06
Commit
460d4c06
authored
Mar 02, 2020
by
Cédric Traizet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
WRG: fix warning on conversion from unsigned to signed
parent
6070da41
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
Modules/IO/ImageIO/include/otbMultiImageFileWriter.hxx
Modules/IO/ImageIO/include/otbMultiImageFileWriter.hxx
+2
-1
No files found.
Modules/IO/ImageIO/include/otbMultiImageFileWriter.hxx
View file @
460d4c06
...
...
@@ -91,7 +91,8 @@ MultiImageFileWriter::Sink<TImage>::GetRegionToWrite() const
throw
e
;
}
typename
itk
::
ImageRegion
<
2
>::
IndexType
start
{{
boxVector
[
0
],
boxVector
[
1
]}};
// indices are signed, sizes are unsigned
typename
itk
::
ImageRegion
<
2
>::
IndexType
start
{{
static_cast
<
int
>
(
boxVector
[
0
]),
static_cast
<
int
>
(
boxVector
[
1
])}};
typename
itk
::
ImageRegion
<
2
>::
SizeType
size
{{
boxVector
[
2
],
boxVector
[
3
]}};
itk
::
ImageRegion
<
2
>
regionToWrite
{
start
,
size
};
regionToWrite
.
Crop
(
m_InputImage
->
GetLargestPossibleRegion
());
...
...
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