Skip to content
Snippets Groups Projects
Commit 3c575fd8 authored by Julien Michel's avatar Julien Michel
Browse files

MAJ examples Kullback leibler.

parent 543c34d8
No related branches found
No related tags found
No related merge requests found
...@@ -55,8 +55,8 @@ ADD_DEFINITIONS( ...@@ -55,8 +55,8 @@ ADD_DEFINITIONS(
#----------------------------------------------------------------------------- #-----------------------------------------------------------------------------
# OTB version number. An even minor number corresponds to releases. # OTB version number. An even minor number corresponds to releases.
SET(OTB_VERSION_MAJOR "1") SET(OTB_VERSION_MAJOR "1")
SET(OTB_VERSION_MINOR "2") SET(OTB_VERSION_MINOR "4")
SET(OTB_VERSION_PATCH "1") SET(OTB_VERSION_PATCH "0")
# Version string should not include patch level. The major.minor is # Version string should not include patch level. The major.minor is
# enough to distinguish available features of the toolkit. # enough to distinguish available features of the toolkit.
......
...@@ -45,7 +45,7 @@ ...@@ -45,7 +45,7 @@
// \right) \\ // \right) \\
// - 10 \frac{\kappa_{X_1;3} \kappa_{X_2;3} // - 10 \frac{\kappa_{X_1;3} \kappa_{X_2;3}
// \left( \kappa_{X_1;1} - \kappa_{X_2;1} \right) // \left( \kappa_{X_1;1} - \kappa_{X_2;1} \right)
// \left( \kappa_{X_1;2} - \kappa_{X_2;2} \right)}{\kappa_{X_2;2}^6} // \left( \kappa_{X_1;2} - \kappa_{X_2;2} \right)}{\kappa_{X_2;2}^6} \qquad
// \end{multline} // \end{multline}
// where // where
// \begin{align*} // \begin{align*}
...@@ -122,7 +122,8 @@ int main(int argc, char * argv[]) ...@@ -122,7 +122,8 @@ int main(int argc, char * argv[])
// Software Guide : EndLatex // Software Guide : EndLatex
// Software Guide : BeginCodeSnippet // Software Guide : BeginCodeSnippet
typedef otb::KullbackLeiblerDistanceImageFilter<ImageType,ImageType,ImageType> FilterType; typedef otb::KullbackLeiblerDistanceImageFilter<ImageType,
ImageType,ImageType> FilterType;
// Software Guide : EndCodeSnippet // Software Guide : EndCodeSnippet
// Software Guide : BeginLatex // Software Guide : BeginLatex
......
...@@ -29,12 +29,12 @@ ...@@ -29,12 +29,12 @@
// between pairs of images, according to a range of window size. // between pairs of images, according to a range of window size.
// This example is very similar, in its principle, to all of the change // This example is very similar, in its principle, to all of the change
// detection examples, especially the distance between distribution one // detection examples, especially the distance between distribution one
// (section~\ref{sec:KullbackLeiblerDistance} which uses a fixed window size. // (section~\ref{sec:KullbackLeiblerDistance}) which uses a fixed window size.
// //
// The main differences are: // The main differences are:
// \begin{enumerate} // \begin{enumerate}
// \item a set of window range instead of a fixed size of window; // \item a set of window range instead of a fixed size of window;
// \item an output of type \doxygen[otb}{VectorImage}. // \item an output of type \doxygen{otb}{VectorImage}.
// \end{enumerate} // \end{enumerate}
// Then, the program begins with the \doxygen{otb}{VectorImage} and the // Then, the program begins with the \doxygen{otb}{VectorImage} and the
// \doxygen{otb}{KullbackLeiblerProfileImageFilter} header files in complements // \doxygen{otb}{KullbackLeiblerProfileImageFilter} header files in complements
...@@ -49,13 +49,10 @@ ...@@ -49,13 +49,10 @@
// Software Guide : BeginCodeSnippet // Software Guide : BeginCodeSnippet
#include "otbVectorImage.h" #include "otbVectorImage.h"
#include "otbKullbackLeiblerProfileImageFilter.h"
// Software Guide : EndCodeSnippet // Software Guide : EndCodeSnippet
#include "otbImageFileReader.h" #include "otbImageFileReader.h"
#include "otbImageFileWriter.h" #include "otbImageFileWriter.h"
// Software Guide : BeginCodeSnippet
#include "otbKullbackLeiblerProfileImageFilter.h"
// Software Guide : EndCodeSnippet
int main(int argc, char * argv[]) int main(int argc, char * argv[])
{ {
...@@ -93,7 +90,8 @@ int main(int argc, char * argv[]) ...@@ -93,7 +90,8 @@ int main(int argc, char * argv[])
// Software Guide : BeginCodeSnippet // Software Guide : BeginCodeSnippet
typedef otb::Image<PixelType,Dimension> ImageType; typedef otb::Image<PixelType,Dimension> ImageType;
typedef otb::VectorImage<PixelType,Dimension> VectorImageType; typedef otb::VectorImage<PixelType,Dimension> VectorImageType;
typedef otb::KullbackLeiblerProfileImageFilter<ImageType,ImageType,VectorImageType> FilterType; typedef otb::KullbackLeiblerProfileImageFilter<ImageType,
ImageType,VectorImageType> FilterType;
// Software Guide : EndCodeSnippet // Software Guide : EndCodeSnippet
typedef otb::VectorImage<OutPixelType,Dimension> OutVectorImageType; typedef otb::VectorImage<OutPixelType,Dimension> OutVectorImageType;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment