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
7688d404
Commit
7688d404
authored
13 years ago
by
Cyrille Valladeau
Browse files
Options
Downloads
Patches
Plain Diff
ENH: add otput pixel type get accessor
parent
6ee0f221
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Code/ApplicationEngine/otbWrapperApplication.cxx
+15
-0
15 additions, 0 deletions
Code/ApplicationEngine/otbWrapperApplication.cxx
Code/ApplicationEngine/otbWrapperApplication.h
+7
-0
7 additions, 0 deletions
Code/ApplicationEngine/otbWrapperApplication.h
with
22 additions
and
0 deletions
Code/ApplicationEngine/otbWrapperApplication.cxx
+
15
−
0
View file @
7688d404
...
...
@@ -699,6 +699,21 @@ std::string Application::GetParameterAsString(std::string paramKey)
return
ret
;
}
ImagePixelType
Application
::
GetParameterOutputImagePixelType
(
std
::
string
parameter
)
{
Parameter
*
param
=
GetParameterByKey
(
parameter
);
ImagePixelType
ret
;
if
(
dynamic_cast
<
OutputImageParameter
*>
(
param
))
{
OutputImageParameter
*
paramDown
=
dynamic_cast
<
OutputImageParameter
*>
(
param
);
ret
=
paramDown
->
GetPixelType
();
}
//TODO: exception if not found ?
return
ret
;
}
void
Application
::
AddChoice
(
std
::
string
paramKey
,
std
::
string
paramName
)
{
...
...
This diff is collapsed.
Click to expand it.
Code/ApplicationEngine/otbWrapperApplication.h
+
7
−
0
View file @
7688d404
...
...
@@ -318,6 +318,13 @@ public:
*/
std
::
vector
<
std
::
string
>
GetParametersKeys
(
bool
recursive
=
true
);
/* Get the pixel type in which the image will be saved
*
* Can be called for types :
* \li ParameterType_OutputImage
*/
ImagePixelType
GetParameterOutputImagePixelType
(
std
::
string
parameter
);
itk
::
Logger
*
GetLogger
();
void
AddProcess
(
itk
::
ProcessObject
*
object
,
std
::
string
description
);
...
...
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