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
3c24ab6a
Commit
3c24ab6a
authored
13 years ago
by
Sebastien Harasse
Browse files
Options
Downloads
Patches
Plain Diff
DOC: Updated doxygen for mean shift filter
parent
f632db8e
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Code/BasicFilters/otbMeanShiftImageFilter2.h
+12
-25
12 additions, 25 deletions
Code/BasicFilters/otbMeanShiftImageFilter2.h
with
12 additions
and
25 deletions
Code/BasicFilters/otbMeanShiftImageFilter2.h
+
12
−
25
View file @
3c24ab6a
...
...
@@ -37,7 +37,7 @@ namespace otb
*
* Mean shift is a data clustering algorithm often used in image processing and segmentation.
* For a given pixel, the mean shift will build a set of neighboring pixels within a given spatial
*
radius
(can be set using SetSpatial
Radius
()) and a spectral range (can be set using SetRange
Radius
()).
*
bandwidth
(can be set using SetSpatial
Bandwidth
()) and a spectral range (can be set using SetRange
Bandwidth
()).
* The spatial and spectral center of this set is then computed and the algorithm iterates with this new spatial
* and spectral center.
*
...
...
@@ -47,8 +47,7 @@ namespace otb
*
*
* GetMetricOutput() method gives mean shift vector
*
* The Scale parameter allows you to stretch the data dynamic
* GetIterationOutput() returns the number of iterations performed for each pixel.
*
* For more information on mean shift techniques, one might consider reading the following article:
*
...
...
@@ -157,24 +156,20 @@ public:
itkGetConstMacro
(
Threshold
,
double
);
itkSetMacro
(
Threshold
,
double
);
/** Kernel accessors */
//itkSetMacro(Kernel, KernelType);
//itkGetConstReferenceMacro(Kernel, KernelType);
/** Return the const spatial image output */
/** Returns the const spatial image output */
const
OutputImageType
*
GetSpatialOutput
()
const
;
/** Return the spectral image output */
/** Return
s
the spectral image output */
const
OutputImageType
*
GetRangeOutput
()
const
;
/** Return the
spectral image output
*/
/** Return
s
the
mean shift vector computed at the last iteration for each pixel
*/
const
OutputMetricImageType
*
GetMetricOutput
()
const
;
/** Returns the number of iterations done at each pixel */
const
OutputIterationImageType
*
GetIterationOutput
()
const
;
/** Return the const spatial image output */
/** Return
s
the const spatial image output */
OutputImageType
*
GetSpatialOutput
();
/** Return the spectral image output */
/** Return
s
the spectral image output */
OutputImageType
*
GetRangeOutput
();
/** Return the mean shift vector
image output
*/
/** Return
s
the mean shift vector
computed at the last iteration for each pixel
*/
OutputMetricImageType
*
GetMetricOutput
();
/** Returns the number of iterations done at each pixel */
OutputIterationImageType
*
GetIterationOutput
();
...
...
@@ -210,15 +205,15 @@ protected:
virtual
void
AfterThreadedGenerateData
();
/** Allocate the outputs (need to be reimplemented since outputs have differents type) */
/** Allocate
s
the outputs (need to be reimplemented since outputs have differents type) */
virtual
void
AllocateOutputs
();
/** Constructor */
MeanShiftImageFilter2
();
/**
d
estructor */
/**
D
estructor */
virtual
~
MeanShiftImageFilter2
();
/**PrintSelf method */
/**
PrintSelf method */
virtual
void
PrintSelf
(
std
::
ostream
&
os
,
itk
::
Indent
indent
)
const
;
//virtual void GetNeighborhood(PointType latticePosition);
...
...
@@ -257,17 +252,9 @@ private:
/** **/
double
m_Threshold
;
/**
m
ax iteration
number
**/
/**
M
ax
imum number of
iteration
s
**/
unsigned
int
m_MaxIterationNumber
;
/** image neighborhood is a pointer to image region **/
//OutputPixelType *m_Neighborhood;
/** Kernel pointer **/
// OutputPixelType *m_SpatialKernel;
// OutputPixelType *m_RangeKernel;
// OutputPixelType *m_Kernel;
/** KernelType to be defined **/
KernelType
m_SpatialKernel
;
KernelType
m_RangeKernel
;
...
...
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