Commit b16715a1 authored by Guillaume Borrut's avatar Guillaume Borrut

ENH: Adding examples for AVI and the multiChannelRAndGAndNirChannel

parent d156cd93
......@@ -71,7 +71,7 @@
// \mathbf{ARVI} = \frac{ L_{NIR}-L_{rb} }{ L_{NIR}+L_{rb} }
// \end{equation}
//
// For more details, refer to Faufman and Tanr work \cite{ARVI}.
// For more details, refer to Kaufman and Tanr� work \cite{ARVI}.
//
// With the \doxygen{otb}{MultiChannelRAndBAndNIRVegetationIndexImageFilter} class the
// input has to be a multi channel image and the user has to specify index channel
......@@ -132,6 +132,8 @@ int main( int argc, char *argv[] )
//
// The ARVI (Atmospherically Resistant Vegetation Index) is
// instantiated using the image pixel types as template parameters.
// Note that we also can use other functors which operate with the
// Red, Blue and Nir channels such as EVI, ARVI and TSARVI.
//
// Software Guide : EndLatex
......
......@@ -31,9 +31,9 @@ ADD_TEST(ARVIMultiChannelRAndBAndNIRVegetationIndexImageFilterTest ${EXE_TESTS}
${BASELINE}/ARVIMultiChannelRAndBAndNIRVegetationIndex.tif
${TEMP}/ARVIMultiChannelRAndBAndNIRVegetationIndex.tif
ARVIMultiChannelRAndBAndNIRVegetationIndexImageFilterTest
${INPUTDATA}/poupees_sub.png
${INPUTDATA}/poupees_sub.png
${TEMP}/ARVIMultiChannelRAndBAndNIRVegetationIndex.tif
${TEMP}/ARVIMultiChannelRAndBAndNIRVegetationIndex3.tif
${TEMP}/ARVIMultiChannelRAndBAndNIRVegetationIndex3.tif
${TEMP}/ARVIMultiChannelRAndBAndNIRVegetationIndex2.tif
1
2
......@@ -43,6 +43,27 @@ ADD_TEST(ARVIMultiChannelRAndBAndNIRVegetationIndexImageFilterTest ${EXE_TESTS}
# ------- AVIMultiChannelRAndGAndNIRVegetationIndexImageFilterTest ------------------------------
ADD_TEST(AVIMultiChannelRAndGAndNIRVegetationIndexImageFilterTest ${EXE_TESTS}
#--compare-image ${TOL}
#${BASELINE}/AVIMultiChannelRAndGAndNIRVegetationIndexImageFilterTest.tif
#${TEMP}/AVIMultiChannelRAndGAndNIRVegetationIndexImageFilterTest.tif
AVIMultiChannelRAndGAndNIRVegetationIndexImageFilterTest
${INPUTDATA}/qb_toulouse_sub.tif
${TEMP}/AVIMultiChannelRAndGAndNIRVegetationIndexImageFilterTest.tif
${TEMP}/AVIMultiChannelRAndGAndNIRVegetationIndexImageFilterTest2.png
${TEMP}/AVIMultiChannelRAndGAndNIRVegetationIndexImageFilterTest3.png
3
2
4 # indices of the channels
660.
560.
830. # lambdaR, lambdaG, lambdaNir
)
# ------- NDVIRAndNIRVegetationIndexImageFilter ------------------------------
ADD_TEST(NDVIRAndNIRVegetationIndexImageFilterTest ${EXE_TESTS}
......@@ -58,6 +79,8 @@ ADD_TEST(NDVIRAndNIRVegetationIndexImageFilterTest ${EXE_TESTS}
${TEMP}/NDVIRAndNIRVegetationIndex4.tif
)
ADD_TEST(AtmosphericCorrectionSequencementTest ${EXE_TESTS}
--compare-image ${EPSILON}
${BASELINE}/Example_RomaniaAtmosphericCorrectionSequencement.tif
......
......@@ -103,6 +103,9 @@ int main( int argc, char *argv[] )
// the images pixel type as template parameters. It is
// implemented as a functor class which will be passed as a
// parameter to an \doxygen{otb}{RAndNIRVegetationIndexImageFilter}.
// Note that we also can use other functors which operate with the
// Red and Nir channels, such as PVI, RVI, SAVI, MSAVI, TSAVI, GEMI,
// WDVI, IPVI, and TNDVI.
//
// Software Guide : EndLatex
......
......@@ -26,6 +26,7 @@
void RegisterTests()
{
REGISTER_TEST(ARVIMultiChannelRAndBAndNIRVegetationIndexImageFilterTest);
REGISTER_TEST(AVIMultiChannelRAndGAndNIRVegetationIndexImageFilterTest);
REGISTER_TEST(NDVIRAndNIRVegetationIndexImageFilterTest);
REGISTER_TEST(AtmosphericCorrectionSequencementTest);
}
......@@ -38,6 +39,10 @@ void RegisterTests()
#define main NDVIRAndNIRVegetationIndexImageFilterTest
#include "NDVIRAndNIRVegetationIndexImageFilter.cxx"
#undef main
#define main AVIMultiChannelRAndGAndNIRVegetationIndexImageFilterTest
#include "AVIMultiChannelRAndGAndNIRVegetationIndexImageFilter.cxx"
#undef main
#define main AtmosphericCorrectionSequencementTest
#include "AtmosphericCorrectionSequencement.cxx"
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment