diff --git a/Modules/ImageStatistics/Testing/CMakeLists.txt b/Modules/ImageStatistics/Testing/CMakeLists.txt
index 20bc5e41dc..129d41a2c3 100644
--- a/Modules/ImageStatistics/Testing/CMakeLists.txt
+++ b/Modules/ImageStatistics/Testing/CMakeLists.txt
@@ -1,35 +1,34 @@
MITK_CREATE_MODULE_TESTS()
mitkAddCustomModuleTest(mitkRoiMeasurementsTests mitkRoiMeasurementsTest ${MITK_DATA_DIR}/ImageStatisticsTestData/)
file(GLOB allHotSpotTests RELATIVE "${CMAKE_CURRENT_SOURCE_DIR}/Data/Hotspot" "${CMAKE_CURRENT_SOURCE_DIR}/Data/Hotspot/*.xml")
foreach(testcase ${allHotSpotTests})
string(REGEX REPLACE "[^a-zA-Z0-9_]" "_" testcaseName ${testcase})
- message("Generate hotspot test 'mitkImageStatisticsHotspotTest_${testcaseName}'.")
mitkAddCustomModuleTest(mitkImageStatisticsHotspotTest_${testcaseName} mitkImageStatisticsHotspotTest ${CMAKE_CURRENT_SOURCE_DIR}/Data/Hotspot/${testcase})
endforeach()
#
# The following lines may be activated to generate new test cases for mitkImageStatisticsHotspotTest.
# Test cases are generated by mitkMultiGaussianTest. All .xml files in Data/TestGeneration/Input will
# be processed and transformed into new .xml files containing statistics in Data/TestGeneration/Output.
#
if (false)
set(testInputDir ${CMAKE_CURRENT_SOURCE_DIR}/Data/TestGeneration/Input)
set(testOutputDir ${CMAKE_CURRENT_SOURCE_DIR}/Data/TestGeneration/Output)
file(GLOB testcasesToGenerate RELATIVE "${testInputDir}" "${testInputDir}/*.xml")
if (NOT EXISTS ${testOutputDir})
file(MAKE_DIRECTORY ${testOutputDir})
endif()
foreach(testinput ${testcasesToGenerate})
string(REGEX REPLACE "[^a-zA-Z0-9_]\\+" "_" testcaseName ${testinput})
string(REGEX REPLACE "\\.xml" "" testoutput ${testinput})
message("Generate hotspot test case '${testinput}'. Output in '${testoutput}.xml' and '${testoutput}.nrrd'")
mitkAddCustomModuleTest(mitkMultiGaussianTest_${testcaseName}
mitkMultiGaussianTest
${testOutputDir}/${testoutput}
${testInputDir}/${testinput})
endforeach()
endif()
diff --git a/Modules/ImageStatistics/Testing/Data/Hotspot/GlobalPeakOutsideSegmentation_25_30.xml b/Modules/ImageStatistics/Testing/Data/Hotspot/GlobalPeakOutsideSegmentation_25_30.xml
index 194f8cfe75..0d3e2d2590 100644
--- a/Modules/ImageStatistics/Testing/Data/Hotspot/GlobalPeakOutsideSegmentation_25_30.xml
+++ b/Modules/ImageStatistics/Testing/Data/Hotspot/GlobalPeakOutsideSegmentation_25_30.xml
@@ -1,10 +1,10 @@
-
+
-
+
-
+
diff --git a/Modules/ImageStatistics/Testing/Data/Hotspot/PeakInMaxOutsideSegmentation_10_20.xml b/Modules/ImageStatistics/Testing/Data/Hotspot/PeakInMaxOutsideSegmentation_10_20.xml
index a5cda737dc..cce013e12e 100644
--- a/Modules/ImageStatistics/Testing/Data/Hotspot/PeakInMaxOutsideSegmentation_10_20.xml
+++ b/Modules/ImageStatistics/Testing/Data/Hotspot/PeakInMaxOutsideSegmentation_10_20.xml
@@ -1,9 +1,9 @@
-
+
diff --git a/Modules/ImageStatistics/Testing/Data/Hotspot/PeakInMaxOutsideSegmentation_25_30.xml b/Modules/ImageStatistics/Testing/Data/Hotspot/PeakInMaxOutsideSegmentation_25_30.xml
index da43b4437a..74cc73aab8 100644
--- a/Modules/ImageStatistics/Testing/Data/Hotspot/PeakInMaxOutsideSegmentation_25_30.xml
+++ b/Modules/ImageStatistics/Testing/Data/Hotspot/PeakInMaxOutsideSegmentation_25_30.xml
@@ -1,11 +1,11 @@
-
+
diff --git a/Modules/ImageStatistics/Testing/Data/Hotspot/PeakInMaxOutsideSegmentation_40_30.xml b/Modules/ImageStatistics/Testing/Data/Hotspot/PeakInMaxOutsideSegmentation_40_30.xml
index 2325e770c5..50ab0588b9 100644
--- a/Modules/ImageStatistics/Testing/Data/Hotspot/PeakInMaxOutsideSegmentation_40_30.xml
+++ b/Modules/ImageStatistics/Testing/Data/Hotspot/PeakInMaxOutsideSegmentation_40_30.xml
@@ -1,9 +1,9 @@
-
+
diff --git a/Modules/ImageStatistics/Testing/Data/Hotspot/PeakNearBorder_40_30.xml b/Modules/ImageStatistics/Testing/Data/Hotspot/PeakNearBorder_40_30.xml
index d1308b95be..ba2cf59f35 100644
--- a/Modules/ImageStatistics/Testing/Data/Hotspot/PeakNearBorder_40_30.xml
+++ b/Modules/ImageStatistics/Testing/Data/Hotspot/PeakNearBorder_40_30.xml
@@ -1,10 +1,10 @@
-
+
diff --git a/Modules/ImageStatistics/Testing/Data/Hotspot/TwoSegmentations_10_20.xml b/Modules/ImageStatistics/Testing/Data/Hotspot/TwoSegmentations_10_20.xml
index 71b5341f38..c8c308a82f 100644
--- a/Modules/ImageStatistics/Testing/Data/Hotspot/TwoSegmentations_10_20.xml
+++ b/Modules/ImageStatistics/Testing/Data/Hotspot/TwoSegmentations_10_20.xml
@@ -1,13 +1,13 @@
-
+
diff --git a/Modules/ImageStatistics/Testing/Data/Hotspot/TwoSegmentations_40_30.xml b/Modules/ImageStatistics/Testing/Data/Hotspot/TwoSegmentations_40_30.xml
index b21e372918..9a3c34693a 100644
--- a/Modules/ImageStatistics/Testing/Data/Hotspot/TwoSegmentations_40_30.xml
+++ b/Modules/ImageStatistics/Testing/Data/Hotspot/TwoSegmentations_40_30.xml
@@ -1,12 +1,12 @@
-
-
+
+