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
3c0c08bc
Commit
3c0c08bc
authored
16 years ago
by
Emmanuel Christophe
Browse files
Options
Downloads
Patches
Plain Diff
REFAC: ImageToPointSetFilter Should not copy/paste methods from base class
parent
9b8ac7fd
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/BasicFilters/otbImageToPointSetFilter.h
+3
-3
3 additions, 3 deletions
Code/BasicFilters/otbImageToPointSetFilter.h
Code/BasicFilters/otbImageToPointSetFilter.txx
+16
-16
16 additions, 16 deletions
Code/BasicFilters/otbImageToPointSetFilter.txx
with
19 additions
and
19 deletions
Code/BasicFilters/otbImageToPointSetFilter.h
+
3
−
3
View file @
3c0c08bc
...
...
@@ -24,7 +24,7 @@ namespace otb
{
/** \class ImageToPointSetFilter
* \brief
* \brief
Base class to output PointSet data with image data as input
*
* ImageToPointSetFilter is the base class for all process objects that output
* Point Set data and require image data as input. Specifically, this class
...
...
@@ -47,7 +47,7 @@ public:
itkTypeMacro
(
ImageToPointSetFilter
,
PointSetSource
);
/** Create a valid output. */
itk
::
DataObject
::
Pointer
MakeOutput
(
unsigned
int
idx
);
//
itk::DataObject::Pointer MakeOutput(unsigned int idx);
/** Some Image related typedefs. */
typedef
TInputImage
InputImageType
;
...
...
@@ -69,7 +69,7 @@ public:
const
InputImageType
*
GetInput
(
unsigned
int
idx
);
/** Get the output Point Set of this process object. */
OutputPointSetType
*
GetOutput
(
void
);
//
OutputPointSetType * GetOutput(void);
/** Prepare the output */
void
GenerateOutputInformation
(
void
);
...
...
This diff is collapsed.
Click to expand it.
Code/BasicFilters/otbImageToPointSetFilter.txx
+
16
−
16
View file @
3c0c08bc
...
...
@@ -54,14 +54,14 @@ ImageToPointSetFilter<TInputImage,TOutputPointSet>
/**
* Make Output
*/
template <class TInputImage, class TOutputPointSet>
itk::DataObject::Pointer
ImageToPointSetFilter<TInputImage,TOutputPointSet>
::MakeOutput(unsigned int)
{
OutputPointSetPointer outputPointSet = OutputPointSetType::New();
return dynamic_cast< itk::DataObject *>( outputPointSet.GetPointer() );
}
//
template <class TInputImage, class TOutputPointSet>
//
itk::DataObject::Pointer
//
ImageToPointSetFilter<TInputImage,TOutputPointSet>
//
::MakeOutput(unsigned int)
//
{
//
OutputPointSetPointer outputPointSet = OutputPointSetType::New();
//
return dynamic_cast< itk::DataObject *>( outputPointSet.GetPointer() );
//
}
...
...
@@ -98,14 +98,14 @@ ImageToPointSetFilter<TInputImage,TOutputPointSet>
/**
*
*/
template <class TInputImage, class TOutputPointSet>
typename ImageToPointSetFilter<TInputImage,TOutputPointSet>::OutputPointSetType *
ImageToPointSetFilter<TInputImage,TOutputPointSet>
::GetOutput(void)
{
return dynamic_cast<OutputPointSetType*>
(this->ProcessObjectType::GetOutput(0));
}
//
template <class TInputImage, class TOutputPointSet>
//
typename ImageToPointSetFilter<TInputImage,TOutputPointSet>::OutputPointSetType *
//
ImageToPointSetFilter<TInputImage,TOutputPointSet>
//
::GetOutput(void)
//
{
//
return dynamic_cast<OutputPointSetType*>
//
(this->ProcessObjectType::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