diff --git a/Applications/Filtering/CMakeLists.txt b/Applications/Filtering/CMakeLists.txt index 67f381278467ac760ca34f2d45678f593503925d..4518e9f9c08b3402c536e332738825968e0d68b1 100644 --- a/Applications/Filtering/CMakeLists.txt +++ b/Applications/Filtering/CMakeLists.txt @@ -2,4 +2,6 @@ OTB_CREATE_APPLICATION(NAME Despeckle SOURCES otbDespeckle.cxx LINK_LIBRARIES OTBIO;OTBCommon;OTBBasicFilters) - +OTB_CREATE_APPLICATION(NAME Smoothing + SOURCES otbSmoothing.cxx + LINK_LIBRARIES OTBIO;OTBCommon;OTBBasicFilters) diff --git a/Applications/Utils/otbSmoothing.cxx b/Applications/Filtering/otbSmoothing.cxx similarity index 100% rename from Applications/Utils/otbSmoothing.cxx rename to Applications/Filtering/otbSmoothing.cxx diff --git a/Applications/Utils/CMakeLists.txt b/Applications/Utils/CMakeLists.txt index 929493b6fe50280bc512b35de1bfa621b8d2787a..c873eea0e30b75eec74aaeb576e349d1e06f763e 100644 --- a/Applications/Utils/CMakeLists.txt +++ b/Applications/Utils/CMakeLists.txt @@ -7,10 +7,6 @@ OTB_CREATE_APPLICATION(NAME Rescale SOURCES otbRescale.cxx LINK_LIBRARIES OTBIO;OTBCommon;OTBBasicFilters) -OTB_CREATE_APPLICATION(NAME Smoothing - SOURCES otbSmoothing.cxx - LINK_LIBRARIES OTBIO;OTBCommon;OTBBasicFilters) - OTB_CREATE_APPLICATION(NAME ReadImageInfo SOURCES otbReadImageInfo.cxx LINK_LIBRARIES OTBIO;OTBCommon;OTBBasicFilters) diff --git a/Testing/Applications/CMakeLists.txt b/Testing/Applications/CMakeLists.txt index f15da6e2aa7e2d87cdde71af989f9e62ab7799c6..5b278561d8d42cc1aa09e8a93fda8394b21e3673 100644 --- a/Testing/Applications/CMakeLists.txt +++ b/Testing/Applications/CMakeLists.txt @@ -53,6 +53,7 @@ add_subdirectory(ChangeDetection) add_subdirectory(Classification) add_subdirectory(DisparityMap) add_subdirectory(FeatureExtraction) +add_subdirectory(Filtering) add_subdirectory(Fusion) add_subdirectory(Hyperspectral) add_subdirectory(Projections) diff --git a/Testing/Applications/Filtering/CMakeLists.txt b/Testing/Applications/Filtering/CMakeLists.txt new file mode 100644 index 0000000000000000000000000000000000000000..ec00887067a94310e0251b7442e2e924eb4e1a0d --- /dev/null +++ b/Testing/Applications/Filtering/CMakeLists.txt @@ -0,0 +1,29 @@ +#--- Smoothing ---# +OTB_TEST_APPLICATION(NAME apTvUtSmoothingTest + APP Smoothing + OPTIONS -in ${INPUTDATA}/poupees.tif + -out ${TEMP}/apTvUtSmoothingTest.tif + -type mean + VALID --compare-image ${NOTOL} + ${BASELINE}/apTvUtSmoothingTest.tif + ${TEMP}/apTvUtSmoothingTest.tif) + +OTB_TEST_APPLICATION(NAME apTvUtSmoothingTest_OutXML + APP Smoothing + OPTIONS -in ${INPUTDATA}/poupees.tif + -out ${TEMP}/apTvUtSmoothingTest_OutXML.tif + -type mean + -outxml ${TEMP}/apTvUtSmoothingTest_OutXML.xml + VALID --compare-image ${NOTOL} + ${BASELINE}/apTvUtSmoothingTest.tif + ${TEMP}/apTvUtSmoothingTest_OutXML.tif) + +OTB_TEST_APPLICATION(NAME apTvUtSmoothingTest_InXML + APP Smoothing + OPTIONS -inxml ${INPUTDATA}/apTvUtSmoothingTest_OutXML.xml + -in ${INPUTDATA}/poupees.tif + -out ${TEMP}/apTvUtSmoothingTest_InXML.tif + -type mean + VALID --compare-image ${NOTOL} + ${BASELINE}/apTvUtSmoothingTest.tif + ${TEMP}/apTvUtSmoothingTest_InXML.tif)