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
4223a53d
Commit
4223a53d
authored
18 years ago
by
Thomas Feuvrier
Browse files
Options
Downloads
Patches
Plain Diff
nomsg
parent
369117bc
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/FeatureExtraction/otbFillGapsFilter.h
+17
-13
17 additions, 13 deletions
Code/FeatureExtraction/otbFillGapsFilter.h
Code/FeatureExtraction/otbFillGapsFilter.txx
+27
-9
27 additions, 9 deletions
Code/FeatureExtraction/otbFillGapsFilter.txx
with
44 additions
and
22 deletions
Code/FeatureExtraction/otbFillGapsFilter.h
+
17
−
13
View file @
4223a53d
...
...
@@ -28,7 +28,7 @@ class ITK_EXPORT FillGapsFilter : public itk::ProcessObject
{
public:
/** Standard class typedefs. */
typedef
FillGapsFilter
Self
;
typedef
FillGapsFilter
Self
;
typedef
itk
::
ProcessObject
Superclass
;
typedef
itk
::
SmartPointer
<
Self
>
Pointer
;
typedef
itk
::
SmartPointer
<
const
Self
>
ConstPointer
;
...
...
@@ -40,29 +40,33 @@ public:
itkTypeMacro
(
FillGapsFilter
,
itk
::
ProcessObject
);
/** Some convenient typedefs. */
typedef
otb
::
LineSpatialObjectList
LineSpatialObjectListType
;
typedef
LineSpatialObjectListType
::
LineType
LineSpatialObjectType
;
typedef
LineSpatialObjectList
LineSpatialObjectListType
;
typedef
LineSpatialObjectListType
::
Pointer
LineSpatialObjectListPointer
;
typedef
LineSpatialObjectListType
::
LineType
LineSpatialObjectType
;
/** Set the list of LineSpatialObject of this process object. */
void
SetOutput
(
const
LineSpatialObjectListType
&
pLineSpatialObjectList
);
typedef
itk
::
DataObject
DataObject
;
typedef
itk
::
DataObject
::
Pointer
DataObjectPointer
;
DataObjectPointer
MakeOutput
(
unsigned
int
idx
);
/** Get the list of LineSpatialObject of this process object. */
LineSpatialObjectListType
&
GetOutput
(
void
);
itkSetMacro
(
AngularBeam
,
double
);
itkGetConstReferenceMacro
(
AngularBeam
,
double
);
itkSetMacro
(
Radius
,
double
);
itkGetConstReferenceMacro
(
Radius
,
double
);
protected:
FillGapsFilter
();
virtual
~
FillGapsFilter
()
{}
virtual
~
FillGapsFilter
()
;
void
PrintSelf
(
std
::
ostream
&
os
,
itk
::
Indent
indent
)
const
;
virtual
void
GenerateData
();
private:
FillGapsFilter
(
const
Self
&
);
//purposely not implemented
void
operator
=
(
const
Self
&
);
//purposely not implemented
LineSpatialObjectListType
m_InputLineSpatialObjectList
;
LineSpatialObjectListType
m_OutputLineSpatialObjectList
;
double
m_AngularBeam
;
double
m_Radius
;
};
...
...
This diff is collapsed.
Click to expand it.
Code/FeatureExtraction/otbFillGapsFilter.txx
+
27
−
9
View file @
4223a53d
...
...
@@ -22,27 +22,45 @@ namespace otb
*/
FillGapsFilter::FillGapsFilter()
{
m_InputLineSpatialObjectList.clear();
m_OutputLineSpatialObjectList.clear();
this->itk::ProcessObject::SetNumberOfRequiredInputs(1);
this->itk::ProcessObject::SetNumberOfRequiredOutputs(1);
LineSpatialObjectListPointer output
= dynamic_cast<LineSpatialObjectListType*>(this->MakeOutput(0).GetPointer());
this->itk::ProcessObject::SetNthOutput(0, output.GetPointer());
}
/**
*
*/
FillGapsFilter::~FillGapsFilter()
{
}
void FillGapsFilter::
SetOutput(const LineSpatialObjectListType & pLineSpatialObjectList)
/**
*
*/
itk::DataObject::Pointer
FillGapsFilter
::MakeOutput(unsigned int)
{
m_Input
LineSpatialObjectList =
p
LineSpatialObjectList;
this->Modified(
);
LineSpatialObjectList
Pointer outputList
= LineSpatialObjectList
Type::New()
;
return dynamic_cast< DataObject *>( outputList.GetPointer()
);
}
FillGapsFilter::LineSpatialObjectListType &
FillGapsFilter::GetOutput(void)
/**
*
*/
void
FillGapsFilter
::GenerateData()
{
return(m_OutputLineSpatialObjectList);
//Algo
}
/**
*
*/
...
...
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