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
e58e6867
There was an error fetching the commit references. Please try again later.
Commit
e58e6867
authored
17 years ago
by
Jordi Inglada
Browse files
Options
Downloads
Patches
Plain Diff
correction texte figures
parent
d95aef81
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Examples/Radiometry/NDVIRAndNIRVegetationIndexImageFilter.cxx
+15
-11
15 additions, 11 deletions
...ples/Radiometry/NDVIRAndNIRVegetationIndexImageFilter.cxx
with
15 additions
and
11 deletions
Examples/Radiometry/NDVIRAndNIRVegetationIndexImageFilter.cxx
+
15
−
11
View file @
e58e6867
...
@@ -40,14 +40,14 @@
...
@@ -40,14 +40,14 @@
// \doxygen{otb}{RAndNIRVegetationIndexImageFilter} with the use of the Normalized
// \doxygen{otb}{RAndNIRVegetationIndexImageFilter} with the use of the Normalized
// Difference Vegatation Index (NDVI).
// Difference Vegatation Index (NDVI).
// NDVI computes the difference between the NIR channel, noted $L_{NIR}$, and the red channel,
// NDVI computes the difference between the NIR channel, noted $L_{NIR}$, and the red channel,
// noted $L_{r}$ radiances reflected from the surface and transmitted through the atmosphere
:
// noted $L_{r}$ radiances reflected from the surface and transmitted through the atmosphere:
//
//
// \begin{equation}
// \begin{equation}
// \mathbf{NDVI} = \frac{L_{NIR}-L_{r}}{L_{NIR}+L_{r}}
// \mathbf{NDVI} = \frac{L_{NIR}-L_{r}}{L_{NIR}+L_{r}}
// \end{equation}
// \end{equation}
//
//
// With the \doxygen{otb}{RAndNIRVegetationIndexImageFilter} class the filter
// With the \doxygen{otb}{RAndNIRVegetationIndexImageFilter} class the filter
// inputs are one channel images
: one inmage represents the NIR channel, the
// inputs are one channel images: one inmage represents the NIR channel, the
// the other the NIR channel.
// the other the NIR channel.
//
//
// Let's look at the minimal code required to use this algorithm. First, the following header
// Let's look at the minimal code required to use this algorithm. First, the following header
...
@@ -79,7 +79,7 @@ int main( int argc, char *argv[] )
...
@@ -79,7 +79,7 @@ int main( int argc, char *argv[] )
// Software Guide : BeginLatex
// Software Guide : BeginLatex
//
//
// The image types are now defined using pixel types
and particular
// The image types are now defined using pixel types
the
// dimension. Input and output images are defined as \doxygen{otb}{Image}.
// dimension. Input and output images are defined as \doxygen{otb}{Image}.
//
//
// Software Guide : EndLatex
// Software Guide : EndLatex
...
@@ -101,7 +101,9 @@ int main( int argc, char *argv[] )
...
@@ -101,7 +101,9 @@ int main( int argc, char *argv[] )
// Software Guide : BeginLatex
// Software Guide : BeginLatex
//
//
// The NDVI (Normalized Difference Vegetation Index) is instantiated using
// The NDVI (Normalized Difference Vegetation Index) is instantiated using
// the images pixel type types as template parameters.
// the images pixel type types as template parameters. It is
// implemented as a functor class which will be passed as a
// parameter to an \doxygen{otb}{RAndNIRVegetationIndexImageFilter}.
//
//
// Software Guide : EndLatex
// Software Guide : EndLatex
...
@@ -122,7 +124,8 @@ int main( int argc, char *argv[] )
...
@@ -122,7 +124,8 @@ int main( int argc, char *argv[] )
typedef
otb
::
RAndNIRVegetationIndexImageFilter
<
InputRImageType
,
typedef
otb
::
RAndNIRVegetationIndexImageFilter
<
InputRImageType
,
InputNIRImageType
,
InputNIRImageType
,
OutputImageType
,
OutputImageType
,
FunctorType
>
RAndNIRVegetationIndexImageFilterType
;
FunctorType
>
RAndNIRVegetationIndexImageFilterType
;
// Software Guide : EndCodeSnippet
// Software Guide : EndCodeSnippet
...
@@ -134,7 +137,7 @@ int main( int argc, char *argv[] )
...
@@ -134,7 +137,7 @@ int main( int argc, char *argv[] )
// Software Guide : BeginLatex
// Software Guide : BeginLatex
//
//
// Now the input images
is
set and a name is given to the output image.
// Now the input images
are
set and a name is given to the output image.
//
//
// Software Guide : EndLatex
// Software Guide : EndLatex
...
@@ -147,8 +150,9 @@ int main( int argc, char *argv[] )
...
@@ -147,8 +150,9 @@ int main( int argc, char *argv[] )
// Software Guide : BeginLatex
// Software Guide : BeginLatex
//
//
// The filter inputs are linked to readers output and
// We set the processing pipeline: the filter inputs are linked to
// the filter output is linked to the writer input.
// reader output and the filter output is linked to the writer
// input.
//
//
// Software Guide : EndLatex
// Software Guide : EndLatex
...
@@ -238,15 +242,15 @@ int main( int argc, char *argv[] )
...
@@ -238,15 +242,15 @@ int main( int argc, char *argv[] )
// Software Guide : BeginLatex
// Software Guide : BeginLatex
//
//
// Let's now run this example using as input the images
// Let's now run this example using as input the images
// \code{NDVI\_3.hdr} and \code{NDVI\_4.hdr} (images kindly and free of charge given by
the
SISA and
the
CNES)
// \code{NDVI\_3.hdr} and \code{NDVI\_4.hdr} (images kindly and free of charge given by SISA and CNES)
//
and $\gamma=0.6$
provided in the directory \code{Examples/Data}.
// provided in the directory \code{Examples/Data}.
//
//
//
//
// \begin{figure} \center
// \begin{figure} \center
// \includegraphics[width=0.24\textwidth]{pretty_Red.eps}
// \includegraphics[width=0.24\textwidth]{pretty_Red.eps}
// \includegraphics[width=0.24\textwidth]{pretty_NIR.eps}
// \includegraphics[width=0.24\textwidth]{pretty_NIR.eps}
// \includegraphics[width=0.24\textwidth]{pretty_NDVIRAndNIRVegetationIndex.eps}
// \includegraphics[width=0.24\textwidth]{pretty_NDVIRAndNIRVegetationIndex.eps}
// \itkcaption[ARVI Example]{NDVI input images on the
righ
t (Red channel and NIR channel), on the
lef
t the result of the algorithm.}
// \itkcaption[ARVI Example]{NDVI input images on the
lef
t (Red channel and NIR channel), on the
righ
t the result of the algorithm.}
// \label{fig:NDVIRAndNIRVegetationIndex}
// \label{fig:NDVIRAndNIRVegetationIndex}
// \end{figure}
// \end{figure}
//
//
...
...
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