Commit 51d5b067 authored by Thomas Feuvrier's avatar Thomas Feuvrier

Mise a jour Thomas pour testing

parent 3ed59ca6
......@@ -36,6 +36,41 @@ SET(EXE_TESTS ${CXX_TEST_PATH}/otbTutorialsExamplesTests)
SET(TOL 0.0)
ADD_TEST( TutorialsPipelineTest ${EXE_TESTS}
--compare-image ${TOL} ${BASELINE}/TutorialsPipelineOutput.png
${TEMP}/TutorialsPipelineOutput.png
TutorialsPipelineTest
${INPUTDATA}/QB_Suburb.png
${TEMP}/TutorialsPipelineOutput.png
)
ADD_TEST( TutorialsFilteringPipelineTest ${EXE_TESTS}
--compare-image ${TOL} ${BASELINE}/TutorialsFilteringPipelineOutput.png
${TEMP}/TutorialsFilteringPipelineOutput.png
TutorialsFilteringPipelineTest
${INPUTDATA}/QB_Suburb.png
${TEMP}/TutorialsFilteringPipelineOutput.png
)
ADD_TEST( TutorialsScalingPipelineTest ${EXE_TESTS}
--compare-image ${TOL} ${BASELINE}/TutorialsScalingPipelineOutput.png
${TEMP}/TutorialsScalingPipelineOutput.png
TutorialsScalingPipelineTest
${INPUTDATA}/QB_Suburb.png
${TEMP}/TutorialsScalingPipelineOutput.png
)
ADD_TEST( TutorialsSmarterFilteringPipelineTest ${EXE_TESTS}
--compare-image ${TOL} ${BASELINE}/TutorialsSmarterFilteringPipelineOutput.png
${TEMP}/TutorialsSmarterFilteringPipelineOutput.png
TutorialsSmarterFilteringPipelineTest
-in ${INPUTDATA}/QB_Suburb.png
-out ${TEMP}/TutorialsSmarterFilteringPipelineOutput.png
-d 1.5
-i 2
-a 0.1
)
INCLUDE_DIRECTORIES("${OTBTesting_BINARY_DIR}")
......
......@@ -16,6 +16,12 @@
=========================================================================*/
// Software Guide : BeginCommandLineArgs
// INPUTS: {QB_Suburb.png}
// OUTPUTS: {TutorialsFilteringPipelineOutput.png}
// Software Guide : EndCommandLineArgs
// Software Guide : BeginLatex
//
//
......@@ -34,7 +40,7 @@
#include "otbStreamingImageFileWriter.h"
#include "itkGradientMagnitudeImageFilter.h"
int main(int argc, char ** argv)
int main( int argc, char * argv[] )
{
// Software Guide : EndCodeSnippet
......
......@@ -16,6 +16,12 @@
=========================================================================*/
// Software Guide : BeginCommandLineArgs
// INPUTS: {QB_Suburb.png}
// OUTPUTS: {TutorialsPipelineOutput.png}
// Software Guide : EndCommandLineArgs
// Software Guide : BeginLatex
//
// Start by including some necessary headers and with the
......@@ -28,7 +34,7 @@
#include "otbImageFileReader.h"
#include "otbStreamingImageFileWriter.h"
int main(int argc, char ** argv)
int main( int argc, char * argv[] )
{
// Software Guide : EndCodeSnippet
......
......@@ -16,6 +16,12 @@
=========================================================================*/
// Software Guide : BeginCommandLineArgs
// INPUTS: {QB_Suburb.png}
// OUTPUTS: {TutorialsScalingPipelineOutput.png}
// Software Guide : EndCommandLineArgs
// Software Guide : BeginLatex
//
// This example illustrates the use of the
......@@ -35,7 +41,7 @@
#include "itkCannyEdgeDetectionImageFilter.h"
#include "itkRescaleIntensityImageFilter.h"
int main(int argc, char ** argv)
int main( int argc, char * argv[] )
{
// Software Guide : EndCodeSnippet
......
......@@ -33,7 +33,7 @@
#include "itkGradientMagnitudeImageFilter.h"
#include "otbImageViewer.h"
int main(int argc, char ** argv)
int main( int argc, char * argv[] )
{
// Software Guide : EndCodeSnippet
......
......@@ -16,6 +16,13 @@
=========================================================================*/
// Software Guide : BeginCommandLineArgs
// INPUTS: {QB_Suburb.png}
// OUTPUTS: {TutorialsSmarterFilteringPipelineOutput.png}
// -d 1.5 -i 2 -a 0.1
// Software Guide : EndCommandLineArgs
// Software Guide : BeginLatex
//
//
......@@ -71,7 +78,7 @@
#include "itkRescaleIntensityImageFilter.h"
#include "otbHarrisImageFilter.h"
int main(int argc, char ** argv)
int main( int argc, char * argv[] )
{
// Software Guide : EndCodeSnippet
......
......@@ -26,8 +26,29 @@
void RegisterTests()
{
REGISTER_TEST(HelloWorldOTBTest);
REGISTER_TEST(TutorialsPipelineTest);
REGISTER_TEST(TutorialsFilteringPipelineTest);
REGISTER_TEST(TutorialsScalingPipelineTest);
REGISTER_TEST(TutorialsSmarterFilteringPipelineTest);
}
#undef main
#define main HelloWorldOTBTest
#include "HelloWorldOTBTest.cxx"
#include "HelloWorldOTBT.cxx"
#undef main
#define main TutorialsPipelineTest
#include "Pipeline.cxx"
#undef main
#define main TutorialsFilteringPipelineTest
#include "FilteringPipeline.cxx"
#undef main
#define main TutorialsScalingPipelineTest
#include "ScalingPipeline.cxx"
#undef main
#define main TutorialsSmarterFilteringPipelineTest
#include "SmarterFilteringPipeline.cxx"
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