diff --git a/Modules/ImageStatistics/Testing/CMakeLists.txt b/Modules/ImageStatistics/Testing/CMakeLists.txt index 049363d78f..20bc5e41dc 100644 --- a/Modules/ImageStatistics/Testing/CMakeLists.txt +++ b/Modules/ImageStatistics/Testing/CMakeLists.txt @@ -1,34 +1,35 @@ MITK_CREATE_MODULE_TESTS() mitkAddCustomModuleTest(mitkRoiMeasurementsTests mitkRoiMeasurementsTest ${MITK_DATA_DIR}/ImageStatisticsTestData/) -file(GLOB allHotSpotTests RELATIVE "${CMAKE_CURRENT_SOURCE_DIR}/Data" "${CMAKE_CURRENT_SOURCE_DIR}/Data/Hotspot_Case*.xml") +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}) - mitkAddCustomModuleTest(mitkImageStatisticsHotspotTest_${testcaseName} mitkImageStatisticsHotspotTest ${CMAKE_CURRENT_SOURCE_DIR}/Data/${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_10_20.xml b/Modules/ImageStatistics/Testing/Data/Hotspot/GlobalPeakOutsideSegmentation_10_20.xml new file mode 100644 index 0000000000..8b85cd7abf --- /dev/null +++ b/Modules/ImageStatistics/Testing/Data/Hotspot/GlobalPeakOutsideSegmentation_10_20.xml @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/Modules/ImageStatistics/Testing/Data/Hotspot/GlobalPeakOutsideSegmentation_25_30.xml b/Modules/ImageStatistics/Testing/Data/Hotspot/GlobalPeakOutsideSegmentation_25_30.xml new file mode 100644 index 0000000000..194f8cfe75 --- /dev/null +++ b/Modules/ImageStatistics/Testing/Data/Hotspot/GlobalPeakOutsideSegmentation_25_30.xml @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/Modules/ImageStatistics/Testing/Data/Hotspot/GlobalPeakOutsideSegmentation_40_30.xml b/Modules/ImageStatistics/Testing/Data/Hotspot/GlobalPeakOutsideSegmentation_40_30.xml new file mode 100644 index 0000000000..e9231ddd79 --- /dev/null +++ b/Modules/ImageStatistics/Testing/Data/Hotspot/GlobalPeakOutsideSegmentation_40_30.xml @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/Modules/ImageStatistics/Testing/Data/Hotspot/MaxOutsidePeak_10_20.xml b/Modules/ImageStatistics/Testing/Data/Hotspot/MaxOutsidePeak_10_20.xml new file mode 100644 index 0000000000..99e0167486 --- /dev/null +++ b/Modules/ImageStatistics/Testing/Data/Hotspot/MaxOutsidePeak_10_20.xml @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/Modules/ImageStatistics/Testing/Data/Hotspot/MaxOutsidePeak_25_30.xml b/Modules/ImageStatistics/Testing/Data/Hotspot/MaxOutsidePeak_25_30.xml new file mode 100644 index 0000000000..c03ada41c7 --- /dev/null +++ b/Modules/ImageStatistics/Testing/Data/Hotspot/MaxOutsidePeak_25_30.xml @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/Modules/ImageStatistics/Testing/Data/Hotspot/MaxOutsidePeak_40_30.xml b/Modules/ImageStatistics/Testing/Data/Hotspot/MaxOutsidePeak_40_30.xml new file mode 100644 index 0000000000..199c39f30f --- /dev/null +++ b/Modules/ImageStatistics/Testing/Data/Hotspot/MaxOutsidePeak_40_30.xml @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/Modules/ImageStatistics/Testing/Data/Hotspot/PeakInMaxOutsideSegmentation_10_20.xml b/Modules/ImageStatistics/Testing/Data/Hotspot/PeakInMaxOutsideSegmentation_10_20.xml new file mode 100644 index 0000000000..a5cda737dc --- /dev/null +++ b/Modules/ImageStatistics/Testing/Data/Hotspot/PeakInMaxOutsideSegmentation_10_20.xml @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/Modules/ImageStatistics/Testing/Data/Hotspot/PeakInMaxOutsideSegmentation_25_30.xml b/Modules/ImageStatistics/Testing/Data/Hotspot/PeakInMaxOutsideSegmentation_25_30.xml new file mode 100644 index 0000000000..da43b4437a --- /dev/null +++ b/Modules/ImageStatistics/Testing/Data/Hotspot/PeakInMaxOutsideSegmentation_25_30.xml @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/Modules/ImageStatistics/Testing/Data/Hotspot/PeakInMaxOutsideSegmentation_40_30.xml b/Modules/ImageStatistics/Testing/Data/Hotspot/PeakInMaxOutsideSegmentation_40_30.xml new file mode 100644 index 0000000000..2325e770c5 --- /dev/null +++ b/Modules/ImageStatistics/Testing/Data/Hotspot/PeakInMaxOutsideSegmentation_40_30.xml @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/Modules/ImageStatistics/Testing/Data/Hotspot/PeakNearBorder_10_20.xml b/Modules/ImageStatistics/Testing/Data/Hotspot/PeakNearBorder_10_20.xml new file mode 100644 index 0000000000..8d7f4f6c56 --- /dev/null +++ b/Modules/ImageStatistics/Testing/Data/Hotspot/PeakNearBorder_10_20.xml @@ -0,0 +1,12 @@ + + + + + + + + + + + + diff --git a/Modules/ImageStatistics/Testing/Data/Hotspot/PeakNearBorder_25_30.xml b/Modules/ImageStatistics/Testing/Data/Hotspot/PeakNearBorder_25_30.xml new file mode 100644 index 0000000000..d2e77e8eb1 --- /dev/null +++ b/Modules/ImageStatistics/Testing/Data/Hotspot/PeakNearBorder_25_30.xml @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/Modules/ImageStatistics/Testing/Data/Hotspot/PeakNearBorder_40_30.xml b/Modules/ImageStatistics/Testing/Data/Hotspot/PeakNearBorder_40_30.xml new file mode 100644 index 0000000000..d1308b95be --- /dev/null +++ b/Modules/ImageStatistics/Testing/Data/Hotspot/PeakNearBorder_40_30.xml @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/Modules/ImageStatistics/Testing/Data/Hotspot/TwoSegmentations_10_20.xml b/Modules/ImageStatistics/Testing/Data/Hotspot/TwoSegmentations_10_20.xml new file mode 100644 index 0000000000..71b5341f38 --- /dev/null +++ b/Modules/ImageStatistics/Testing/Data/Hotspot/TwoSegmentations_10_20.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + diff --git a/Modules/ImageStatistics/Testing/Data/Hotspot/TwoSegmentations_25_30.xml b/Modules/ImageStatistics/Testing/Data/Hotspot/TwoSegmentations_25_30.xml new file mode 100644 index 0000000000..2a546d2e2a --- /dev/null +++ b/Modules/ImageStatistics/Testing/Data/Hotspot/TwoSegmentations_25_30.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + diff --git a/Modules/ImageStatistics/Testing/Data/Hotspot/TwoSegmentations_40_30.xml b/Modules/ImageStatistics/Testing/Data/Hotspot/TwoSegmentations_40_30.xml new file mode 100644 index 0000000000..b21e372918 --- /dev/null +++ b/Modules/ImageStatistics/Testing/Data/Hotspot/TwoSegmentations_40_30.xml @@ -0,0 +1,12 @@ + + + + + + + + + + + + diff --git a/Modules/ImageStatistics/Testing/Data/Hotspot_Case1.xml b/Modules/ImageStatistics/Testing/Data/Hotspot_Case1.xml deleted file mode 100644 index eebe8211ed..0000000000 --- a/Modules/ImageStatistics/Testing/Data/Hotspot_Case1.xml +++ /dev/null @@ -1,19 +0,0 @@ - - - - - - - - - - - - - - - - - - - diff --git a/Modules/ImageStatistics/Testing/Data/Hotspot_Case10.xml b/Modules/ImageStatistics/Testing/Data/Hotspot_Case10.xml deleted file mode 100644 index cad93554d2..0000000000 --- a/Modules/ImageStatistics/Testing/Data/Hotspot_Case10.xml +++ /dev/null @@ -1,19 +0,0 @@ - - - - - - - - - - - - - - - - - - - diff --git a/Modules/ImageStatistics/Testing/Data/Hotspot_Case11.xml b/Modules/ImageStatistics/Testing/Data/Hotspot_Case11.xml deleted file mode 100644 index 36c0fdc14a..0000000000 --- a/Modules/ImageStatistics/Testing/Data/Hotspot_Case11.xml +++ /dev/null @@ -1,19 +0,0 @@ - - - - - - - - - - - - - - - - - - - diff --git a/Modules/ImageStatistics/Testing/Data/Hotspot_Case12.xml b/Modules/ImageStatistics/Testing/Data/Hotspot_Case12.xml deleted file mode 100644 index 96ee21f963..0000000000 --- a/Modules/ImageStatistics/Testing/Data/Hotspot_Case12.xml +++ /dev/null @@ -1,19 +0,0 @@ - - - - - - - - - - - - - - - - - - - diff --git a/Modules/ImageStatistics/Testing/Data/Hotspot_Case13.xml b/Modules/ImageStatistics/Testing/Data/Hotspot_Case13.xml deleted file mode 100644 index c170b9e7a2..0000000000 --- a/Modules/ImageStatistics/Testing/Data/Hotspot_Case13.xml +++ /dev/null @@ -1,19 +0,0 @@ - - - - - - - - - - - - - - - - - - - diff --git a/Modules/ImageStatistics/Testing/Data/Hotspot_Case14.xml b/Modules/ImageStatistics/Testing/Data/Hotspot_Case14.xml deleted file mode 100644 index f1323b4a24..0000000000 --- a/Modules/ImageStatistics/Testing/Data/Hotspot_Case14.xml +++ /dev/null @@ -1,19 +0,0 @@ - - - - - - - - - - - - - - - - - - - diff --git a/Modules/ImageStatistics/Testing/Data/Hotspot_Case15.xml b/Modules/ImageStatistics/Testing/Data/Hotspot_Case15.xml deleted file mode 100644 index 03375e359a..0000000000 --- a/Modules/ImageStatistics/Testing/Data/Hotspot_Case15.xml +++ /dev/null @@ -1,19 +0,0 @@ - - - - - - - - - - - - - - - - - - - diff --git a/Modules/ImageStatistics/Testing/Data/Hotspot_Case16.xml b/Modules/ImageStatistics/Testing/Data/Hotspot_Case16.xml deleted file mode 100644 index 86d47ce303..0000000000 --- a/Modules/ImageStatistics/Testing/Data/Hotspot_Case16.xml +++ /dev/null @@ -1,19 +0,0 @@ - - - - - - - - - - - - - - - - - - - diff --git a/Modules/ImageStatistics/Testing/Data/Hotspot_Case17.xml b/Modules/ImageStatistics/Testing/Data/Hotspot_Case17.xml deleted file mode 100644 index c4c82b8a5a..0000000000 --- a/Modules/ImageStatistics/Testing/Data/Hotspot_Case17.xml +++ /dev/null @@ -1,19 +0,0 @@ - - - - - - - - - - - - - - - - - - - diff --git a/Modules/ImageStatistics/Testing/Data/Hotspot_Case18.xml b/Modules/ImageStatistics/Testing/Data/Hotspot_Case18.xml deleted file mode 100644 index 5beb23c2a0..0000000000 --- a/Modules/ImageStatistics/Testing/Data/Hotspot_Case18.xml +++ /dev/null @@ -1,19 +0,0 @@ - - - - - - - - - - - - - - - - - - - diff --git a/Modules/ImageStatistics/Testing/Data/Hotspot_Case19.xml b/Modules/ImageStatistics/Testing/Data/Hotspot_Case19.xml deleted file mode 100644 index 058cfd8731..0000000000 --- a/Modules/ImageStatistics/Testing/Data/Hotspot_Case19.xml +++ /dev/null @@ -1,19 +0,0 @@ - - - - - - - - - - - - - - - - - - - diff --git a/Modules/ImageStatistics/Testing/Data/Hotspot_Case1_1_1.xml b/Modules/ImageStatistics/Testing/Data/Hotspot_Case1_1_1.xml deleted file mode 100644 index 152869e4e5..0000000000 --- a/Modules/ImageStatistics/Testing/Data/Hotspot_Case1_1_1.xml +++ /dev/null @@ -1,11 +0,0 @@ - - - - - - - - - - - diff --git a/Modules/ImageStatistics/Testing/Data/Hotspot_Case1_1_10.xml b/Modules/ImageStatistics/Testing/Data/Hotspot_Case1_1_10.xml deleted file mode 100644 index 3efe03f13a..0000000000 --- a/Modules/ImageStatistics/Testing/Data/Hotspot_Case1_1_10.xml +++ /dev/null @@ -1,11 +0,0 @@ - - - - - - - - - - - diff --git a/Modules/ImageStatistics/Testing/Data/Hotspot_Case1_1_11.xml b/Modules/ImageStatistics/Testing/Data/Hotspot_Case1_1_11.xml deleted file mode 100644 index 516ececb84..0000000000 --- a/Modules/ImageStatistics/Testing/Data/Hotspot_Case1_1_11.xml +++ /dev/null @@ -1,11 +0,0 @@ - - - - - - - - - - - diff --git a/Modules/ImageStatistics/Testing/Data/Hotspot_Case1_1_12.xml b/Modules/ImageStatistics/Testing/Data/Hotspot_Case1_1_12.xml deleted file mode 100644 index 39fd0d0b84..0000000000 --- a/Modules/ImageStatistics/Testing/Data/Hotspot_Case1_1_12.xml +++ /dev/null @@ -1,11 +0,0 @@ - - - - - - - - - - - diff --git a/Modules/ImageStatistics/Testing/Data/Hotspot_Case1_1_13.xml b/Modules/ImageStatistics/Testing/Data/Hotspot_Case1_1_13.xml deleted file mode 100644 index 0056189705..0000000000 --- a/Modules/ImageStatistics/Testing/Data/Hotspot_Case1_1_13.xml +++ /dev/null @@ -1,11 +0,0 @@ - - - - - - - - - - - diff --git a/Modules/ImageStatistics/Testing/Data/Hotspot_Case1_1_14.xml b/Modules/ImageStatistics/Testing/Data/Hotspot_Case1_1_14.xml deleted file mode 100644 index 3bbe940c06..0000000000 --- a/Modules/ImageStatistics/Testing/Data/Hotspot_Case1_1_14.xml +++ /dev/null @@ -1,11 +0,0 @@ - - - - - - - - - - - diff --git a/Modules/ImageStatistics/Testing/Data/Hotspot_Case1_1_15.xml b/Modules/ImageStatistics/Testing/Data/Hotspot_Case1_1_15.xml deleted file mode 100644 index 4628da8710..0000000000 --- a/Modules/ImageStatistics/Testing/Data/Hotspot_Case1_1_15.xml +++ /dev/null @@ -1,11 +0,0 @@ - - - - - - - - - - - diff --git a/Modules/ImageStatistics/Testing/Data/Hotspot_Case1_1_2.xml b/Modules/ImageStatistics/Testing/Data/Hotspot_Case1_1_2.xml deleted file mode 100644 index 02e392d9f5..0000000000 --- a/Modules/ImageStatistics/Testing/Data/Hotspot_Case1_1_2.xml +++ /dev/null @@ -1,11 +0,0 @@ - - - - - - - - - - - diff --git a/Modules/ImageStatistics/Testing/Data/Hotspot_Case1_1_3.xml b/Modules/ImageStatistics/Testing/Data/Hotspot_Case1_1_3.xml deleted file mode 100644 index ab5ff2212e..0000000000 --- a/Modules/ImageStatistics/Testing/Data/Hotspot_Case1_1_3.xml +++ /dev/null @@ -1,11 +0,0 @@ - - - - - - - - - - - diff --git a/Modules/ImageStatistics/Testing/Data/Hotspot_Case1_1_4.xml b/Modules/ImageStatistics/Testing/Data/Hotspot_Case1_1_4.xml deleted file mode 100644 index 7893809071..0000000000 --- a/Modules/ImageStatistics/Testing/Data/Hotspot_Case1_1_4.xml +++ /dev/null @@ -1,11 +0,0 @@ - - - - - - - - - - - diff --git a/Modules/ImageStatistics/Testing/Data/Hotspot_Case1_1_5.xml b/Modules/ImageStatistics/Testing/Data/Hotspot_Case1_1_5.xml deleted file mode 100644 index 152869e4e5..0000000000 --- a/Modules/ImageStatistics/Testing/Data/Hotspot_Case1_1_5.xml +++ /dev/null @@ -1,11 +0,0 @@ - - - - - - - - - - - diff --git a/Modules/ImageStatistics/Testing/Data/Hotspot_Case1_1_6.xml b/Modules/ImageStatistics/Testing/Data/Hotspot_Case1_1_6.xml deleted file mode 100644 index 52751b409d..0000000000 --- a/Modules/ImageStatistics/Testing/Data/Hotspot_Case1_1_6.xml +++ /dev/null @@ -1,11 +0,0 @@ - - - - - - - - - - - diff --git a/Modules/ImageStatistics/Testing/Data/Hotspot_Case1_1_7.xml b/Modules/ImageStatistics/Testing/Data/Hotspot_Case1_1_7.xml deleted file mode 100644 index a944fdb6d4..0000000000 --- a/Modules/ImageStatistics/Testing/Data/Hotspot_Case1_1_7.xml +++ /dev/null @@ -1,11 +0,0 @@ - - - - - - - - - - - diff --git a/Modules/ImageStatistics/Testing/Data/Hotspot_Case1_1_8.xml b/Modules/ImageStatistics/Testing/Data/Hotspot_Case1_1_8.xml deleted file mode 100644 index d42e579099..0000000000 --- a/Modules/ImageStatistics/Testing/Data/Hotspot_Case1_1_8.xml +++ /dev/null @@ -1,11 +0,0 @@ - - - - - - - - - - - diff --git a/Modules/ImageStatistics/Testing/Data/Hotspot_Case1_1_9.xml b/Modules/ImageStatistics/Testing/Data/Hotspot_Case1_1_9.xml deleted file mode 100644 index 34a8649cdf..0000000000 --- a/Modules/ImageStatistics/Testing/Data/Hotspot_Case1_1_9.xml +++ /dev/null @@ -1,11 +0,0 @@ - - - - - - - - - - - diff --git a/Modules/ImageStatistics/Testing/Data/Hotspot_Case1_3_1.xml b/Modules/ImageStatistics/Testing/Data/Hotspot_Case1_3_1.xml deleted file mode 100644 index 3eecd7ce1c..0000000000 --- a/Modules/ImageStatistics/Testing/Data/Hotspot_Case1_3_1.xml +++ /dev/null @@ -1,11 +0,0 @@ - - - - - - - - - - - diff --git a/Modules/ImageStatistics/Testing/Data/Hotspot_Case1_3_2.xml b/Modules/ImageStatistics/Testing/Data/Hotspot_Case1_3_2.xml deleted file mode 100644 index 592d38191f..0000000000 --- a/Modules/ImageStatistics/Testing/Data/Hotspot_Case1_3_2.xml +++ /dev/null @@ -1,11 +0,0 @@ - - - - - - - - - - - diff --git a/Modules/ImageStatistics/Testing/Data/Hotspot_Case1_3_3.xml b/Modules/ImageStatistics/Testing/Data/Hotspot_Case1_3_3.xml deleted file mode 100644 index b09deb1a24..0000000000 --- a/Modules/ImageStatistics/Testing/Data/Hotspot_Case1_3_3.xml +++ /dev/null @@ -1,11 +0,0 @@ - - - - - - - - - - - diff --git a/Modules/ImageStatistics/Testing/Data/Hotspot_Case1_3_4.xml b/Modules/ImageStatistics/Testing/Data/Hotspot_Case1_3_4.xml deleted file mode 100644 index c5caaf86ca..0000000000 --- a/Modules/ImageStatistics/Testing/Data/Hotspot_Case1_3_4.xml +++ /dev/null @@ -1,11 +0,0 @@ - - - - - - - - - - - diff --git a/Modules/ImageStatistics/Testing/Data/Hotspot_Case1_3_5.xml b/Modules/ImageStatistics/Testing/Data/Hotspot_Case1_3_5.xml deleted file mode 100644 index 623e42cf3c..0000000000 --- a/Modules/ImageStatistics/Testing/Data/Hotspot_Case1_3_5.xml +++ /dev/null @@ -1,11 +0,0 @@ - - - - - - - - - - - diff --git a/Modules/ImageStatistics/Testing/Data/Hotspot_Case1_4_1.xml b/Modules/ImageStatistics/Testing/Data/Hotspot_Case1_4_1.xml deleted file mode 100644 index fecde353ff..0000000000 --- a/Modules/ImageStatistics/Testing/Data/Hotspot_Case1_4_1.xml +++ /dev/null @@ -1,11 +0,0 @@ - - - - - - - - - - - diff --git a/Modules/ImageStatistics/Testing/Data/Hotspot_Case1_4_2.xml b/Modules/ImageStatistics/Testing/Data/Hotspot_Case1_4_2.xml deleted file mode 100644 index a70e802191..0000000000 --- a/Modules/ImageStatistics/Testing/Data/Hotspot_Case1_4_2.xml +++ /dev/null @@ -1,11 +0,0 @@ - - - - - - - - - - - diff --git a/Modules/ImageStatistics/Testing/Data/Hotspot_Case1_4_3.xml b/Modules/ImageStatistics/Testing/Data/Hotspot_Case1_4_3.xml deleted file mode 100644 index 3e84578d41..0000000000 --- a/Modules/ImageStatistics/Testing/Data/Hotspot_Case1_4_3.xml +++ /dev/null @@ -1,11 +0,0 @@ - - - - - - - - - - - diff --git a/Modules/ImageStatistics/Testing/Data/Hotspot_Case1_4_4.xml b/Modules/ImageStatistics/Testing/Data/Hotspot_Case1_4_4.xml deleted file mode 100644 index 404a45b8fa..0000000000 --- a/Modules/ImageStatistics/Testing/Data/Hotspot_Case1_4_4.xml +++ /dev/null @@ -1,11 +0,0 @@ - - - - - - - - - - - diff --git a/Modules/ImageStatistics/Testing/Data/Hotspot_Case1_4_5.xml b/Modules/ImageStatistics/Testing/Data/Hotspot_Case1_4_5.xml deleted file mode 100644 index 67383e89ce..0000000000 --- a/Modules/ImageStatistics/Testing/Data/Hotspot_Case1_4_5.xml +++ /dev/null @@ -1,11 +0,0 @@ - - - - - - - - - - - diff --git a/Modules/ImageStatistics/Testing/Data/Hotspot_Case1_5_1.xml b/Modules/ImageStatistics/Testing/Data/Hotspot_Case1_5_1.xml deleted file mode 100644 index 7b6323ecfe..0000000000 --- a/Modules/ImageStatistics/Testing/Data/Hotspot_Case1_5_1.xml +++ /dev/null @@ -1,11 +0,0 @@ - - - - - - - - - - - diff --git a/Modules/ImageStatistics/Testing/Data/Hotspot_Case1_5_2.xml b/Modules/ImageStatistics/Testing/Data/Hotspot_Case1_5_2.xml deleted file mode 100644 index f0dbd1e393..0000000000 --- a/Modules/ImageStatistics/Testing/Data/Hotspot_Case1_5_2.xml +++ /dev/null @@ -1,11 +0,0 @@ - - - - - - - - - - - diff --git a/Modules/ImageStatistics/Testing/Data/Hotspot_Case1_5_3.xml b/Modules/ImageStatistics/Testing/Data/Hotspot_Case1_5_3.xml deleted file mode 100644 index 3a53889990..0000000000 --- a/Modules/ImageStatistics/Testing/Data/Hotspot_Case1_5_3.xml +++ /dev/null @@ -1,11 +0,0 @@ - - - - - - - - - - - diff --git a/Modules/ImageStatistics/Testing/Data/Hotspot_Case1_5_4.xml b/Modules/ImageStatistics/Testing/Data/Hotspot_Case1_5_4.xml deleted file mode 100644 index 14b666a1a8..0000000000 --- a/Modules/ImageStatistics/Testing/Data/Hotspot_Case1_5_4.xml +++ /dev/null @@ -1,11 +0,0 @@ - - - - - - - - - - - diff --git a/Modules/ImageStatistics/Testing/Data/Hotspot_Case1_5_5.xml b/Modules/ImageStatistics/Testing/Data/Hotspot_Case1_5_5.xml deleted file mode 100644 index 67383e89ce..0000000000 --- a/Modules/ImageStatistics/Testing/Data/Hotspot_Case1_5_5.xml +++ /dev/null @@ -1,11 +0,0 @@ - - - - - - - - - - - diff --git a/Modules/ImageStatistics/Testing/Data/Hotspot_Case2.xml b/Modules/ImageStatistics/Testing/Data/Hotspot_Case2.xml deleted file mode 100644 index 823baa7bb8..0000000000 --- a/Modules/ImageStatistics/Testing/Data/Hotspot_Case2.xml +++ /dev/null @@ -1,19 +0,0 @@ - - - - - - - - - - - - - - - - - - - diff --git a/Modules/ImageStatistics/Testing/Data/Hotspot_Case20.xml b/Modules/ImageStatistics/Testing/Data/Hotspot_Case20.xml deleted file mode 100644 index 81308b6585..0000000000 --- a/Modules/ImageStatistics/Testing/Data/Hotspot_Case20.xml +++ /dev/null @@ -1,19 +0,0 @@ - - - - - - - - - - - - - - - - - - - diff --git a/Modules/ImageStatistics/Testing/Data/Hotspot_Case21.xml b/Modules/ImageStatistics/Testing/Data/Hotspot_Case21.xml deleted file mode 100644 index ef484fb0dd..0000000000 --- a/Modules/ImageStatistics/Testing/Data/Hotspot_Case21.xml +++ /dev/null @@ -1,19 +0,0 @@ - - - - - - - - - - - - - - - - - - - diff --git a/Modules/ImageStatistics/Testing/Data/Hotspot_Case2_3_1.xml b/Modules/ImageStatistics/Testing/Data/Hotspot_Case2_3_1.xml deleted file mode 100644 index 97a6696b29..0000000000 --- a/Modules/ImageStatistics/Testing/Data/Hotspot_Case2_3_1.xml +++ /dev/null @@ -1,14 +0,0 @@ - - - - - - - - - - - - - - diff --git a/Modules/ImageStatistics/Testing/Data/Hotspot_Case2_3_2.xml b/Modules/ImageStatistics/Testing/Data/Hotspot_Case2_3_2.xml deleted file mode 100644 index 9872ba8614..0000000000 --- a/Modules/ImageStatistics/Testing/Data/Hotspot_Case2_3_2.xml +++ /dev/null @@ -1,14 +0,0 @@ - - - - - - - - - - - - - - diff --git a/Modules/ImageStatistics/Testing/Data/Hotspot_Case2_3_3.xml b/Modules/ImageStatistics/Testing/Data/Hotspot_Case2_3_3.xml deleted file mode 100644 index 05950acc98..0000000000 --- a/Modules/ImageStatistics/Testing/Data/Hotspot_Case2_3_3.xml +++ /dev/null @@ -1,14 +0,0 @@ - - - - - - - - - - - - - - diff --git a/Modules/ImageStatistics/Testing/Data/Hotspot_Case2_3_4.xml b/Modules/ImageStatistics/Testing/Data/Hotspot_Case2_3_4.xml deleted file mode 100644 index 8ae65cc742..0000000000 --- a/Modules/ImageStatistics/Testing/Data/Hotspot_Case2_3_4.xml +++ /dev/null @@ -1,14 +0,0 @@ - - - - - - - - - - - - - - diff --git a/Modules/ImageStatistics/Testing/Data/Hotspot_Case2_3_5.xml b/Modules/ImageStatistics/Testing/Data/Hotspot_Case2_3_5.xml deleted file mode 100644 index 5619a9ae94..0000000000 --- a/Modules/ImageStatistics/Testing/Data/Hotspot_Case2_3_5.xml +++ /dev/null @@ -1,14 +0,0 @@ - - - - - - - - - - - - - - diff --git a/Modules/ImageStatistics/Testing/Data/Hotspot_Case2_4_1.xml b/Modules/ImageStatistics/Testing/Data/Hotspot_Case2_4_1.xml deleted file mode 100644 index b241277b24..0000000000 --- a/Modules/ImageStatistics/Testing/Data/Hotspot_Case2_4_1.xml +++ /dev/null @@ -1,14 +0,0 @@ - - - - - - - - - - - - - - diff --git a/Modules/ImageStatistics/Testing/Data/Hotspot_Case2_4_2.xml b/Modules/ImageStatistics/Testing/Data/Hotspot_Case2_4_2.xml deleted file mode 100644 index 36777afde5..0000000000 --- a/Modules/ImageStatistics/Testing/Data/Hotspot_Case2_4_2.xml +++ /dev/null @@ -1,14 +0,0 @@ - - - - - - - - - - - - - - diff --git a/Modules/ImageStatistics/Testing/Data/Hotspot_Case2_4_3.xml b/Modules/ImageStatistics/Testing/Data/Hotspot_Case2_4_3.xml deleted file mode 100644 index 4ab983c3b2..0000000000 --- a/Modules/ImageStatistics/Testing/Data/Hotspot_Case2_4_3.xml +++ /dev/null @@ -1,14 +0,0 @@ - - - - - - - - - - - - - - diff --git a/Modules/ImageStatistics/Testing/Data/Hotspot_Case2_4_4.xml b/Modules/ImageStatistics/Testing/Data/Hotspot_Case2_4_4.xml deleted file mode 100644 index 507c28ae3b..0000000000 --- a/Modules/ImageStatistics/Testing/Data/Hotspot_Case2_4_4.xml +++ /dev/null @@ -1,14 +0,0 @@ - - - - - - - - - - - - - - diff --git a/Modules/ImageStatistics/Testing/Data/Hotspot_Case2_4_5.xml b/Modules/ImageStatistics/Testing/Data/Hotspot_Case2_4_5.xml deleted file mode 100644 index 2696e65737..0000000000 --- a/Modules/ImageStatistics/Testing/Data/Hotspot_Case2_4_5.xml +++ /dev/null @@ -1,14 +0,0 @@ - - - - - - - - - - - - - - diff --git a/Modules/ImageStatistics/Testing/Data/Hotspot_Case2_5_1.xml b/Modules/ImageStatistics/Testing/Data/Hotspot_Case2_5_1.xml deleted file mode 100644 index 664f9dfd36..0000000000 --- a/Modules/ImageStatistics/Testing/Data/Hotspot_Case2_5_1.xml +++ /dev/null @@ -1,14 +0,0 @@ - - - - - - - - - - - - - - diff --git a/Modules/ImageStatistics/Testing/Data/Hotspot_Case2_5_2.xml b/Modules/ImageStatistics/Testing/Data/Hotspot_Case2_5_2.xml deleted file mode 100644 index 5012adf61b..0000000000 --- a/Modules/ImageStatistics/Testing/Data/Hotspot_Case2_5_2.xml +++ /dev/null @@ -1,14 +0,0 @@ - - - - - - - - - - - - - - diff --git a/Modules/ImageStatistics/Testing/Data/Hotspot_Case2_5_3.xml b/Modules/ImageStatistics/Testing/Data/Hotspot_Case2_5_3.xml deleted file mode 100644 index 5916e723bf..0000000000 --- a/Modules/ImageStatistics/Testing/Data/Hotspot_Case2_5_3.xml +++ /dev/null @@ -1,14 +0,0 @@ - - - - - - - - - - - - - - diff --git a/Modules/ImageStatistics/Testing/Data/Hotspot_Case2_5_4.xml b/Modules/ImageStatistics/Testing/Data/Hotspot_Case2_5_4.xml deleted file mode 100644 index cb6c56a167..0000000000 --- a/Modules/ImageStatistics/Testing/Data/Hotspot_Case2_5_4.xml +++ /dev/null @@ -1,14 +0,0 @@ - - - - - - - - - - - - - - diff --git a/Modules/ImageStatistics/Testing/Data/Hotspot_Case2_5_5.xml b/Modules/ImageStatistics/Testing/Data/Hotspot_Case2_5_5.xml deleted file mode 100644 index 2696e65737..0000000000 --- a/Modules/ImageStatistics/Testing/Data/Hotspot_Case2_5_5.xml +++ /dev/null @@ -1,14 +0,0 @@ - - - - - - - - - - - - - - diff --git a/Modules/ImageStatistics/Testing/Data/Hotspot_Case3.xml b/Modules/ImageStatistics/Testing/Data/Hotspot_Case3.xml deleted file mode 100644 index 033da8710a..0000000000 --- a/Modules/ImageStatistics/Testing/Data/Hotspot_Case3.xml +++ /dev/null @@ -1,19 +0,0 @@ - - - - - - - - - - - - - - - - - - - diff --git a/Modules/ImageStatistics/Testing/Data/Hotspot_Case3_3_1.xml b/Modules/ImageStatistics/Testing/Data/Hotspot_Case3_3_1.xml deleted file mode 100644 index 40f9b6a381..0000000000 --- a/Modules/ImageStatistics/Testing/Data/Hotspot_Case3_3_1.xml +++ /dev/null @@ -1,10 +0,0 @@ - - - - - - - - - - diff --git a/Modules/ImageStatistics/Testing/Data/Hotspot_Case3_3_2.xml b/Modules/ImageStatistics/Testing/Data/Hotspot_Case3_3_2.xml deleted file mode 100644 index 526afe9845..0000000000 --- a/Modules/ImageStatistics/Testing/Data/Hotspot_Case3_3_2.xml +++ /dev/null @@ -1,10 +0,0 @@ - - - - - - - - - - diff --git a/Modules/ImageStatistics/Testing/Data/Hotspot_Case3_3_3.xml b/Modules/ImageStatistics/Testing/Data/Hotspot_Case3_3_3.xml deleted file mode 100644 index 4bee071826..0000000000 --- a/Modules/ImageStatistics/Testing/Data/Hotspot_Case3_3_3.xml +++ /dev/null @@ -1,10 +0,0 @@ - - - - - - - - - - diff --git a/Modules/ImageStatistics/Testing/Data/Hotspot_Case3_3_4.xml b/Modules/ImageStatistics/Testing/Data/Hotspot_Case3_3_4.xml deleted file mode 100644 index a8293b6aca..0000000000 --- a/Modules/ImageStatistics/Testing/Data/Hotspot_Case3_3_4.xml +++ /dev/null @@ -1,10 +0,0 @@ - - - - - - - - - - diff --git a/Modules/ImageStatistics/Testing/Data/Hotspot_Case3_3_5.xml b/Modules/ImageStatistics/Testing/Data/Hotspot_Case3_3_5.xml deleted file mode 100644 index 5d2e82f85a..0000000000 --- a/Modules/ImageStatistics/Testing/Data/Hotspot_Case3_3_5.xml +++ /dev/null @@ -1,10 +0,0 @@ - - - - - - - - - - diff --git a/Modules/ImageStatistics/Testing/Data/Hotspot_Case3_4_1.xml b/Modules/ImageStatistics/Testing/Data/Hotspot_Case3_4_1.xml deleted file mode 100644 index 59502b9cb9..0000000000 --- a/Modules/ImageStatistics/Testing/Data/Hotspot_Case3_4_1.xml +++ /dev/null @@ -1,10 +0,0 @@ - - - - - - - - - - diff --git a/Modules/ImageStatistics/Testing/Data/Hotspot_Case3_4_2.xml b/Modules/ImageStatistics/Testing/Data/Hotspot_Case3_4_2.xml deleted file mode 100644 index f45ca2a686..0000000000 --- a/Modules/ImageStatistics/Testing/Data/Hotspot_Case3_4_2.xml +++ /dev/null @@ -1,10 +0,0 @@ - - - - - - - - - - diff --git a/Modules/ImageStatistics/Testing/Data/Hotspot_Case3_4_3.xml b/Modules/ImageStatistics/Testing/Data/Hotspot_Case3_4_3.xml deleted file mode 100644 index fafb7d0425..0000000000 --- a/Modules/ImageStatistics/Testing/Data/Hotspot_Case3_4_3.xml +++ /dev/null @@ -1,10 +0,0 @@ - - - - - - - - - - diff --git a/Modules/ImageStatistics/Testing/Data/Hotspot_Case3_4_4.xml b/Modules/ImageStatistics/Testing/Data/Hotspot_Case3_4_4.xml deleted file mode 100644 index ff26f3ac2f..0000000000 --- a/Modules/ImageStatistics/Testing/Data/Hotspot_Case3_4_4.xml +++ /dev/null @@ -1,10 +0,0 @@ - - - - - - - - - - diff --git a/Modules/ImageStatistics/Testing/Data/Hotspot_Case3_4_5.xml b/Modules/ImageStatistics/Testing/Data/Hotspot_Case3_4_5.xml deleted file mode 100644 index b8b9bd435d..0000000000 --- a/Modules/ImageStatistics/Testing/Data/Hotspot_Case3_4_5.xml +++ /dev/null @@ -1,10 +0,0 @@ - - - - - - - - - - diff --git a/Modules/ImageStatistics/Testing/Data/Hotspot_Case3_5_1.xml b/Modules/ImageStatistics/Testing/Data/Hotspot_Case3_5_1.xml deleted file mode 100644 index 4470746440..0000000000 --- a/Modules/ImageStatistics/Testing/Data/Hotspot_Case3_5_1.xml +++ /dev/null @@ -1,10 +0,0 @@ - - - - - - - - - - diff --git a/Modules/ImageStatistics/Testing/Data/Hotspot_Case3_5_2.xml b/Modules/ImageStatistics/Testing/Data/Hotspot_Case3_5_2.xml deleted file mode 100644 index 0451910324..0000000000 --- a/Modules/ImageStatistics/Testing/Data/Hotspot_Case3_5_2.xml +++ /dev/null @@ -1,10 +0,0 @@ - - - - - - - - - - diff --git a/Modules/ImageStatistics/Testing/Data/Hotspot_Case3_5_3.xml b/Modules/ImageStatistics/Testing/Data/Hotspot_Case3_5_3.xml deleted file mode 100644 index 62319363ee..0000000000 --- a/Modules/ImageStatistics/Testing/Data/Hotspot_Case3_5_3.xml +++ /dev/null @@ -1,10 +0,0 @@ - - - - - - - - - - diff --git a/Modules/ImageStatistics/Testing/Data/Hotspot_Case3_5_4.xml b/Modules/ImageStatistics/Testing/Data/Hotspot_Case3_5_4.xml deleted file mode 100644 index 35f6be1237..0000000000 --- a/Modules/ImageStatistics/Testing/Data/Hotspot_Case3_5_4.xml +++ /dev/null @@ -1,10 +0,0 @@ - - - - - - - - - - diff --git a/Modules/ImageStatistics/Testing/Data/Hotspot_Case3_5_5.xml b/Modules/ImageStatistics/Testing/Data/Hotspot_Case3_5_5.xml deleted file mode 100644 index b8b9bd435d..0000000000 --- a/Modules/ImageStatistics/Testing/Data/Hotspot_Case3_5_5.xml +++ /dev/null @@ -1,10 +0,0 @@ - - - - - - - - - - diff --git a/Modules/ImageStatistics/Testing/Data/Hotspot_Case4.xml b/Modules/ImageStatistics/Testing/Data/Hotspot_Case4.xml deleted file mode 100644 index 96180b2922..0000000000 --- a/Modules/ImageStatistics/Testing/Data/Hotspot_Case4.xml +++ /dev/null @@ -1,19 +0,0 @@ - - - - - - - - - - - - - - - - - - - diff --git a/Modules/ImageStatistics/Testing/Data/Hotspot_Case5.xml b/Modules/ImageStatistics/Testing/Data/Hotspot_Case5.xml deleted file mode 100644 index b88b176040..0000000000 --- a/Modules/ImageStatistics/Testing/Data/Hotspot_Case5.xml +++ /dev/null @@ -1,19 +0,0 @@ - - - - - - - - - - - - - - - - - - - diff --git a/Modules/ImageStatistics/Testing/Data/Hotspot_Case5_3_1.xml b/Modules/ImageStatistics/Testing/Data/Hotspot_Case5_3_1.xml deleted file mode 100644 index 493acb7230..0000000000 --- a/Modules/ImageStatistics/Testing/Data/Hotspot_Case5_3_1.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - - - - - - - diff --git a/Modules/ImageStatistics/Testing/Data/Hotspot_Case5_3_2.xml b/Modules/ImageStatistics/Testing/Data/Hotspot_Case5_3_2.xml deleted file mode 100644 index 02bf7808a5..0000000000 --- a/Modules/ImageStatistics/Testing/Data/Hotspot_Case5_3_2.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - - - - - - - diff --git a/Modules/ImageStatistics/Testing/Data/Hotspot_Case5_3_3.xml b/Modules/ImageStatistics/Testing/Data/Hotspot_Case5_3_3.xml deleted file mode 100644 index 7f8405f4f3..0000000000 --- a/Modules/ImageStatistics/Testing/Data/Hotspot_Case5_3_3.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - - - - - - - diff --git a/Modules/ImageStatistics/Testing/Data/Hotspot_Case5_3_4.xml b/Modules/ImageStatistics/Testing/Data/Hotspot_Case5_3_4.xml deleted file mode 100644 index bce962ac47..0000000000 --- a/Modules/ImageStatistics/Testing/Data/Hotspot_Case5_3_4.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - - - - - - - diff --git a/Modules/ImageStatistics/Testing/Data/Hotspot_Case5_3_5.xml b/Modules/ImageStatistics/Testing/Data/Hotspot_Case5_3_5.xml deleted file mode 100644 index f9278f2350..0000000000 --- a/Modules/ImageStatistics/Testing/Data/Hotspot_Case5_3_5.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - - - - - - - diff --git a/Modules/ImageStatistics/Testing/Data/Hotspot_Case5_4_1.xml b/Modules/ImageStatistics/Testing/Data/Hotspot_Case5_4_1.xml deleted file mode 100644 index 6e255d6d51..0000000000 --- a/Modules/ImageStatistics/Testing/Data/Hotspot_Case5_4_1.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - - - - - - - diff --git a/Modules/ImageStatistics/Testing/Data/Hotspot_Case5_4_2.xml b/Modules/ImageStatistics/Testing/Data/Hotspot_Case5_4_2.xml deleted file mode 100644 index aabcea73e0..0000000000 --- a/Modules/ImageStatistics/Testing/Data/Hotspot_Case5_4_2.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - - - - - - - diff --git a/Modules/ImageStatistics/Testing/Data/Hotspot_Case5_4_3.xml b/Modules/ImageStatistics/Testing/Data/Hotspot_Case5_4_3.xml deleted file mode 100644 index c47c6dc5c0..0000000000 --- a/Modules/ImageStatistics/Testing/Data/Hotspot_Case5_4_3.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - - - - - - - diff --git a/Modules/ImageStatistics/Testing/Data/Hotspot_Case5_4_4.xml b/Modules/ImageStatistics/Testing/Data/Hotspot_Case5_4_4.xml deleted file mode 100644 index b5136056f9..0000000000 --- a/Modules/ImageStatistics/Testing/Data/Hotspot_Case5_4_4.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - - - - - - - diff --git a/Modules/ImageStatistics/Testing/Data/Hotspot_Case5_4_5.xml b/Modules/ImageStatistics/Testing/Data/Hotspot_Case5_4_5.xml deleted file mode 100644 index 4fbdacdb0d..0000000000 --- a/Modules/ImageStatistics/Testing/Data/Hotspot_Case5_4_5.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - - - - - - - diff --git a/Modules/ImageStatistics/Testing/Data/Hotspot_Case5_5_1.xml b/Modules/ImageStatistics/Testing/Data/Hotspot_Case5_5_1.xml deleted file mode 100644 index 9360401e1b..0000000000 --- a/Modules/ImageStatistics/Testing/Data/Hotspot_Case5_5_1.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - - - - - - - diff --git a/Modules/ImageStatistics/Testing/Data/Hotspot_Case5_5_2.xml b/Modules/ImageStatistics/Testing/Data/Hotspot_Case5_5_2.xml deleted file mode 100644 index 6c2a1f3086..0000000000 --- a/Modules/ImageStatistics/Testing/Data/Hotspot_Case5_5_2.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - - - - - - - diff --git a/Modules/ImageStatistics/Testing/Data/Hotspot_Case5_5_3.xml b/Modules/ImageStatistics/Testing/Data/Hotspot_Case5_5_3.xml deleted file mode 100644 index 132553ff6d..0000000000 --- a/Modules/ImageStatistics/Testing/Data/Hotspot_Case5_5_3.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - - - - - - - diff --git a/Modules/ImageStatistics/Testing/Data/Hotspot_Case5_5_4.xml b/Modules/ImageStatistics/Testing/Data/Hotspot_Case5_5_4.xml deleted file mode 100644 index e0bf859a42..0000000000 --- a/Modules/ImageStatistics/Testing/Data/Hotspot_Case5_5_4.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - - - - - - - diff --git a/Modules/ImageStatistics/Testing/Data/Hotspot_Case5_5_5.xml b/Modules/ImageStatistics/Testing/Data/Hotspot_Case5_5_5.xml deleted file mode 100644 index 4fbdacdb0d..0000000000 --- a/Modules/ImageStatistics/Testing/Data/Hotspot_Case5_5_5.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - - - - - - - diff --git a/Modules/ImageStatistics/Testing/Data/Hotspot_Case6.xml b/Modules/ImageStatistics/Testing/Data/Hotspot_Case6.xml deleted file mode 100644 index 1948c59ba4..0000000000 --- a/Modules/ImageStatistics/Testing/Data/Hotspot_Case6.xml +++ /dev/null @@ -1,19 +0,0 @@ - - - - - - - - - - - - - - - - - - - diff --git a/Modules/ImageStatistics/Testing/Data/Hotspot_Case6_3_1.xml b/Modules/ImageStatistics/Testing/Data/Hotspot_Case6_3_1.xml deleted file mode 100644 index 9632f2ddaa..0000000000 --- a/Modules/ImageStatistics/Testing/Data/Hotspot_Case6_3_1.xml +++ /dev/null @@ -1,16 +0,0 @@ - - - - - - - - - - - - - - - - diff --git a/Modules/ImageStatistics/Testing/Data/Hotspot_Case6_3_2.xml b/Modules/ImageStatistics/Testing/Data/Hotspot_Case6_3_2.xml deleted file mode 100644 index b862c5768f..0000000000 --- a/Modules/ImageStatistics/Testing/Data/Hotspot_Case6_3_2.xml +++ /dev/null @@ -1,16 +0,0 @@ - - - - - - - - - - - - - - - - diff --git a/Modules/ImageStatistics/Testing/Data/Hotspot_Case6_3_3.xml b/Modules/ImageStatistics/Testing/Data/Hotspot_Case6_3_3.xml deleted file mode 100644 index 581d894ab3..0000000000 --- a/Modules/ImageStatistics/Testing/Data/Hotspot_Case6_3_3.xml +++ /dev/null @@ -1,16 +0,0 @@ - - - - - - - - - - - - - - - - diff --git a/Modules/ImageStatistics/Testing/Data/Hotspot_Case6_3_4.xml b/Modules/ImageStatistics/Testing/Data/Hotspot_Case6_3_4.xml deleted file mode 100644 index 3c69d5c240..0000000000 --- a/Modules/ImageStatistics/Testing/Data/Hotspot_Case6_3_4.xml +++ /dev/null @@ -1,16 +0,0 @@ - - - - - - - - - - - - - - - - diff --git a/Modules/ImageStatistics/Testing/Data/Hotspot_Case6_3_5.xml b/Modules/ImageStatistics/Testing/Data/Hotspot_Case6_3_5.xml deleted file mode 100644 index 5ee5e6474f..0000000000 --- a/Modules/ImageStatistics/Testing/Data/Hotspot_Case6_3_5.xml +++ /dev/null @@ -1,16 +0,0 @@ - - - - - - - - - - - - - - - - diff --git a/Modules/ImageStatistics/Testing/Data/Hotspot_Case6_4_1.xml b/Modules/ImageStatistics/Testing/Data/Hotspot_Case6_4_1.xml deleted file mode 100644 index f2f24a2a10..0000000000 --- a/Modules/ImageStatistics/Testing/Data/Hotspot_Case6_4_1.xml +++ /dev/null @@ -1,16 +0,0 @@ - - - - - - - - - - - - - - - - diff --git a/Modules/ImageStatistics/Testing/Data/Hotspot_Case6_4_2.xml b/Modules/ImageStatistics/Testing/Data/Hotspot_Case6_4_2.xml deleted file mode 100644 index 8d1194f9d8..0000000000 --- a/Modules/ImageStatistics/Testing/Data/Hotspot_Case6_4_2.xml +++ /dev/null @@ -1,16 +0,0 @@ - - - - - - - - - - - - - - - - diff --git a/Modules/ImageStatistics/Testing/Data/Hotspot_Case6_4_3.xml b/Modules/ImageStatistics/Testing/Data/Hotspot_Case6_4_3.xml deleted file mode 100644 index 25decc15d0..0000000000 --- a/Modules/ImageStatistics/Testing/Data/Hotspot_Case6_4_3.xml +++ /dev/null @@ -1,16 +0,0 @@ - - - - - - - - - - - - - - - - diff --git a/Modules/ImageStatistics/Testing/Data/Hotspot_Case6_4_4.xml b/Modules/ImageStatistics/Testing/Data/Hotspot_Case6_4_4.xml deleted file mode 100644 index 50af49cd98..0000000000 --- a/Modules/ImageStatistics/Testing/Data/Hotspot_Case6_4_4.xml +++ /dev/null @@ -1,16 +0,0 @@ - - - - - - - - - - - - - - - - diff --git a/Modules/ImageStatistics/Testing/Data/Hotspot_Case6_4_5.xml b/Modules/ImageStatistics/Testing/Data/Hotspot_Case6_4_5.xml deleted file mode 100644 index 53ede7eca4..0000000000 --- a/Modules/ImageStatistics/Testing/Data/Hotspot_Case6_4_5.xml +++ /dev/null @@ -1,16 +0,0 @@ - - - - - - - - - - - - - - - - diff --git a/Modules/ImageStatistics/Testing/Data/Hotspot_Case6_5_1.xml b/Modules/ImageStatistics/Testing/Data/Hotspot_Case6_5_1.xml deleted file mode 100644 index 30d579f7ad..0000000000 --- a/Modules/ImageStatistics/Testing/Data/Hotspot_Case6_5_1.xml +++ /dev/null @@ -1,16 +0,0 @@ - - - - - - - - - - - - - - - - diff --git a/Modules/ImageStatistics/Testing/Data/Hotspot_Case6_5_2.xml b/Modules/ImageStatistics/Testing/Data/Hotspot_Case6_5_2.xml deleted file mode 100644 index e113304a1d..0000000000 --- a/Modules/ImageStatistics/Testing/Data/Hotspot_Case6_5_2.xml +++ /dev/null @@ -1,16 +0,0 @@ - - - - - - - - - - - - - - - - diff --git a/Modules/ImageStatistics/Testing/Data/Hotspot_Case6_5_3.xml b/Modules/ImageStatistics/Testing/Data/Hotspot_Case6_5_3.xml deleted file mode 100644 index b3ff60d3ae..0000000000 --- a/Modules/ImageStatistics/Testing/Data/Hotspot_Case6_5_3.xml +++ /dev/null @@ -1,16 +0,0 @@ - - - - - - - - - - - - - - - - diff --git a/Modules/ImageStatistics/Testing/Data/Hotspot_Case6_5_4.xml b/Modules/ImageStatistics/Testing/Data/Hotspot_Case6_5_4.xml deleted file mode 100644 index e2c3cb8c16..0000000000 --- a/Modules/ImageStatistics/Testing/Data/Hotspot_Case6_5_4.xml +++ /dev/null @@ -1,16 +0,0 @@ - - - - - - - - - - - - - - - - diff --git a/Modules/ImageStatistics/Testing/Data/Hotspot_Case6_5_5.xml b/Modules/ImageStatistics/Testing/Data/Hotspot_Case6_5_5.xml deleted file mode 100644 index 53ede7eca4..0000000000 --- a/Modules/ImageStatistics/Testing/Data/Hotspot_Case6_5_5.xml +++ /dev/null @@ -1,16 +0,0 @@ - - - - - - - - - - - - - - - - diff --git a/Modules/ImageStatistics/Testing/Data/Hotspot_Case7.xml b/Modules/ImageStatistics/Testing/Data/Hotspot_Case7.xml deleted file mode 100644 index 1addb3b5dc..0000000000 --- a/Modules/ImageStatistics/Testing/Data/Hotspot_Case7.xml +++ /dev/null @@ -1,19 +0,0 @@ - - - - - - - - - - - - - - - - - - - diff --git a/Modules/ImageStatistics/Testing/Data/Hotspot_Case8.xml b/Modules/ImageStatistics/Testing/Data/Hotspot_Case8.xml deleted file mode 100644 index 5a8f17e349..0000000000 --- a/Modules/ImageStatistics/Testing/Data/Hotspot_Case8.xml +++ /dev/null @@ -1,19 +0,0 @@ - - - - - - - - - - - - - - - - - - - diff --git a/Modules/ImageStatistics/Testing/Data/Hotspot_Case9.xml b/Modules/ImageStatistics/Testing/Data/Hotspot_Case9.xml deleted file mode 100644 index f786bffda3..0000000000 --- a/Modules/ImageStatistics/Testing/Data/Hotspot_Case9.xml +++ /dev/null @@ -1,19 +0,0 @@ - - - - - - - - - - - - - - - - - - - diff --git a/Modules/ImageStatistics/Testing/mitkImageStatisticsHotspotTest.cpp b/Modules/ImageStatistics/Testing/mitkImageStatisticsHotspotTest.cpp index 9c54b2bdcf..3de4231f72 100644 --- a/Modules/ImageStatistics/Testing/mitkImageStatisticsHotspotTest.cpp +++ b/Modules/ImageStatistics/Testing/mitkImageStatisticsHotspotTest.cpp @@ -1,618 +1,624 @@ /*=================================================================== The Medical Imaging Interaction Toolkit (MITK) Copyright (c) German Cancer Research Center, Division of Medical and Biological Informatics. All rights reserved. This software is distributed WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See LICENSE.txt or http://www.mitk.org for details. ===================================================================*/ #include "mitkImageStatisticsCalculator.h" #include "itkMultiGaussianImageSource.h" #include "mitkTestingMacros.h" #include #include #include #include /** \section hotspotCalculationTestCases Testcases To see the different Hotspot-Testcases have a look at the \ref hotspottestdoc. */ struct mitkImageStatisticsHotspotTestClass { /** \brief Test parameters for one test case. Describes all aspects of a single test case: - parameters to generate a test image - parameters of a ROI that describes where to calculate statistics - expected statistics results */ struct Parameters { public: // XML-Tag /** \brief XML-Tag "image-rows": size of x-dimension */ int m_ImageRows; /** \brief XML-Tag "image-columns": size of y-dimension */ int m_ImageColumns; /** \brief XML-Tag "image-slices": size of z-dimension */ int m_ImageSlices; /** \brief XML-Tag "numberOfGaussians": number of used gauss-functions */ int m_NumberOfGaussian; /** \brief XML-Tags "spacingX", "spacingY", "spacingZ": spacing of image in every direction */ float m_Spacing[3]; /** \brief XML-Tag "entireHotSpotInImage" */ unsigned int m_EntireHotspotInImage; // XML-Tag /** \brief XML-Tag "centerIndexX: gaussian parameter*/ std::vector m_CenterX; /** \brief XML-Tag "centerIndexY: gaussian parameter */ std::vector m_CenterY; /** \brief XML-Tag "centerIndexZ: gaussian parameter */ std::vector m_CenterZ; /** \brief XML-Tag "deviationX: gaussian parameter */ std::vector m_SigmaX; /** \brief XML-Tag "deviationY: gaussian parameter */ std::vector m_SigmaY; /** \brief XML-Tag "deviationZ: gaussian parameter */ std::vector m_SigmaZ; /** \brief XML-Tag "altitude: gaussian parameter */ std::vector m_Altitude; // XML-Tag /** \brief XML-Tag "numberOfLabels": number of different labels which appear in the mask */ unsigned int m_NumberOfLabels; /** \brief XML-Tag "hotspotRadiusInMM": radius of hotspot */ float m_HotspotRadiusInMM; // XML-Tag /** \brief XML-Tag "maximumSizeX": maximum position of ROI in x-dimension */ vnl_vector m_MaxSizeX; /** \brief XML-Tag "minimumSizeX": minimum position of ROI in x-dimension */ vnl_vector m_MinSizeX; /** \brief XML-Tag "maximumSizeX": maximum position of ROI in y-dimension */ vnl_vector m_MaxSizeY; /** \brief XML-Tag "minimumSizeX": minimum position of ROI in y-dimension */ vnl_vector m_MinSizeY; /** \brief XML-Tag "maximumSizeX": maximum position of ROI in z-dimension */ vnl_vector m_MaxSizeZ; /** \brief XML-Tag "minimumSizeX": minimum position of ROI in z-dimension */ vnl_vector m_MinSizeZ; /** \brief XML-Tag "label": value of label */ vnl_vector m_Label; //XML-Tag /** \brief XML-Tag "minimum": minimum inside hotspot */ vnl_vector m_HotspotMin; /** \brief XML-Tag "maximum": maximum inside hotspot */ vnl_vector m_HotspotMax; /** \brief XML-Tag "mean": mean value of hotspot */ vnl_vector m_HotspotMean; /** \brief XML-Tag "maximumIndexX": x-coordinate of maximum-location inside hotspot */ vnl_vector m_HotspotMaxIndexX; /** \brief XML-Tag "maximumIndexX": y-coordinate of maximum-location inside hotspot */ vnl_vector m_HotspotMaxIndexY; /** \brief XML-Tag "maximumIndexX": z-coordinate of maximum-location inside hotspot */ vnl_vector m_HotspotMaxIndexZ; /** \brief XML-Tag "maximumIndexX": x-coordinate of maximum-location inside hotspot */ vnl_vector m_HotspotMinIndexX; /** \brief XML-Tag "maximumIndexX": y-coordinate of maximum-location inside hotspot */ vnl_vector m_HotspotMinIndexY; /** \brief XML-Tag "maximumIndexX": z-coordinate of maximum-location inside hotspot */ vnl_vector m_HotspotMinIndexZ; /** \brief XML-Tag "maximumIndexX": x-coordinate of hotspot-location */ vnl_vector m_HotspotIndexX; /** \brief XML-Tag "maximumIndexX": y-coordinate of hotspot-location */ vnl_vector m_HotspotIndexY; /** \brief XML-Tag "maximumIndexX": z-coordinate of hotspot-location */ vnl_vector m_HotspotIndexZ; }; /** \brief Find/Convert integer attribute in itk::DOMNode. */ static int GetIntegerAttribute(itk::DOMNode* domNode, const std::string& tag) { assert(domNode); MITK_TEST_CONDITION_REQUIRED( domNode->HasAttribute(tag), "Tag '" << tag << "' is defined in test parameters" ); std::string attributeValue = domNode->GetAttribute(tag); int resultValue; try { //MITK_TEST_OUTPUT( << "Converting tag value '" << attributeValue << "' for tag '" << tag << "' to integer"); std::stringstream(attributeValue) >> resultValue; return resultValue; } catch(std::exception& e) { MITK_TEST_CONDITION_REQUIRED(false, "Convert tag value '" << attributeValue << "' for tag '" << tag << "' to integer"); return 0; // just to satisfy compiler } } /** \brief Find/Convert double attribute in itk::DOMNode. */ static double GetDoubleAttribute(itk::DOMNode* domNode, const std::string& tag) { assert(domNode); MITK_TEST_CONDITION_REQUIRED( domNode->HasAttribute(tag), "Tag '" << tag << "' is defined in test parameters" ); std::string attributeValue = domNode->GetAttribute(tag); double resultValue; try { //MITK_TEST_OUTPUT( << "Converting tag value '" << attributeValue << "' for tag '" << tag << "' to double"); std::stringstream(attributeValue) >> resultValue; return resultValue; } catch(std::exception& e) { MITK_TEST_CONDITION_REQUIRED(false, "Convert tag value '" << attributeValue << "' for tag '" << tag << "' to double"); return 0.0; // just to satisfy compiler } } /** \brief Read XML file describing the test parameters. Reads XML file given in first commandline parameter in order to construct a Parameters structure. The XML file should be structurs as the following example, i.e. we describe the three test aspects of Parameters in four different tags, with all the details described as tag attributes. */ /** \verbatim \endverbatim */ static Parameters ParseParameters(int argc, char* argv[]) { MITK_TEST_CONDITION_REQUIRED(argc == 2, "Test is invoked with exactly 1 parameter (XML parameters file)"); MITK_INFO << "Reading parameters from file '" << argv[1] << "'"; std::string filename = argv[1]; Parameters result; itk::DOMNodeXMLReader::Pointer xmlReader = itk::DOMNodeXMLReader::New(); xmlReader->SetFileName( filename ); try { xmlReader->Update(); itk::DOMNode::Pointer domRoot = xmlReader->GetOutput(); typedef std::vector NodeList; NodeList testimages; domRoot->GetChildren("testimage", testimages); MITK_TEST_CONDITION_REQUIRED( testimages.size() == 1, "One test image defined" ) itk::DOMNode* testimage = testimages[0]; result.m_ImageRows = GetIntegerAttribute( testimage, "image-rows" ); result.m_ImageColumns = GetIntegerAttribute( testimage, "image-columns" ); result.m_ImageSlices = GetIntegerAttribute( testimage, "image-slices" ); result.m_NumberOfGaussian = GetIntegerAttribute( testimage, "numberOfGaussians" ); result.m_Spacing[0] = GetDoubleAttribute(testimage, "spacingX"); result.m_Spacing[1] = GetDoubleAttribute(testimage, "spacingY"); result.m_Spacing[2] = GetDoubleAttribute(testimage, "spacingZ"); result.m_EntireHotspotInImage = GetIntegerAttribute( testimage, "entireHotSpotInImage" ); MITK_TEST_OUTPUT( << "Read size parameters (x,y,z): " << result.m_ImageRows << "," << result.m_ImageColumns << "," << result.m_ImageSlices); MITK_TEST_OUTPUT( << "Read spacing parameters (x,y,z): " << result.m_Spacing[0] << "," << result.m_Spacing[1] << "," << result.m_Spacing[2]); NodeList gaussians; testimage->GetChildren("gaussian", gaussians); MITK_TEST_CONDITION_REQUIRED( gaussians.size() >= 1, "At least one gaussian is defined" ) result.m_CenterX.resize(result.m_NumberOfGaussian); result.m_CenterY.resize(result.m_NumberOfGaussian); result.m_CenterZ.resize(result.m_NumberOfGaussian); result.m_SigmaX.resize(result.m_NumberOfGaussian); result.m_SigmaY.resize(result.m_NumberOfGaussian); result.m_SigmaZ.resize(result.m_NumberOfGaussian); result.m_Altitude.resize(result.m_NumberOfGaussian); for(int i = 0; i < result.m_NumberOfGaussian ; ++i) { itk::DOMNode* gaussian = gaussians[i]; result.m_CenterX[i] = GetIntegerAttribute(gaussian, "centerIndexX"); result.m_CenterY[i] = GetIntegerAttribute(gaussian, "centerIndexY"); result.m_CenterZ[i] = GetIntegerAttribute(gaussian, "centerIndexZ"); result.m_SigmaX[i] = GetIntegerAttribute(gaussian, "deviationX"); result.m_SigmaY[i] = GetIntegerAttribute(gaussian, "deviationY"); result.m_SigmaZ[i] = GetIntegerAttribute(gaussian, "deviationZ"); result.m_Altitude[i] = GetIntegerAttribute(gaussian, "altitude"); result.m_CenterX[i] *= result.m_Spacing[0]; result.m_CenterY[i] *= result.m_Spacing[1]; result.m_CenterZ[i] *= result.m_Spacing[2]; result.m_SigmaX[i] *= result.m_Spacing[0]; result.m_SigmaY[i] *= result.m_Spacing[1]; result.m_SigmaZ[i] *= result.m_Spacing[2]; } NodeList segmentations; domRoot->GetChildren("segmentation", segmentations); MITK_TEST_CONDITION_REQUIRED( segmentations.size() == 1, "One segmentation defined"); itk::DOMNode* segmentation = segmentations[0]; result.m_NumberOfLabels = GetIntegerAttribute(segmentation, "numberOfLabels"); result.m_HotspotRadiusInMM = GetDoubleAttribute(segmentation, "hotspotRadiusInMM"); // read ROI parameters, fill result structure NodeList rois; segmentation->GetChildren("roi", rois); MITK_TEST_CONDITION_REQUIRED( rois.size() >= 1, "At least one ROI defined" ) result.m_MaxSizeX.set_size(result.m_NumberOfLabels); result.m_MinSizeX.set_size(result.m_NumberOfLabels); result.m_MaxSizeY.set_size(result.m_NumberOfLabels); result.m_MinSizeY.set_size(result.m_NumberOfLabels); result.m_MaxSizeZ.set_size(result.m_NumberOfLabels); result.m_MinSizeZ.set_size(result.m_NumberOfLabels); result.m_Label.set_size(result.m_NumberOfLabels); for(int i = 0; i < rois.size(); ++i) { result.m_MaxSizeX[i] = GetIntegerAttribute(rois[i], "maximumSizeX"); result.m_MinSizeX[i] = GetIntegerAttribute(rois[i], "minimumSizeX"); result.m_MaxSizeY[i] = GetIntegerAttribute(rois[i], "maximumSizeY"); result.m_MinSizeY[i] = GetIntegerAttribute(rois[i], "minimumSizeY"); result.m_MaxSizeZ[i] = GetIntegerAttribute(rois[i], "maximumSizeZ"); result.m_MinSizeZ[i] = GetIntegerAttribute(rois[i], "minimumSizeZ"); result.m_Label[i] = GetIntegerAttribute(rois[i], "label"); } // read statistic parameters, fill result structure NodeList statistics; domRoot->GetChildren("statistic", statistics); MITK_TEST_CONDITION_REQUIRED( statistics.size() >= 1 , "At least one statistic defined" ) MITK_TEST_CONDITION_REQUIRED( statistics.size() == rois.size(), "Same number of rois and corresponding statistics defined"); result.m_HotspotMin.set_size(statistics.size()); result.m_HotspotMax.set_size(statistics.size()); result.m_HotspotMean.set_size(statistics.size()); result.m_HotspotMinIndexX.set_size(statistics.size()); result.m_HotspotMinIndexY.set_size(statistics.size()); result.m_HotspotMinIndexZ.set_size(statistics.size()); result.m_HotspotMaxIndexX.set_size(statistics.size()); result.m_HotspotMaxIndexY.set_size(statistics.size()); result.m_HotspotMaxIndexZ.set_size(statistics.size()); result.m_HotspotIndexX.set_size(statistics.size()); result.m_HotspotIndexY.set_size(statistics.size()); result.m_HotspotIndexZ.set_size(statistics.size()); for(int i = 0; i < statistics.size(); ++i) { result.m_HotspotMin[i] = GetDoubleAttribute(statistics[i], "minimum"); result.m_HotspotMax[i] = GetDoubleAttribute(statistics[i], "maximum"); result.m_HotspotMean[i] = GetDoubleAttribute(statistics[i], "mean"); result.m_HotspotMinIndexX[i] = GetIntegerAttribute(statistics[i], "minimumIndexX"); result.m_HotspotMinIndexY[i] = GetIntegerAttribute(statistics[i], "minimumIndexY"); result.m_HotspotMinIndexZ[i] = GetIntegerAttribute(statistics[i], "minimumIndexZ"); result.m_HotspotMaxIndexX[i] = GetIntegerAttribute(statistics[i], "maximumIndexX"); result.m_HotspotMaxIndexY[i] = GetIntegerAttribute(statistics[i], "maximumIndexY"); result.m_HotspotMaxIndexZ[i] = GetIntegerAttribute(statistics[i], "maximumIndexZ"); result.m_HotspotIndexX[i] = GetIntegerAttribute(statistics[i], "hotspotIndexX"); result.m_HotspotIndexY[i] = GetIntegerAttribute(statistics[i], "hotspotIndexY"); result.m_HotspotIndexZ[i] = GetIntegerAttribute(statistics[i], "hotspotIndexZ"); } return result; } catch (std::exception& e) { MITK_TEST_CONDITION_REQUIRED(false, "Reading test parameters from XML file. Error message: " << e.what()); } } /** \brief Generate an image that contains a couple of 3D gaussian distributions. Uses the given parameters to produce a test image using class MultiGaussianImageSource. */ static mitk::Image::Pointer BuildTestImage(const Parameters& testParameters) { mitk::Image::Pointer result; typedef double PixelType; const unsigned int Dimension = 3; typedef itk::Image ImageType; ImageType::Pointer image = ImageType::New(); typedef itk::MultiGaussianImageSource< ImageType > MultiGaussianImageSource; MultiGaussianImageSource::Pointer gaussianGenerator = MultiGaussianImageSource::New(); ImageType::SizeValueType size[3]; size[0] = testParameters.m_ImageColumns; size[1] = testParameters.m_ImageRows; size[2] = testParameters.m_ImageSlices; itk::MultiGaussianImageSource::VectorType centerXVec, centerYVec, centerZVec, sigmaXVec, sigmaYVec, sigmaZVec, altitudeVec; for(int i = 0; i < testParameters.m_NumberOfGaussian; ++i) { centerXVec.push_back(testParameters.m_CenterX[i]); centerYVec.push_back(testParameters.m_CenterY[i]); centerZVec.push_back(testParameters.m_CenterZ[i]); sigmaXVec.push_back(testParameters.m_SigmaX[i]); sigmaYVec.push_back(testParameters.m_SigmaY[i]); sigmaZVec.push_back(testParameters.m_SigmaZ[i]); altitudeVec.push_back(testParameters.m_Altitude[i]); } ImageType::SpacingType spacing; for(int i = 0; i < Dimension; ++i) spacing[i] = testParameters.m_Spacing[i]; gaussianGenerator->SetSize( size ); gaussianGenerator->SetSpacing( spacing ); gaussianGenerator->SetRadius(testParameters.m_HotspotRadiusInMM); gaussianGenerator->SetNumberOfGausssians(testParameters.m_NumberOfGaussian); gaussianGenerator->AddGaussian(centerXVec, centerYVec, centerZVec, sigmaXVec, sigmaYVec, sigmaZVec, altitudeVec); gaussianGenerator->Update(); image = gaussianGenerator->GetOutput(); mitk::CastToMitkImage(image, result); return result; } /** \brief Calculates hotspot statistics for given test image and ROI parameters. Uses ImageStatisticsCalculator to find a hotspot in a defined ROI within the given image. */ static mitk::ImageStatisticsCalculator::Statistics CalculateStatistics(mitk::Image* image, const Parameters& testParameters, unsigned int label) { mitk::ImageStatisticsCalculator::Statistics result; const unsigned int Dimension = 3; typedef itk::Image MaskImageType; MaskImageType::Pointer mask = MaskImageType::New(); MaskImageType::SizeType size; MaskImageType::SpacingType spacing; MaskImageType::IndexType start; mitk::ImageStatisticsCalculator::Pointer statisticsCalculator = mitk::ImageStatisticsCalculator::New(); statisticsCalculator->SetImage(image); mitk::Image::Pointer mitkMaskImage; if((testParameters.m_MaxSizeX[label] > testParameters.m_MinSizeX[label] && testParameters.m_MinSizeX[label] >= 0) && (testParameters.m_MaxSizeY[label] > testParameters.m_MinSizeY[label] && testParameters.m_MinSizeY[label] >= 0) && (testParameters.m_MaxSizeZ[label] > testParameters.m_MinSizeZ[label] && testParameters.m_MinSizeZ[label] >= 0)) { for(int i = 0; i < Dimension; ++i) { start[i] = 0; spacing[i] = testParameters.m_Spacing[i]; } size[0] = testParameters.m_ImageColumns; size[1] = testParameters.m_ImageRows; size[2] = testParameters.m_ImageSlices; MaskImageType::RegionType region; region.SetIndex(start); region.SetSize(size); mask->SetSpacing(spacing); mask->SetRegions(region); mask->Allocate(); typedef itk::ImageRegionIteratorWithIndex MaskImageIteratorType; MaskImageIteratorType maskIt(mask, region); for(maskIt.GoToBegin(); !maskIt.IsAtEnd(); ++maskIt) { maskIt.Set(0); } for(int i = 0; i < testParameters.m_NumberOfLabels; ++i) { for(maskIt.GoToBegin(); !maskIt.IsAtEnd(); ++maskIt) { MaskImageType::IndexType index = maskIt.GetIndex(); if((index[0] >= testParameters.m_MinSizeX[i] && index[0] < testParameters.m_MaxSizeX[i] ) && (index[1] >= testParameters.m_MinSizeY[i] && index[1] < testParameters.m_MaxSizeY[i] ) && (index[2] >= testParameters.m_MinSizeZ[i] && index[2] < testParameters.m_MaxSizeZ[i] )) { maskIt.Set(testParameters.m_Label[i]); } } } MITK_DEBUG << "Masking mode has set to image"; mitk::CastToMitkImage(mask, mitkMaskImage); statisticsCalculator->SetImageMask(mitkMaskImage); statisticsCalculator->SetMaskingModeToImage(); } else { MITK_DEBUG << "Masking mode has set to none"; statisticsCalculator->SetMaskingModeToNone(); } statisticsCalculator->SetHotspotRadiusInMM(testParameters.m_HotspotRadiusInMM); statisticsCalculator->SetCalculateHotspot(true); if(testParameters.m_EntireHotspotInImage == 1) { MITK_INFO << "Hotspot must be completly inside image"; statisticsCalculator->SetHotspotMustBeCompletlyInsideImage(true); } else { MITK_INFO << "Hotspot must not be completly inside image"; statisticsCalculator->SetHotspotMustBeCompletlyInsideImage(false); } statisticsCalculator->ComputeStatistics(); result = statisticsCalculator->GetStatistics(0, label); return result; } static void ValidateStatisticsItem(const std::string& label, double testvalue, double reference, double tolerance) { double diff = ::fabs(reference - testvalue); MITK_TEST_CONDITION( diff < tolerance, "'" << label << "' value close enough to reference value " "(value=" << testvalue << ", reference=" << reference << ", diff=" << diff << ")" ); } static void ValidateStatisticsItem(const std::string& label, const vnl_vector& testvalue, const vnl_vector& reference) { double diffX = testvalue[0] - reference[0]; double diffY = testvalue[1] - reference[1]; double diffZ = testvalue[2] - reference[2]; std::stringstream testPosition; testPosition << testvalue[0] << "," << testvalue[1] << "," << testvalue[2]; std::stringstream referencePosition; referencePosition << reference[0] << "," << reference[1] << "," << reference[2]; MITK_TEST_CONDITION( diffX < mitk::eps && diffY < mitk::eps && diffZ < mitk::eps, "'" << label << "' close enough to reference value " << "(value=[" << testPosition.str() << "]," << " reference=[" << referencePosition.str() << "]"); } /** \brief Compares calculated against actual statistics values. Checks validness of all statistics aspects. Lets test fail if any aspect is not sufficiently equal. */ static void ValidateStatistics(const mitk::ImageStatisticsCalculator::Statistics& statistics, const Parameters& testParameters, unsigned int label) { // check all expected test result against actual results double eps = 1.6; ValidateStatisticsItem("Hotspot mean", statistics.GetHotspotStatistics().GetMean(), testParameters.m_HotspotMean[label], eps); ValidateStatisticsItem("Hotspot maximum", statistics.GetHotspotStatistics().GetMax(), testParameters.m_HotspotMax[label], eps); ValidateStatisticsItem("Hotspot minimum", statistics.GetHotspotStatistics().GetMin(), testParameters.m_HotspotMin[label], eps); vnl_vector referenceHotspotCenterIndex; referenceHotspotCenterIndex.set_size(3); referenceHotspotCenterIndex[0] = testParameters.m_HotspotIndexX[label]; referenceHotspotCenterIndex[1] = testParameters.m_HotspotIndexY[label]; referenceHotspotCenterIndex[2] = testParameters.m_HotspotIndexZ[label]; ValidateStatisticsItem("Hotspot center position", statistics.GetHotspotStatistics().GetHotspotIndex(), referenceHotspotCenterIndex); vnl_vector referenceHotspotMaxIndex; referenceHotspotMaxIndex.set_size(3); referenceHotspotMaxIndex[0] = testParameters.m_HotspotMaxIndexX[label]; referenceHotspotMaxIndex[1] = testParameters.m_HotspotMaxIndexY[label]; referenceHotspotMaxIndex[2] = testParameters.m_HotspotMaxIndexZ[label]; - ValidateStatisticsItem("Hotspot maximum position", statistics.GetHotspotStatistics().GetHotspotIndex(), referenceHotspotMaxIndex); + // TODO we do not test minimum/maximum positions within the peak/hotspot region, because + // these positions are not unique, i.e. there are multiple valid minima/maxima positions. + // One solution would be to modify the test cases in order to achive clear positions. + //ValidateStatisticsItem("Hotspot maximum position", statistics.GetHotspotStatistics().GetHotspotIndex(), referenceHotspotMaxIndex); vnl_vector referenceHotspotMinIndex; referenceHotspotMinIndex.set_size(3); referenceHotspotMinIndex[0] = testParameters.m_HotspotMinIndexX[label]; referenceHotspotMinIndex[1] = testParameters.m_HotspotMinIndexY[label]; referenceHotspotMinIndex[2] = testParameters.m_HotspotMinIndexZ[label]; - ValidateStatisticsItem("Hotspot minimum position", statistics.GetHotspotStatistics().GetHotspotIndex(), referenceHotspotMinIndex); + // TODO we do not test minimum/maximum positions within the peak/hotspot region, because + // these positions are not unique, i.e. there are multiple valid minima/maxima positions + // One solution would be to modify the test cases in order to achive clear positions. + //ValidateStatisticsItem("Hotspot minimum position", statistics.GetHotspotStatistics().GetHotspotIndex(), referenceHotspotMinIndex); } }; /** \brief Verifies that hotspot statistics part of ImageStatisticsCalculator. The test reads parameters from an XML-file to generate a test-image, calculates the hotspot statistics of the image and checks if the calculated statistics are the same as the specified values of the XML-file. */ int mitkImageStatisticsHotspotTest(int argc, char* argv[]) { MITK_TEST_BEGIN("mitkImageStatisticsHotspotTest") try { mitkImageStatisticsHotspotTestClass::Parameters parameters = mitkImageStatisticsHotspotTestClass::ParseParameters(argc,argv); mitk::Image::Pointer image = mitkImageStatisticsHotspotTestClass::BuildTestImage(parameters); MITK_TEST_CONDITION_REQUIRED( image.IsNotNull(), "Generate test image" ); for(int label = 0; label < parameters.m_NumberOfLabels; ++label) { mitk::ImageStatisticsCalculator::Statistics statistics = mitkImageStatisticsHotspotTestClass::CalculateStatistics(image, parameters, label); mitkImageStatisticsHotspotTestClass::ValidateStatistics(statistics, parameters, label); std::cout << std::endl; } } catch (std::exception& e) { std::cout << "Error: " << e.what() << std::endl; } MITK_TEST_END() }