Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Main Repositories
otb
Commits
feda0ba9
Commit
feda0ba9
authored
Jan 05, 2007
by
Julien Michel
Browse files
Tests des examples.
parent
28a9ddd5
Changes
22
Hide whitespace changes
Inline
Side-by-side
Examples/BasicFilters/CMakeLists.txt
View file @
feda0ba9
...
...
@@ -6,3 +6,35 @@ ADD_EXECUTABLE(LeeImageFilter LeeImageFilter.cxx )
TARGET_LINK_LIBRARIES
(
LeeImageFilter OTBCommon OTBIO ITKCommon ITKIO ITKNumerics ITKBasicFilters ITKCommon ITKStatistics itkvnl_inst itkvnl_algo itkvnl itkvcl itksys ITKNrrdIO itkpng itktiff itkjpeg8 itkjpeg12 itkjpeg16 ITKMetaIO itkzlib ITKDICOMParser ITKEXPAT
)
IF
(
NOT OTB_DISABLE_CXX_TESTING
)
SET
(
BASELINE
${
OTB_DATA_ROOT
}
/Baseline/Examples/BasicFilters
)
SET
(
INPUTDATA
${
OTB_SOURCE_DIR
}
/Examples/Data
)
SET
(
TEMP
${
OTB_BINARY_DIR
}
/Testing/Temporary
)
SET
(
EXE_TESTS
${
CXX_TEST_PATH
}
/otbBasicFiltersExamplesTests
)
SET
(
TOL 0.0
)
# ------- LeeImageFilterTest----------
ADD_TEST
(
LeeImageFilterTest
${
EXE_TESTS
}
--compare-n-images
${
TOL
}
1
${
BASELINE
}
/GomaSmallLeeFiltered.png
${
TEMP
}
/GomaSmallLeeFiltered.png
LeeImageFilterTest
${
INPUTDATA
}
/GomaSmall.png
${
TEMP
}
/GomaSmallLeeFiltered.png
3 1
)
INCLUDE_DIRECTORIES
(
"
${
OTBTesting_BINARY_DIR
}
"
)
ADD_EXECUTABLE
(
otbBasicFiltersExamplesTests otbBasicFiltersExamplesTests.cxx
)
TARGET_LINK_LIBRARIES
(
otbBasicFiltersExamplesTests gdal ITKIO ITKAlgorithms ITKStatistics ITKCommon OTBBasicFilters OTBCommon OTBDisparityMap OTBIO OTBSpatialReasoning OTBChangeDetection OTBFeatureExtraction OTBLearning OTBMultiScale
)
ENDIF
(
NOT OTB_DISABLE_CXX_TESTING
)
Examples/BasicFilters/otbBasicFiltersExamplesTests.cxx
0 → 100644
View file @
feda0ba9
/*=========================================================================
Program: ORFEO Toolbox
Language: C++
Date: $Date$
Version: $Revision$
Copyright (c) Centre National d'Etudes Spatiales. All rights reserved.
See OTBCopyright.txt for details.
This software is distributed WITHOUT ANY WARRANTY; without even
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE. See the above copyright notices for more information.
=========================================================================*/
// this file defines the otbMultiScaleTest for the test driver
// and all it expects is that you have a function called RegisterTests
#if defined(_MSC_VER)
#pragma warning ( disable : 4786 )
#endif
#include <iostream>
#include "otbTestMain.h"
void
RegisterTests
()
{
REGISTER_TEST
(
LeeImageFilterTest
);
}
#undef main
#define main LeeImageFilterTest
#include "LeeImageFilter.cxx"
Examples/ChangeDetection/CMakeLists.txt
View file @
feda0ba9
...
...
@@ -19,3 +19,62 @@ TARGET_LINK_LIBRARIES(LHMIChDet OTBIO OTBCommon gdal ITKCommon ITKIO ITKStatisti
ADD_EXECUTABLE
(
JHMIChDet JHMIChDet.cxx
)
TARGET_LINK_LIBRARIES
(
JHMIChDet OTBIO OTBCommon gdal ITKCommon ITKIO ITKStatistics
)
IF
(
NOT OTB_DISABLE_CXX_TESTING
)
SET
(
BASELINE
${
OTB_DATA_ROOT
}
/Baseline/Examples/ChangeDetection
)
SET
(
INPUTDATA
${
OTB_SOURCE_DIR
}
/Examples/Data
)
SET
(
TEMP
${
OTB_BINARY_DIR
}
/Testing/Temporary
)
SET
(
EXE_TESTS
${
CXX_TEST_PATH
}
/otbChangeDetectionExamplesTests
)
SET
(
TOL 0.0
)
# ------- CorrelChDetTest----------
ADD_TEST
(
CorrelChDetTest
${
EXE_TESTS
}
--compare-n-images
${
TOL
}
1
${
BASELINE
}
/CorrChDet.tif
${
TEMP
}
/CorrChDet.tif
CorrelChDetTest
${
INPUTDATA
}
/ERSBefore.png
${
INPUTDATA
}
/ERSAfter.png
${
TEMP
}
/CorrChDet.tif
15
)
# ------- DiffChDetTest----------
ADD_TEST
(
DiffChDetTest
${
EXE_TESTS
}
--compare-n-images
${
TOL
}
1
${
BASELINE
}
/DiffChDet.tif
${
TEMP
}
/DiffChDet.tif
DiffChDetTest
${
INPUTDATA
}
/SpotBefore.png
${
INPUTDATA
}
/SpotAfter.png
${
TEMP
}
/DiffChDet.tif
3
)
# ------- RatioChDetTest----------
ADD_TEST
(
RatioChDetTest
${
EXE_TESTS
}
--compare-n-images
${
TOL
}
1
${
BASELINE
}
/RatioChDet.tif
${
TEMP
}
/RatioChDet.tif
RatioChDetTest
${
INPUTDATA
}
/GomaAvant.png
${
INPUTDATA
}
/GomaApres.png
${
TEMP
}
/RatioChDet.tif
3
)
INCLUDE_DIRECTORIES
(
"
${
OTBTesting_BINARY_DIR
}
"
)
ADD_EXECUTABLE
(
otbChangeDetectionExamplesTests otbChangeDetectionExamplesTests.cxx
)
TARGET_LINK_LIBRARIES
(
otbChangeDetectionExamplesTests gdal ITKIO ITKAlgorithms ITKStatistics ITKCommon OTBBasicFilters OTBCommon OTBDisparityMap OTBIO OTBSpatialReasoning OTBChangeDetection OTBFeatureExtraction OTBLearning OTBMultiScale
)
ENDIF
(
NOT OTB_DISABLE_CXX_TESTING
)
Examples/ChangeDetection/otbChangeDetectionExamplesTests.cxx
0 → 100644
View file @
feda0ba9
/*=========================================================================
Program: ORFEO Toolbox
Language: C++
Date: $Date$
Version: $Revision$
Copyright (c) Centre National d'Etudes Spatiales. All rights reserved.
See OTBCopyright.txt for details.
This software is distributed WITHOUT ANY WARRANTY; without even
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE. See the above copyright notices for more information.
=========================================================================*/
// this file defines the otbMultiScaleTest for the test driver
// and all it expects is that you have a function called RegisterTests
#if defined(_MSC_VER)
#pragma warning ( disable : 4786 )
#endif
#include <iostream>
#include "otbTestMain.h"
void
RegisterTests
()
{
REGISTER_TEST
(
CorrelChDetTest
);
REGISTER_TEST
(
DiffChDetTest
);
REGISTER_TEST
(
RatioChDetTest
);
}
#undef main
#define main CorrelChDetTest
#include "CorrelChDet.cxx"
#undef main
#define main DiffChDetTest
#include "DiffChDet.cxx"
#undef main
#define main RatioChDetTest
#include "RatioChDet.cxx"
Examples/Classification/CMakeLists.txt
View file @
feda0ba9
...
...
@@ -106,3 +106,48 @@ TARGET_LINK_LIBRARIES(ScalarImageMarkovRandomField1 OTBIO OTBCommon ITKIO ITKCom
IF
(
NOT OTB_DISABLE_CXX_TESTING
)
SET
(
BASELINE
${
OTB_DATA_ROOT
}
/Baseline/Examples/Classification
)
SET
(
INPUTDATA
${
OTB_SOURCE_DIR
}
/Examples/Data
)
SET
(
TEMP
${
OTB_BINARY_DIR
}
/Testing/Temporary
)
SET
(
EXE_TESTS
${
CXX_TEST_PATH
}
/otbClassificationExamplesTests
)
SET
(
TOL 0.0
)
# ------- ScalarImageMarkovRandomField1Test----------
ADD_TEST
(
ScalarImageMarkovRandomField1Test
${
EXE_TESTS
}
--compare-n-images
${
TOL
}
1
${
BASELINE
}
/ScalarImageMarkovRandomField1Output.png
${
TEMP
}
/ScalarImageMarkovRandomField1Output.png
ScalarImageMarkovRandomField1Test
${
INPUTDATA
}
/QB_Suburb.png
${
INPUTDATA
}
/QB_Suburb_labelled.png
${
TEMP
}
/ScalarImageMarkovRandomField1Output.png
50 3 4 79.5097 138.136 213.846 25.9395
)
# ------- ScalarImageKmeansClassifierTest----------
ADD_TEST
(
ScalarImageKmeansClassifierTest
${
EXE_TESTS
}
--compare-n-images
${
TOL
}
1
${
BASELINE
}
/QB_Suburb_labelled.png
${
TEMP
}
/QB_Suburb_labelled.png
ScalarImageKmeansClassifierTest
${
INPUTDATA
}
/QB_Suburb.png
${
TEMP
}
/QB_Suburb_labelled.png
0 4 79.5097 138.136 213.846 25.9395
)
INCLUDE_DIRECTORIES
(
"
${
OTBTesting_BINARY_DIR
}
"
)
ADD_EXECUTABLE
(
otbClassificationExamplesTests otbClassificationExamplesTests.cxx
)
TARGET_LINK_LIBRARIES
(
otbClassificationExamplesTests gdal ITKIO ITKAlgorithms ITKStatistics ITKCommon OTBBasicFilters OTBCommon OTBDisparityMap OTBIO OTBSpatialReasoning OTBChangeDetection OTBFeatureExtraction OTBLearning OTBMultiScale
)
ENDIF
(
NOT OTB_DISABLE_CXX_TESTING
)
Examples/Classification/otbClassificationExamplesTests.cxx
0 → 100644
View file @
feda0ba9
/*=========================================================================
Program: ORFEO Toolbox
Language: C++
Date: $Date$
Version: $Revision$
Copyright (c) Centre National d'Etudes Spatiales. All rights reserved.
See OTBCopyright.txt for details.
This software is distributed WITHOUT ANY WARRANTY; without even
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE. See the above copyright notices for more information.
=========================================================================*/
// this file defines the otbMultiScaleTest for the test driver
// and all it expects is that you have a function called RegisterTests
#if defined(_MSC_VER)
#pragma warning ( disable : 4786 )
#endif
#include <iostream>
#include "otbTestMain.h"
void
RegisterTests
()
{
REGISTER_TEST
(
ScalarImageMarkovRandomField1Test
);
REGISTER_TEST
(
ScalarImageKmeansClassifierTest
);
}
#undef main
#define main ScalarImageMarkovRandomField1Test
#include "ScalarImageMarkovRandomField1.cxx"
#undef main
#define main ScalarImageKmeansClassifierTest
#include "ScalarImageKmeansClassifier.cxx"
Examples/DataRepresentation/Image/CMakeLists.txt
View file @
feda0ba9
...
...
@@ -36,3 +36,47 @@ TARGET_LINK_LIBRARIES(ImageAdaptor3 OTBCommon ITKCommon OTBIO ITKIO)
ADD_EXECUTABLE
(
ImageAdaptor4 ImageAdaptor4.cxx
)
TARGET_LINK_LIBRARIES
(
ImageAdaptor4 OTBCommon ITKCommon OTBIO ITKIO
)
IF
(
NOT OTB_DISABLE_CXX_TESTING
)
SET
(
BASELINE
${
OTB_DATA_ROOT
}
/Baseline/Examples/DataRepresentation/Image
)
SET
(
INPUTDATA
${
OTB_SOURCE_DIR
}
/Examples/Data
)
SET
(
TEMP
${
OTB_BINARY_DIR
}
/Testing/Temporary
)
SET
(
EXE_TESTS
${
CXX_TEST_PATH
}
/otbImageExamplesTests
)
SET
(
TOL 0.0
)
# ------- ImageAdaptor4Test----------
ADD_TEST
(
ImageAdaptor4Test
${
EXE_TESTS
}
--compare-n-images
${
TOL
}
1
${
BASELINE
}
/ImageAdaptorThresholdingA.png
${
TEMP
}
/ImageAdaptorThresholdingA.png
ImageAdaptor4Test
${
INPUTDATA
}
/QB_Suburb.png
${
TEMP
}
/ImageAdaptorThresholdingA.png
100
)
# ------- ImageAdaptor4Test----------
ADD_TEST
(
ImageAdaptor4Test
${
EXE_TESTS
}
--compare-n-images
${
TOL
}
1
${
BASELINE
}
/ImageAdaptorThresholdingB.png
${
TEMP
}
/ImageAdaptorThresholdingB.png
ImageAdaptor4Test
${
INPUTDATA
}
/QB_Suburb.png
${
TEMP
}
/ImageAdaptorThresholdingB.png
200
)
INCLUDE_DIRECTORIES
(
"
${
OTBTesting_BINARY_DIR
}
"
)
ADD_EXECUTABLE
(
otbImageExamplesTests otbImageExamplesTests.cxx
)
TARGET_LINK_LIBRARIES
(
otbImageExamplesTests gdal ITKIO ITKAlgorithms ITKStatistics ITKCommon OTBBasicFilters OTBCommon OTBDisparityMap OTBIO OTBSpatialReasoning OTBChangeDetection OTBFeatureExtraction OTBLearning OTBMultiScale
)
ENDIF
(
NOT OTB_DISABLE_CXX_TESTING
)
Examples/DataRepresentation/Image/otbImageExamplesTests.cxx
0 → 100644
View file @
feda0ba9
/*=========================================================================
Program: ORFEO Toolbox
Language: C++
Date: $Date$
Version: $Revision$
Copyright (c) Centre National d'Etudes Spatiales. All rights reserved.
See OTBCopyright.txt for details.
This software is distributed WITHOUT ANY WARRANTY; without even
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE. See the above copyright notices for more information.
=========================================================================*/
// this file defines the otbMultiScaleTest for the test driver
// and all it expects is that you have a function called RegisterTests
#if defined(_MSC_VER)
#pragma warning ( disable : 4786 )
#endif
#include <iostream>
#include "otbTestMain.h"
void
RegisterTests
()
{
REGISTER_TEST
(
ImageAdaptor4Test
);
}
#undef main
#define main ImageAdaptor4Test
#include "ImageAdaptor4.cxx"
Examples/FeatureExtraction/CMakeLists.txt
View file @
feda0ba9
...
...
@@ -46,3 +46,142 @@ TARGET_LINK_LIBRARIES(ExtractSegmentsByStepsExample OTBFeatureExtraction OTBComm
ADD_EXECUTABLE
(
ExtractSegmentsExample
ExtractSegmentsExample.cxx
)
TARGET_LINK_LIBRARIES
(
ExtractSegmentsExample OTBFeatureExtraction OTBCommon OTBIO ITKCommon ITKIO
)
IF
(
NOT OTB_DISABLE_CXX_TESTING
)
SET
(
BASELINE
${
OTB_DATA_ROOT
}
/Baseline/Examples/FeatureExtraction
)
SET
(
INPUTDATA
${
OTB_SOURCE_DIR
}
/Examples/Data
)
SET
(
TEMP
${
OTB_BINARY_DIR
}
/Testing/Temporary
)
SET
(
EXE_TESTS
${
CXX_TEST_PATH
}
/otbFeatureExtractionExamplesTests
)
SET
(
TOL 0.0
)
# ------- CorrelationLineDetectorExampleTest----------
ADD_TEST
(
CorrelationLineDetectorExampleTest
${
EXE_TESTS
}
--compare-n-images
${
TOL
}
2
${
BASELINE
}
/amstLineCorrelations.png
${
TEMP
}
/amstLineCorrelations.png
${
BASELINE
}
/amstLineCorrelationDirections.png
${
TEMP
}
/amstLineCorrelationDirections.png
CorrelationLineDetectorExampleTest
${
INPUTDATA
}
/amst.png
${
TEMP
}
/amstLineCorrelations.png
${
TEMP
}
/amstLineCorrelationDirections.png
5 1
)
# ------- LocalHoughExampleTest----------
ADD_TEST
(
LocalHoughExampleTest
${
EXE_TESTS
}
--compare-n-images
${
TOL
}
1
${
BASELINE
}
/detected_local_hough.png
${
TEMP
}
/detected_local_hough.png
LocalHoughExampleTest
${
INPUTDATA
}
/detected_lines.png
${
TEMP
}
/detected_local_hough.png
30 10 1 50
)
# ------- HarrisExampleTest----------
ADD_TEST
(
HarrisExampleTest
${
EXE_TESTS
}
--compare-n-images
${
TOL
}
1
${
BASELINE
}
/ROISpot5Harris.png
${
TEMP
}
/ROISpot5Harris.png
HarrisExampleTest
${
INPUTDATA
}
/ROISpot5.png
${
TEMP
}
/ROISpot5Harris.png
1.5 2 0.1
)
# ------- TouziEdgeDetectorExampleTest----------
ADD_TEST
(
TouziEdgeDetectorExampleTest
${
EXE_TESTS
}
--compare-n-images
${
TOL
}
2
${
BASELINE
}
/amstTouziEdges.png
${
TEMP
}
/amstTouziEdges.png
${
BASELINE
}
/amstTouziDirections.png
${
TEMP
}
/amstTouziDirections.png
TouziEdgeDetectorExampleTest
${
INPUTDATA
}
/amst.png
${
TEMP
}
/amstTouziEdges.png
${
TEMP
}
/amstTouziDirections.png
3
)
# ------- ExtractSegmentsByStepsExampleTest----------
ADD_TEST
(
ExtractSegmentsByStepsExampleTest
${
EXE_TESTS
}
--compare-n-images
${
TOL
}
1
${
BASELINE
}
/amstSegmentExtractionBySteps.png
${
TEMP
}
/amstSegmentExtractionBySteps.png
ExtractSegmentsByStepsExampleTest
${
INPUTDATA
}
/amst.png
${
TEMP
}
/amstSegmentExtractionBySteps.png
10 3 10 0.5 10 10 3 10 0.5
)
# ------- AssymmetricFusionOfLineDetectorExampleTest----------
ADD_TEST
(
AssymmetricFusionOfLineDetectorExampleTest
${
EXE_TESTS
}
--compare-n-images
${
TOL
}
2
${
BASELINE
}
/amstLineFusion.png
${
TEMP
}
/amstLineFusion.png
${
BASELINE
}
/amstLineFusionDirs.png
${
TEMP
}
/amstLineFusionDirs.png
AssymmetricFusionOfLineDetectorExampleTest
${
INPUTDATA
}
/amst.png
${
TEMP
}
/amstLineFusion.png
${
TEMP
}
/amstLineFusionDirs.png
5 1
)
# ------- ExtractSegmentsExampleTest----------
ADD_TEST
(
ExtractSegmentsExampleTest
${
EXE_TESTS
}
--compare-n-images
${
TOL
}
1
${
BASELINE
}
/amstSegmentExtraction.png
${
TEMP
}
/amstSegmentExtraction.png
ExtractSegmentsExampleTest
${
INPUTDATA
}
/amst.png
${
TEMP
}
/amstSegmentExtraction.png
10 3 10 0.5 10 10 3 10 0.5
)
# ------- RatioLineDetectorExampleTest----------
ADD_TEST
(
RatioLineDetectorExampleTest
${
EXE_TESTS
}
--compare-n-images
${
TOL
}
2
${
BASELINE
}
/amstLineRatios.png
${
TEMP
}
/amstLineRatios.png
${
BASELINE
}
/amstLineRatioDirections.png
${
TEMP
}
/amstLineRatioDirections.png
RatioLineDetectorExampleTest
${
INPUTDATA
}
/amst.png
${
TEMP
}
/amstLineRatios.png
${
TEMP
}
/amstLineRatioDirections.png
5 1
)
# ------- AlignmentsExampleTest----------
ADD_TEST
(
AlignmentsExampleTest
${
EXE_TESTS
}
--compare-n-images
${
TOL
}
1
${
BASELINE
}
/QB_SuburbAlign.png
${
TEMP
}
/QB_SuburbAlign.png
AlignmentsExampleTest
${
INPUTDATA
}
/QB_Suburb.png
${
TEMP
}
/QB_SuburbAlign.png
)
INCLUDE_DIRECTORIES
(
"
${
OTBTesting_BINARY_DIR
}
"
)
ADD_EXECUTABLE
(
otbFeatureExtractionExamplesTests otbFeatureExtractionExamplesTests.cxx
)
TARGET_LINK_LIBRARIES
(
otbFeatureExtractionExamplesTests gdal ITKIO ITKAlgorithms ITKStatistics ITKCommon OTBBasicFilters OTBCommon OTBDisparityMap OTBIO OTBSpatialReasoning OTBChangeDetection OTBFeatureExtraction OTBLearning OTBMultiScale
)
ENDIF
(
NOT OTB_DISABLE_CXX_TESTING
)
Examples/FeatureExtraction/otbFeatureExtractionExamplesTests.cxx
0 → 100644
View file @
feda0ba9
/*=========================================================================
Program: ORFEO Toolbox
Language: C++
Date: $Date$
Version: $Revision$
Copyright (c) Centre National d'Etudes Spatiales. All rights reserved.
See OTBCopyright.txt for details.
This software is distributed WITHOUT ANY WARRANTY; without even
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE. See the above copyright notices for more information.
=========================================================================*/
// this file defines the otbMultiScaleTest for the test driver
// and all it expects is that you have a function called RegisterTests
#if defined(_MSC_VER)
#pragma warning ( disable : 4786 )
#endif
#include <iostream>
#include "otbTestMain.h"
void
RegisterTests
()
{
REGISTER_TEST
(
CorrelationLineDetectorExampleTest
);
REGISTER_TEST
(
LocalHoughExampleTest
);
REGISTER_TEST
(
HarrisExampleTest
);
REGISTER_TEST
(
TouziEdgeDetectorExampleTest
);
REGISTER_TEST
(
ExtractSegmentsByStepsExampleTest
);
REGISTER_TEST
(
AssymmetricFusionOfLineDetectorExampleTest
);
REGISTER_TEST
(
ExtractSegmentsExampleTest
);
REGISTER_TEST
(
RatioLineDetectorExampleTest
);
REGISTER_TEST
(
AlignmentsExampleTest
);
}
#undef main
#define main CorrelationLineDetectorExampleTest
#include "CorrelationLineDetectorExample.cxx"
#undef main
#define main LocalHoughExampleTest
#include "LocalHoughExample.cxx"
#undef main
#define main HarrisExampleTest
#include "HarrisExample.cxx"
#undef main
#define main TouziEdgeDetectorExampleTest
#include "TouziEdgeDetectorExample.cxx"
#undef main
#define main ExtractSegmentsByStepsExampleTest
#include "ExtractSegmentsByStepsExample.cxx"
#undef main
#define main AssymmetricFusionOfLineDetectorExampleTest
#include "AssymmetricFusionOfLineDetectorExample.cxx"
#undef main
#define main ExtractSegmentsExampleTest
#include "ExtractSegmentsExample.cxx"
#undef main
#define main RatioLineDetectorExampleTest
#include "RatioLineDetectorExample.cxx"
#undef main
#define main AlignmentsExampleTest
#include "AlignmentsExample.cxx"
Examples/Filtering/CMakeLists.txt
View file @
feda0ba9
...
...
@@ -248,3 +248,267 @@ ENDIF(NOT BORLAND)
ENDIF
(
NOT ITK_DISABLE_CXX_TESTING
)
IF
(
NOT OTB_DISABLE_CXX_TESTING
)
SET
(
BASELINE
${
OTB_DATA_ROOT
}
/Baseline/Examples/Filtering
)
SET
(
INPUTDATA
${
OTB_SOURCE_DIR
}
/Examples/Data
)
SET
(
TEMP
${
OTB_BINARY_DIR
}
/Testing/Temporary
)
SET
(
EXE_TESTS
${
CXX_TEST_PATH
}
/otbFilteringExamplesTests
)
SET
(
TOL 0.0
)
# ------- MathematicalMorphologyBinaryFiltersTest----------
ADD_TEST
(
MathematicalMorphologyBinaryFiltersTest
${
EXE_TESTS
}
--compare-n-images
${
TOL
}
2
${
BASELINE
}
/MathematicalMorphologyBinaryErosionOutput.png
${
TEMP
}
/MathematicalMorphologyBinaryErosionOutput.png
${
BASELINE
}
/MathematicalMorphologyBinaryDilationOutput.png
${
TEMP
}
/MathematicalMorphologyBinaryDilationOutput.png
MathematicalMorphologyBinaryFiltersTest
${
INPUTDATA
}
/ROISpot5.png
${
TEMP
}
/MathematicalMorphologyBinaryErosionOutput.png
${
TEMP
}
/MathematicalMorphologyBinaryDilationOutput.png
150 180
)
# ------- DanielssonDistanceMapImageFilterTest----------
ADD_TEST
(
DanielssonDistanceMapImageFilterTest
${
EXE_TESTS
}
--compare-n-images
${
TOL
}
3
${
BASELINE
}
/DanielssonDistanceMapImageFilterOutput1.png
${
TEMP
}
/DanielssonDistanceMapImageFilterOutput1.png
${
BASELINE
}
/DanielssonDistanceMapImageFilterOutput2.png
${
TEMP
}
/DanielssonDistanceMapImageFilterOutput2.png
${
BASELINE
}
/DanielssonDistanceMapImageFilterOutput3.mhd