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
c79e1d59
Commit
c79e1d59
authored
13 years ago
by
Julien Malik
Browse files
Options
Downloads
Patches
Plain Diff
ENH: remove OutputImageList (no use case yet)
parent
bbe3eb8a
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Code/ApplicationEngine/otbWrapperOutputImageListParameter.h
+0
-132
0 additions, 132 deletions
Code/ApplicationEngine/otbWrapperOutputImageListParameter.h
Code/ApplicationEngine/otbWrapperTypes.h
+0
-1
0 additions, 1 deletion
Code/ApplicationEngine/otbWrapperTypes.h
with
0 additions
and
133 deletions
Code/ApplicationEngine/otbWrapperOutputImageListParameter.h
deleted
100644 → 0
+
0
−
132
View file @
bbe3eb8a
/*=========================================================================
Program: ORFEO Toolbox
Language: C++
Date: $Date$
Version: $Revision$
Copyright (c) Centre National d'Etudes Spatiales. All rights reserved.
See OTBCopyright.txt for details.
This software is distributed WITHOUT ANY WARRANTY; without even
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE. See the above copyright notices for more information.
=========================================================================*/
#ifndef __otbWrapperOutputImageListParameter_h
#define __otbWrapperOutputImageListParameter_h
#include
"otbVectorImage.h"
#include
"otbWrapperParameter.h"
#include
"otbStreamingImageFileWriter.h"
namespace
otb
{
namespace
Wrapper
{
/** \class OutputImageListParameter
* \brief This class represents a list of OutputImage parameter
*/
class
ITK_EXPORT
OutputImageListParameter
:
public
Parameter
{
public:
/** Standard class typedef */
typedef
OutputImageListParameter
Self
;
typedef
Parameter
Superclass
;
typedef
itk
::
SmartPointer
<
Self
>
Pointer
;
typedef
itk
::
SmartPointer
<
const
Self
>
ConstPointer
;
typedef
otb
::
ObjectList
<
FloatVectorImageType
>
VectorImageListType
;
typedef
otb
::
StreamingImageFileWriter
<
FloatVectorImageType
>
ImageFileWriterType
;
typedef
otb
::
ObjectList
<
ImageFileWriterType
>
ImageFileWriterListType
;
/** Defining ::New() static method */
itkNewMacro
(
Self
);
/** RTTI support */
itkTypeMacro
(
OutputImageListParameter
,
Parameter
);
/** Set the value */
itkSetObjectMacro
(
ImageList
,
VectorImageListType
);
/** Get the value */
itkGetObjectMacro
(
ImageList
,
VectorImageListType
);
void
AddImage
(
FloatVectorImageType
*
image
)
{
m_ImageList
->
PushBack
(
image
);
this
->
Modified
();
}
FloatVectorImageType
*
GetNthImage
(
unsigned
int
i
)
{
return
m_ImageList
->
GetNthElement
(
i
);
}
void
SetFileNameList
(
const
std
::
vector
<
std
::
string
>
&
fileList
)
{
m_FileNameList
=
fileList
;
this
->
Modified
();
}
void
AddFileName
(
std
::
string
fileName
)
{
m_FileNameList
.
push_back
(
fileName
);
this
->
Modified
();
}
std
::
vector
<
std
::
string
>
GetFileNameList
()
{
return
m_FileNameList
;
}
void
Write
()
{
if
(
m_ImageList
->
Size
()
!=
m_FileNameList
.
size
())
{
itkExceptionMacro
(
<<
"Image list and filename list size dismatch..."
);
}
for
(
unsigned
int
i
=
0
;
i
<
m_ImageList
->
Size
();
i
++
)
{
if
(
m_ImageList
->
GetNthElement
(
i
).
IsNotNull
())
{
ImageFileWriterType
::
Pointer
writer
=
ImageFileWriterType
::
New
();
writer
->
SetInput
(
m_ImageList
->
GetNthElement
(
i
));
writer
->
SetFileName
(
m_FileNameList
[
i
]);
writer
->
Update
();
}
}
}
protected
:
/** Constructor */
OutputImageListParameter
()
{
this
->
SetName
(
"Output Image"
);
this
->
SetKey
(
"out"
);
m_ImageList
=
VectorImageListType
::
New
();
m_FileNameList
.
clear
();
}
/** Destructor */
virtual
~
OutputImageListParameter
()
{}
VectorImageListType
::
Pointer
m_ImageList
;
std
::
vector
<
std
::
string
>
m_FileNameList
;
private
:
OutputImageListParameter
(
const
Parameter
&
);
//purposely not implemented
void
operator
=
(
const
Parameter
&
);
//purposely not implemented
};
// End class OutputImage Parameter
}
// End namespace Wrapper
}
// End namespace otb
#endif
This diff is collapsed.
Click to expand it.
Code/ApplicationEngine/otbWrapperTypes.h
+
0
−
1
View file @
c79e1d59
...
...
@@ -42,7 +42,6 @@ typedef enum
ParameterType_InputComplexImage
,
ParameterType_InputVectorData
,
ParameterType_OutputImage
,
ParameterType_OutputImageList
,
ParameterType_OutputVectorData
,
ParameterType_Radius
,
ParameterType_Group
,
...
...
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