From af0016a4d5e2352bfccedb7a79342df0c0aaa829 Mon Sep 17 00:00:00 2001
From: Guillaume Pasero <guillaume.pasero@c-s.fr>
Date: Thu, 4 Jul 2019 12:15:07 +0200
Subject: [PATCH] TEST: speed up other long tests

---
 ...ullbackLeiblerProfileImageFilterOutput.tif |  4 +--
 .../ChangeDetection/test/CMakeLists.txt       |  2 +-
 .../Filtering/Convolution/test/CMakeLists.txt |  4 +--
 .../Filtering/Smoothing/test/CMakeLists.txt   | 30 +++++++++----------
 4 files changed, 20 insertions(+), 20 deletions(-)

diff --git a/Data/Baseline/OTB/Images/cdTVKullbackLeiblerProfileImageFilterOutput.tif b/Data/Baseline/OTB/Images/cdTVKullbackLeiblerProfileImageFilterOutput.tif
index 48b2c70ef8..3fe5bd7e66 100644
--- a/Data/Baseline/OTB/Images/cdTVKullbackLeiblerProfileImageFilterOutput.tif
+++ b/Data/Baseline/OTB/Images/cdTVKullbackLeiblerProfileImageFilterOutput.tif
@@ -1,3 +1,3 @@
 version https://git-lfs.github.com/spec/v1
