Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
otb
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
David Youssefi
otb
Commits
42374098
Commit
42374098
authored
16 years ago
by
Emmanuel Christophe
Browse files
Options
Downloads
Patches
Plain Diff
STYLE: removing trailing spaces
parent
4c0ac1d4
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Utils/otbConcatenateImages.cxx
+18
-18
18 additions, 18 deletions
Utils/otbConcatenateImages.cxx
with
18 additions
and
18 deletions
Utils/otbConcatenateImages.cxx
+
18
−
18
View file @
42374098
...
...
@@ -12,28 +12,28 @@
int
main
(
int
argc
,
char
*
argv
[]
)
{
// Parse command line parameters
typedef
otb
::
CommandLineArgumentParser
ParserType
;
typedef
otb
::
CommandLineArgumentParser
ParserType
;
ParserType
::
Pointer
parser
=
ParserType
::
New
();
parser
->
SetProgramDescription
(
"Concatenate n images in a multiband image"
);
parser
->
AddOutputImage
();
parser
->
AddOption
(
"--InputImagesList"
,
"Images list to concatenate"
,
"-il"
,
argc
-
4
,
true
);
typedef
otb
::
CommandLineArgumentParseResult
ParserResultType
;
ParserResultType
::
Pointer
parseResult
=
ParserResultType
::
New
();
try
{
parser
->
ParseCommandLine
(
argc
,
argv
,
parseResult
);
}
catch
(
itk
::
ExceptionObject
&
err
)
{
std
::
string
descriptionException
=
err
.
GetDescription
();
if
(
descriptionException
.
find
(
"ParseCommandLine(): Help Parser"
)
!=
std
::
string
::
npos
)
catch
(
itk
::
ExceptionObject
&
err
)
{
std
::
string
descriptionException
=
err
.
GetDescription
();
if
(
descriptionException
.
find
(
"ParseCommandLine(): Help Parser"
)
!=
std
::
string
::
npos
)
{
return
EXIT_SUCCESS
;
}
if
(
descriptionException
.
find
(
"ParseCommandLine(): Version Parser"
)
!=
std
::
string
::
npos
)
if
(
descriptionException
.
find
(
"ParseCommandLine(): Version Parser"
)
!=
std
::
string
::
npos
)
{
return
EXIT_SUCCESS
;
}
...
...
@@ -44,14 +44,14 @@ int main(int argc, char* argv[] )
std
::
cout
<<
"Concat of "
<<
NbImages
<<
" images into a multi-band image "
<<
std
::
endl
;
typedef
unsigned
short
int
PixelType
;
const
unsigned
int
Dimension
=
2
;
typedef
otb
::
Image
<
PixelType
,
Dimension
>
InputImageType
;
typedef
otb
::
ImageFileReader
<
InputImageType
>
ImageReaderType
;
typedef
otb
::
ObjectList
<
ImageReaderType
>
ReaderListType
;
ReaderListType
::
Pointer
readerList
=
ReaderListType
::
New
();
...
...
@@ -72,9 +72,9 @@ int main(int argc, char* argv[] )
imageReader
->
UpdateOutputInformation
();
imageList
->
PushBack
(
imageReader
->
GetOutput
()
);
readerList
->
PushBack
(
imageReader
);
}
typedef
otb
::
VectorImage
<
PixelType
,
Dimension
>
VectorImageType
;
...
...
@@ -93,9 +93,9 @@ int main(int argc, char* argv[] )
imageWriter
->
SetFileName
(
parseResult
->
GetOutputImage
().
c_str
());
unsigned
long
size
=
(
10000
*
10000
*
sizeof
(
PixelType
))
/
NbImages
;
std
::
cout
<<
"Streaming size: "
<<
size
<<
std
::
endl
;
imageWriter
->
SetBufferMemorySize
(
size
);
...
...
@@ -103,8 +103,8 @@ int main(int argc, char* argv[] )
imageWriter
->
SetInput
(
iL2VI
->
GetOutput
()
);
imageWriter
->
Update
();
return
0
;
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment