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
c2c1fd01
Commit
c2c1fd01
authored
13 years ago
by
Julien Malik
Browse files
Options
Downloads
Patches
Plain Diff
DOC: update doc of RadiometryHomogenousWithNeighborhood
parent
c01c91f4
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/otbRadiometryHomogenousWithNeighborhoodDataNodeFeatureFunction.h
+38
-15
38 additions, 15 deletions
...ometryHomogenousWithNeighborhoodDataNodeFeatureFunction.h
with
38 additions
and
15 deletions
Code/BasicFilters/otbRadiometryHomogenousWithNeighborhoodDataNodeFeatureFunction.h
+
38
−
15
View file @
c2c1fd01
...
@@ -29,22 +29,23 @@
...
@@ -29,22 +29,23 @@
namespace
otb
namespace
otb
{
{
/** \class RadiometryHomogenousWithNeighborhoodDataNodeFeatureFunction
/** \class RadiometryHomogenousWithNeighborhoodDataNodeFeatureFunction
* \brief Compute
a
spectral angle b
ased feature alongside a
* \brief Compute
the
spectral angle b
etween the radiometry along
*
datanode.
*
a line and its neighborhood
*
*
* This function compute a spectral angle alongside a datanode.
* This function compares the radiometry along a datanode with the
* The feature is the mean spectral angle regarding a
* radiometry of the neighborhood.
* reference pixel alongside the tested datanode.
*
*
* Furthermore, it compute the spectral in a neighborhood region located between
* It computes the mean of a rectangular area around each line segment,
* +/- m_StartNeighborhoodRadius and StopNeighborhoodRadius.
* and the mean of two rectangular areas on each side of the line segment.
* The descriptor is the spectral angle between the two values,
* scaled by \$f\pi\$f.
*
* The width of the area around a line segment can be specified with
* SetCenterRadius.
*
* The neighborhood area can be specified by two radius, using SetNeighborhoodBeginRadius
* and SetNeighborhoodEndRadius.
*
*
* The output has five elements:
* - #0: \$f \frac{mean spectral angle alongside the datanode}{mean spectral angle of the neighborhood} \$f
* - #1: cumulate spectral angle alongside the datanode
* - #2: number of pixel alongside the datanode
* - #3: cumulate spectral angle of the neighborhood
* - #4: number of pixel in the neighborhood
*
*
* \ingroup Functions
* \ingroup Functions
* \sa DataNodeImageFunction
* \sa DataNodeImageFunction
...
@@ -102,15 +103,33 @@ public:
...
@@ -102,15 +103,33 @@ public:
typedef
std
::
pair
<
IndexType
,
IndexType
>
IndexPairType
;
typedef
std
::
pair
<
IndexType
,
IndexType
>
IndexPairType
;
typedef
std
::
vector
<
PrecisionType
>
OutputType
;
typedef
std
::
vector
<
PrecisionType
>
OutputType
;
virtual
OutputType
Evaluate
(
const
DataNodeType
&
node
)
const
;
/* Compute the descriptor value along this DataNode */
virtual
OutputType
Evaluate
(
const
DataNodeType
&
node
)
const
;
/* Get the radius used to define the area around a line segment.
* A radius of 0 means that the area is reduced to a line joining
* the two segments extremities. */
itkGetConstMacro
(
CenterRadius
,
unsigned
int
);
itkGetConstMacro
(
CenterRadius
,
unsigned
int
);
/* Set the radius used to define the area around a line segment.
* A radius of 0 means that the area is reduced to a line joining
* the two segments extremities. */
itkSetMacro
(
CenterRadius
,
unsigned
int
);
itkSetMacro
(
CenterRadius
,
unsigned
int
);
/* Get the radius used to define the start of the neighboring area.
* Typically this value must be greater than CenterRadius */
itkGetConstMacro
(
NeighborhoodBeginRadius
,
unsigned
int
);
itkGetConstMacro
(
NeighborhoodBeginRadius
,
unsigned
int
);
/* Set the radius used to define the start of the neighboring area.
* Typically this value must be greater than CenterRadius */
itkSetMacro
(
NeighborhoodBeginRadius
,
unsigned
int
);
itkSetMacro
(
NeighborhoodBeginRadius
,
unsigned
int
);
/* Get the radius used to define the end of the neighboring area.
* Typically this value must be greater than NeighborhoodBeginRadius */
itkGetConstMacro
(
NeighborhoodEndRadius
,
unsigned
int
);
itkGetConstMacro
(
NeighborhoodEndRadius
,
unsigned
int
);
/* Set the radius used to define the end of the neighboring area.
* Typically this value must be greater than NeighborhoodBeginRadius */
itkSetMacro
(
NeighborhoodEndRadius
,
unsigned
int
);
itkSetMacro
(
NeighborhoodEndRadius
,
unsigned
int
);
protected:
protected:
...
@@ -122,9 +141,13 @@ private:
...
@@ -122,9 +141,13 @@ private:
RadiometryHomogenousWithNeighborhoodDataNodeFeatureFunction
(
const
Self
&
);
//purposely not implemented
RadiometryHomogenousWithNeighborhoodDataNodeFeatureFunction
(
const
Self
&
);
//purposely not implemented
void
operator
=
(
const
Self
&
);
//purposely not implemented
void
operator
=
(
const
Self
&
);
//purposely not implemented
/**
Start neighborhod
radius */
/**
Center
radius */
unsigned
int
m_CenterRadius
;
unsigned
int
m_CenterRadius
;
/** Neighborhood start radius */
unsigned
int
m_NeighborhoodBeginRadius
;
unsigned
int
m_NeighborhoodBeginRadius
;
/** Neighborhood end radius */
unsigned
int
m_NeighborhoodEndRadius
;
unsigned
int
m_NeighborhoodEndRadius
;
};
};
...
...
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