Commit 566a195b authored by Cédric Traizet's avatar Cédric Traizet

ENH: updated test for the Smoothing application

parent 07b601e9
<?xml version="1.0" ?>
<OTB>
<version>3.18</version>
<build>18-05-2013</build>
<platform>Linux</platform>
<application>
<name>Smoothing</name>
<descr>Apply a smoothing filter to an image</descr>
<doc>
<name>Smoothing</name>
<longdescr>This application applies smoothing filter to an image. Either gaussian, mean, or anisotropic diffusion are available.</longdescr>
<authors>OTB-Team</authors>
<limitations>None</limitations>
<seealso> </seealso>
<tags>
<tag>Image Filtering</tag>
</tags>
</doc>
<parameter mandatory="true">
<key>in</key>
<type>InputImage</type>
<name>Input Image</name>
<value>/home/rashad/repos/orfeo/OTB-Data/Input/poupees.tif</value>
</parameter>
<parameter mandatory="true">
<key>out</key>
<type>OutputImage</type>
<name>Output Image</name>
<value>/home/rashad/repos/orfeo/build/OTB_/test-build/Testing/Temporary/apTvUtSmoothingTest_OutXML.tif</value>
</parameter>
<parameter mandatory="true">
<key>type</key>
<type>Choice</type>
<name>Smoothing Type</name>
<value>mean</value>
</parameter>
</application>
</OTB>
......@@ -20,9 +20,20 @@
otb_module_test()
#----------- Smoothing TESTS ----------------
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
OPTIONS -inxml ${TEMP}/apTvUtSmoothingTest_OutXML.xml
-in ${INPUTDATA}/poupees.tif
-out ${TEMP}/apTvUtSmoothingTest_InXML.tif
-type mean
......@@ -30,24 +41,32 @@ otb_test_application(NAME apTvUtSmoothingTest_InXML
${BASELINE}/apTvUtSmoothingTest.tif
${TEMP}/apTvUtSmoothingTest_InXML.tif)
otb_test_application(NAME apTvUtSmoothingTest
set_tests_properties( apTvUtSmoothingTest_InXML
PROPERTIES DEPENDS apTvUtSmoothingTest_OutXML)
otb_test_application(NAME apTvUtSmoothingTestGaussian
APP Smoothing
OPTIONS -in ${INPUTDATA}/poupees.tif
-out ${TEMP}/apTvUtSmoothingTest.tif
-type mean
-out ${TEMP}/apTvUtSmoothingTestGaussian.tif
-type gaussian
-type.gaussian.stdev 2.0
-type.gaussian.maxerror 0.1
-type.gaussian.maxwidth 64
VALID --compare-image ${NOTOL}
${BASELINE}/apTvUtSmoothingTest.tif
${TEMP}/apTvUtSmoothingTest.tif)
${BASELINE}/apTvUtSmoothingTestGaussian.tif
${TEMP}/apTvUtSmoothingTestGaussian.tif)
otb_test_application(NAME apTvUtSmoothingTest_OutXML
otb_test_application(NAME apTvUtSmoothingTestAnisotropic
APP Smoothing
OPTIONS -in ${INPUTDATA}/poupees.tif
-out ${TEMP}/apTvUtSmoothingTest_OutXML.tif
-type mean
-outxml ${TEMP}/apTvUtSmoothingTest_OutXML.xml
-out ${TEMP}/apTvUtSmoothingTestAnisotropic.tif
-type anidif
-type.anidif.timestep 0.125
-type.anidif.nbiter 10
-type.anidif.conductance 1.
VALID --compare-image ${NOTOL}
${BASELINE}/apTvUtSmoothingTest.tif
${TEMP}/apTvUtSmoothingTest_OutXML.tif)
${BASELINE}/apTvUtSmoothingTestAnisotropic.tif
${TEMP}/apTvUtSmoothingTestAnisotropic.tif)
#----------- Contrast TESTS ----------------
......@@ -115,7 +134,3 @@ otb_test_application(NAME nlMeansTest_base
${BASELINE}/GomaAvant_NLMeans.tif
${TEMP}/GomaAvant_NLMeans.tif)
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