Skip to content
Snippets Groups Projects
Commit 4e248899 authored by Emmanuel Christophe's avatar Emmanuel Christophe
Browse files

TEST: MeanShiftVectorImageFilterExample

parent 852457aa
No related branches found
No related tags found
No related merge requests found
......@@ -106,6 +106,35 @@ ADD_TEST(IndexedToRGBExampleTest ${EXE_TESTS}
${TEMP}/buildingExtractionIndexed_scaled.png
)
ADD_TEST(MeanShiftVectorImageFilterExampleTest ${EXE_TESTS}
--compare-n-images ${TOL} 6
${BASELINE}/MSFilteredOutput.tif
${TEMP}/MSFilteredOutput.tif
${BASELINE}/MSClusteredOutput.tif
${TEMP}/MSClusteredOutput.tif
${BASELINE}/MSLabelledOutput.tif
${TEMP}/MSLabelledOutput.tif
${BASELINE}/MSBoundariesOutput.tif
${TEMP}/MSBoundariesOutput.tif
${BASELINE}/MSFilteredOutput-pretty.png
${TEMP}/MSFilteredOutput-pretty.png
${BASELINE}/MSClusteredOutput-pretty.png
${TEMP}/MSClusteredOutput-pretty.png
MeanShiftVectorImageFilterExampleTest
${INPUTDATA}/ROI_QB_MUL_1.png
${TEMP}/MSFilteredOutput.tif
${TEMP}/MSClusteredOutput.tif
${TEMP}/MSLabelledOutput.tif
${TEMP}/MSBoundariesOutput.tif
${TEMP}/MSFilteredOutput-pretty.png
${TEMP}/MSClusteredOutput-pretty.png
16
16
10
1.0
)
ADD_EXECUTABLE(otbBasicFiltersExamplesTests otbBasicFiltersExamplesTests.cxx)
TARGET_LINK_LIBRARIES(otbBasicFiltersExamplesTests gdal ITKIO ITKAlgorithms ITKStatistics ITKCommon OTBBasicFilters OTBCommon OTBDisparityMap OTBIO OTBSpatialReasoning OTBChangeDetection OTBFeatureExtraction OTBLearning OTBMultiScale)
......
......@@ -31,6 +31,7 @@ REGISTER_TEST(ScalingFilterExampleTest);
REGISTER_TEST(PrintableImageFilterExample1Test);
REGISTER_TEST(PrintableImageFilterExample2Test);
REGISTER_TEST(IndexedToRGBExampleTest);
REGISTER_TEST(MeanShiftVectorImageFilterExampleTest);
}
#undef main
......@@ -57,3 +58,8 @@ REGISTER_TEST(IndexedToRGBExampleTest);
#undef main
#define main IndexedToRGBExampleTest
#include "IndexedToRGBExample.cxx"
#undef main
#define main MeanShiftVectorImageFilterExampleTest
#include "MeanShiftVectorImageFilterExample.cxx"
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