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
ee7e8469
There was an error fetching the commit references. Please try again later.
Commit
ee7e8469
authored
12 years ago
by
Sébastien Dinot
Browse files
Options
Downloads
Patches
Plain Diff
STYLE: Code formatting
parent
9c253dc1
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Code/ApplicationEngine/otbWrapperInputImageParameter.cxx
+14
-16
14 additions, 16 deletions
Code/ApplicationEngine/otbWrapperInputImageParameter.cxx
with
14 additions
and
16 deletions
Code/ApplicationEngine/otbWrapperInputImageParameter.cxx
+
14
−
16
View file @
ee7e8469
...
...
@@ -46,8 +46,6 @@ InputImageParameter::~InputImageParameter()
bool
InputImageParameter
::
SetFromFileName
(
const
std
::
string
&
filename
)
{
otbMsgDevMacro
(
<<
"SetFromFileName()"
);
// First clear previous file choosen
this
->
ClearValue
();
...
...
@@ -123,7 +121,7 @@ InputImageParameter::GetImage()
// it without changing the filename, it returns 2 different
// image pointers
// Only one image type can be used
// 2 cases : the user set a filename vs. the user set an image
if
(
m_UseFilename
)
{
...
...
@@ -144,10 +142,10 @@ InputImageParameter::GetImage()
{
this
->
ClearValue
();
}
m_Image
=
reader
->
GetOutput
();
m_Reader
=
reader
;
// Pay attention, don't return m_Image because it is a ImageBase...
return
reader
->
GetOutput
();
}
...
...
@@ -251,7 +249,7 @@ InputImageParameter::GetImage()
}
}
}
}
...
...
@@ -260,35 +258,35 @@ TOutputImage*
InputImageParameter
::
SimpleCastImage
()
{
TInputImage
*
realInputImage
=
dynamic_cast
<
TInputImage
*>
(
m_Image
.
GetPointer
());
typedef
itk
::
CastImageFilter
<
TInputImage
,
TOutputImage
>
CasterType
;
typename
CasterType
::
Pointer
caster
=
CasterType
::
New
();
caster
->
SetInput
(
realInputImage
);
caster
->
UpdateOutputInformation
();
m_Image
=
caster
->
GetOutput
();
m_Caster
=
caster
;
return
caster
->
GetOutput
();
}
template
<
class
TInputImage
,
class
TOutputImage
>
TOutputImage
*
InputImageParameter
::
CastVectorImageFromImage
()
{
TInputImage
*
realInputImage
=
dynamic_cast
<
TInputImage
*>
(
m_Image
.
GetPointer
());
typedef
ImageToVectorImageCastFilter
<
TInputImage
,
TOutputImage
>
CasterType
;
typename
CasterType
::
Pointer
caster
=
CasterType
::
New
();
caster
->
SetInput
(
realInputImage
);
caster
->
UpdateOutputInformation
();
m_Image
=
caster
->
GetOutput
();
m_Caster
=
caster
;
return
caster
->
GetOutput
();
}
...
...
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