-oid sha256:e6bb44d10e6bda4bf05b1da502f38ed37da4bb4255303ef425bf5cfcca317547
-size 14126924
+oid sha256:8c95283e5fd179085f8e0ae6cb23cfed03d8b0d24f2213591c33d97fe3dd360a
+size 6721840
diff --git a/Modules/Filtering/ChangeDetection/test/CMakeLists.txt b/Modules/Filtering/ChangeDetection/test/CMakeLists.txt
index 4996b057f7..5acae45eac 100644
--- a/Modules/Filtering/ChangeDetection/test/CMakeLists.txt
+++ b/Modules/Filtering/ChangeDetection/test/CMakeLists.txt
@@ -119,7 +119,7 @@ otb_add_test(NAME cdTvKullbackLeiblerProfileImageFilter COMMAND otbChangeDetecti
   ${INPUTDATA}/GomaAvant.png
   ${INPUTDATA}/GomaApres.png
   ${TEMP}/cdTVKullbackLeiblerProfileImageFilterOutput.tif
-  5 51)
+  5 31)
 
 otb_add_test(NAME cdTvKullbackLeiblerDistanceImageFilter COMMAND otbChangeDetectionTestDriver
   --compare-image ${EPSILON_10}
diff --git a/Modules/Filtering/Convolution/test/CMakeLists.txt b/Modules/Filtering/Convolution/test/CMakeLists.txt
index 3057231828..3ac91e9978 100644
--- a/Modules/Filtering/Convolution/test/CMakeLists.txt
+++ b/Modules/Filtering/Convolution/test/CMakeLists.txt
@@ -63,10 +63,10 @@ otb_add_test(NAME bfTvCompareOverlapSaveAndClassicalConvolutionWithGaborFilter C
   ${TEMP}/bfTvCompareConvolutionOutput.tif
   ${TEMP}/bfTvCompareOSConvolutionoutput.tif
   otbCompareOverlapSaveAndClassicalConvolutionWithGaborFilter
-  ${INPUTDATA}/ROI_IKO_PAN_LesHalles_sub.tif
+  ${INPUTDATA}/QB_PAN_ROI_1000_100.tif
   ${TEMP}/bfTvCompareConvolutionOutput.tif
   ${TEMP}/bfTvCompareOSConvolutionoutput.tif
-  64 64 #Radius
+  32 32 #Radius
   0.02 0.025 # a b
   -45 # theta
   0.0125 0.0125 #u0 v0
diff --git a/Modules/Filtering/Smoothing/test/CMakeLists.txt b/Modules/Filtering/Smoothing/test/CMakeLists.txt
index d66fafefd4..1272ed6c4d 100644
--- a/Modules/Filtering/Smoothing/test/CMakeLists.txt
+++ b/Modules/Filtering/Smoothing/test/CMakeLists.txt
@@ -74,13 +74,13 @@ otb_add_test(NAME bfTvMeanShiftSmoothingImageFilterNonOptim COMMAND otbSmoothing
   2 10 0.1 10 0
   )
 
-otb_add_test(NAME bfTuMeanShiftSmoothingImageFilterROIQBMul4 COMMAND otbSmoothingTestDriver
+otb_add_test(NAME bfTuMeanShiftSmoothingImageFilterROIQB COMMAND otbSmoothingTestDriver
   otbMeanShiftSmoothingImageFilter
-  ${INPUTDATA}/ROI_QB_MUL_4.tif
-  ${TEMP}/bfMeanShiftSmoothingImageFilterSpatialOutput_ROIQBMul4.tif
-  ${TEMP}/bfMeanShiftSmoothingImageFilterSpectralOutput_ROIQBMul4.tif
-  ${TEMP}/bfMeanShiftSmoothingImageFilterIterationOutput_ROIQBMul4.tif
-  ${TEMP}/bfMeanShiftSmoothingImageFilterLabelOutput_ROIQBMul4.tif
+  ${INPUTDATA}/QB_MUL_ROI_1000_100.tif
+  ${TEMP}/bfMeanShiftSmoothingImageFilterSpatialOutput_ROIQB.tif
+  ${TEMP}/bfMeanShiftSmoothingImageFilterSpectralOutput_ROIQB.tif
+  ${TEMP}/bfMeanShiftSmoothingImageFilterIterationOutput_ROIQB.tif
+  ${TEMP}/bfMeanShiftSmoothingImageFilterLabelOutput_ROIQB.tif
   4 50 0.1 100
   )
 
@@ -133,19 +133,19 @@ otb_add_test(NAME bfTuMeanShiftSmoothingImageFilterQBRoad COMMAND otbSmoothingTe
 
 otb_add_test(NAME bfTuMeanShiftSmoothingImageFilterSpatialStability COMMAND otbSmoothingTestDriver
   otbMeanShiftSmoothingImageFilterSpatialStability
-  ${INPUTDATA}/ROI_QB_MUL_4.tif
-  4 50 0.1 40
-  100 100 512 512
+  ${INPUTDATA}/QB_MUL_ROI_1000_100.tif
+  2 50 0.1 10
+  10 10 80 80
   )
 
 
 otb_add_test(NAME bfTvMeanShiftSmoothingImageFilterThreadingNonOpt COMMAND otbSmoothingTestDriver
   --compare-image ${EPSILON_7}
-  ${TEMP}/bfMeanShiftSmoothingImageFilter2SingleThreading_SPOT5.tif
-  ${TEMP}/bfMeanShiftSmoothingImageFilter2MultiThreading_SPOT5.tif
+  ${TEMP}/bfMeanShiftSmoothingImageFilterSingleThread.tif
+  ${TEMP}/bfMeanShiftSmoothingImageFilterMultiThread.tif
   otbMeanShiftSmoothingImageFilterThreading
-  ${INPUTDATA}/SPOT5_EXTRACTS/Arcachon/Arcachon_extrait_3852_3319_546_542.tif
-  ${TEMP}/bfMeanShiftSmoothingImageFilter2SingleThreading_SPOT5.tif
-  ${TEMP}/bfMeanShiftSmoothingImageFilter2MultiThreading_SPOT5.tif
-  4 10 0
+  ${INPUTDATA}/QB_MUL_ROI_1000_100.tif
+  ${TEMP}/bfMeanShiftSmoothingImageFilterSingleThread.tif
+  ${TEMP}/bfMeanShiftSmoothingImageFilterMultiThread.tif
+  4 50 0
   )
-- 
GitLab