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
Container Registry
Model registry
Operate
Environments
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
Antoine Belvire
otb
Commits
e1251890
Commit
e1251890
authored
18 years ago
by
Caroline Ruffel
Browse files
Options
Downloads
Patches
Plain Diff
nomsg
parent
d0d86a0c
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/Common/otbImageToLineSpatialObjectListFilter.h
+11
-10
11 additions, 10 deletions
Code/Common/otbImageToLineSpatialObjectListFilter.h
Code/Common/otbImageToLineSpatialObjectListFilter.txx
+24
-8
24 additions, 8 deletions
Code/Common/otbImageToLineSpatialObjectListFilter.txx
with
35 additions
and
18 deletions
Code/Common/otbImageToLineSpatialObjectListFilter.h
+
11
−
10
View file @
e1251890
...
...
@@ -18,6 +18,7 @@
#include
"itkProcessObject.h"
#include
"otbLineSpatialObjectList.h"
#include
"itkLineSpatialObject.h"
namespace
otb
{
...
...
@@ -58,7 +59,7 @@ public:
/** Some convenient typedefs. */
typedef
LineSpatialObjectList
LinesListType
;
typedef
LinesListType
::
LineType
LineType
;
typedef
typename
LinesListType
::
LineType
LineType
;
/** Definition of the input and output images */
typedef
typename
InputImageType
::
PixelType
InputPixelType
;
...
...
@@ -66,22 +67,22 @@ public:
/** Definition of the size of the images. */
typedef
typename
InputImageType
::
SizeType
SizeType
;
/** Get the list of LineSpatialObject of this process object. */
LinesListType
&
GetOutput
(
void
);
/** Get the input image */
/** Set/Get the input image */
void
SetInput
(
const
InputImageType
*
image
);
const
InputImageType
*
GetInput
(
void
);
/** Set/Get the list of LineSpatialObject of this process object. */
void
SetOutput
(
const
LinesListType
*
list
);
LinesListType
*
GetOutput
(
void
);
protected:
ImageToLineSpatialObjectListFilter
();
virtual
~
ImageToLineSpatialObjectListFilter
()
{}
void
PrintSelf
(
std
::
ostream
&
os
,
itk
::
Indent
indent
)
const
;
LinesListType
m_OutputLinesList
;
private
:
...
...
This diff is collapsed.
Click to expand it.
Code/Common/otbImageToLineSpatialObjectListFilter.txx
+
24
−
8
View file @
e1251890
...
...
@@ -25,7 +25,10 @@ ImageToLineSpatialObjectListFilter<TInputImage>::ImageToLineSpatialObjectListFil
{
this->SetNumberOfRequiredInputs(1);
this->SetNumberOfRequiredOutputs(1);
m_OutputLinesList.clear();
typename LinesListType::Pointer list = LinesListType::New();
this->SetOutput( list );
}
template <class TInputImage>
...
...
@@ -46,15 +49,28 @@ ImageToLineSpatialObjectListFilter<TInputImage>
return static_cast<const InputImageType *>
(this->itk::ProcessObject::GetInput(0) );
}
template<class TInputImage>
typename ImageToLineSpatialObjectListFilter<TInputImage>::LinesListType &
ImageToLineSpatialObjectListFilter<TInputImage>::GetOutput(void)
{
return(m_OutputLinesList);
template <class TInputImage>
void
ImageToLineSpatialObjectListFilter<TInputImage>
::SetOutput(const LinesListType *list)
{
this->itk::ProcessObject::SetNthOutput(0,
const_cast< LinesListType * >( list ) );
}
template <class TInputImage>
typename ImageToLineSpatialObjectListFilter<TInputImage>::LinesListType *
ImageToLineSpatialObjectListFilter<TInputImage>
::GetOutput(void)
{
return static_cast<LinesListType *>
(this->itk::ProcessObject::GetOutput(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