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
414731b6
Commit
414731b6
authored
13 years ago
by
Cyrille Valladeau
Browse files
Options
Downloads
Patches
Plain Diff
ENH: change output pixel type
parent
5d20972c
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
Code/Wrappers/CommandLine/otbWrapperCommandLineLauncher.cxx
+13
-13
13 additions, 13 deletions
Code/Wrappers/CommandLine/otbWrapperCommandLineLauncher.cxx
with
13 additions
and
13 deletions
Code/Wrappers/CommandLine/otbWrapperCommandLineLauncher.cxx
+
13
−
13
View file @
414731b6
...
...
@@ -377,17 +377,17 @@ CommandLineLauncher::LoadParameters()
if
(
values
.
size
()
==
2
)
{
ImagePixelType
outPixType
=
ImagePixelType_float
;
if
(
values
[
1
]
==
"
int8
"
)
if
(
values
[
1
]
==
"
char
"
)
outPixType
=
ImagePixelType_int8
;
else
if
(
values
[
1
]
==
"u
int8
"
)
else
if
(
values
[
1
]
==
"u
char
"
)
outPixType
=
ImagePixelType_uint8
;
else
if
(
values
[
1
]
==
"
int16
"
)
else
if
(
values
[
1
]
==
"
short
"
)
outPixType
=
ImagePixelType_int16
;
else
if
(
values
[
1
]
==
"u
int16
"
)
else
if
(
values
[
1
]
==
"u
short
"
)
outPixType
=
ImagePixelType_uint16
;
else
if
(
values
[
1
]
==
"int
32
"
)
else
if
(
values
[
1
]
==
"int"
)
outPixType
=
ImagePixelType_int32
;
else
if
(
values
[
1
]
==
"uint
32
"
)
else
if
(
values
[
1
]
==
"uint"
)
outPixType
=
ImagePixelType_uint32
;
else
if
(
values
[
1
]
==
"float"
)
outPixType
=
ImagePixelType_float
;
...
...
@@ -600,7 +600,7 @@ CommandLineLauncher::DisplayParameterHelp( const Parameter::Pointer & param, con
else
if
(
type
==
ParameterType_OutputImage
)
{
oss
<<
"
\t
Type: String (output image file name and optionally its pixel type)"
<<
std
::
endl
;
oss
<<
"
\t
Possible pixel type:
int8, uint8, int16, uint16
, int
32
, uint
32
, float or double"
<<
std
::
endl
;
oss
<<
"
\t
Possible pixel type:
char, uchar, short, ushort
, int, uint, float or double"
<<
std
::
endl
;
}
else
if
(
type
==
ParameterType_OutputVectorData
)
{
...
...
@@ -654,17 +654,17 @@ CommandLineLauncher::DisplayParameterHelp( const Parameter::Pointer & param, con
oss
<<
"
\t
pixel type: "
;
ImagePixelType
outPixType
=
m_Application
->
GetParameterOutputImagePixelType
(
paramKey
);
if
(
outPixType
==
ImagePixelType_int8
)
oss
<<
"
int8
"
;
oss
<<
"
char
"
;
else
if
(
outPixType
==
ImagePixelType_uint8
)
oss
<<
"u
int8
"
;
oss
<<
"u
char
"
;
else
if
(
outPixType
==
ImagePixelType_int16
)
oss
<<
"
int16
"
;
oss
<<
"
short
"
;
else
if
(
outPixType
==
ImagePixelType_uint16
)
oss
<<
"u
int16
"
;
oss
<<
"u
short
"
;
else
if
(
outPixType
==
ImagePixelType_int32
)
oss
<<
"int
32
"
;
oss
<<
"int"
;
else
if
(
outPixType
==
ImagePixelType_uint32
)
oss
<<
"uint
32
"
;
oss
<<
"uint"
;
else
if
(
outPixType
==
ImagePixelType_float
)
oss
<<
"float"
;
else
if
(
outPixType
==
ImagePixelType_double
)
...
...
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