Commit 19994b44 authored by zach.mullen's avatar zach.mullen
Browse files

ENH: Move BRAINSTools testing data to midas.kitware.com and reference the remote data in the tests

git-svn-id: http://svn.slicer.org/Slicer4/trunk@15651 3bd1e089-480b-0410-8dfb-8563597acbee
parent 4916bd6e
fb295d462eba7b231de4dd31dbc7ae3a
\ No newline at end of file
9e82cbc341ff59b2b2fb38d071ba6ba9
\ No newline at end of file
63ad8f465b46ce9e654fce1d6a2d294a
\ No newline at end of file
327b2c70900870ed68627c80af2426f5
\ No newline at end of file
0acc2a5a1f20ed373c49103e189ba549
\ No newline at end of file
......@@ -22,16 +22,19 @@ target_link_libraries(VBRAINSDemonWarpCLPTests BRAINSDemonWarpCommonLib ${BRAINS
set_target_properties(VBRAINSDemonWarpCLPTests PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${BRAINSDemonWarp_BINARY_DIR})
set(VBRAINS_Demon_Warp_TESTS ${LAUNCH_EXE} $<TARGET_FILE:VBRAINSDemonWarpCLPTests> )
include(MIDAS)
set(MIDAS_KEY_DIR "${BRAINSCommonLib_DATA_DIRS}")
#1
add_test(NAME ValidateBRAINSDemonsWarpTest_nii COMMAND ${BRAINS_Demon_Warp_TESTS}
midas_add_test(NAME ValidateBRAINSDemonsWarpTest_nii COMMAND ${BRAINS_Demon_Warp_TESTS}
--compare
${BRAINSCommonLib_DATA_DIRS}/thirionDemons.nii.gz
MIDAS{thirionDemons.nii.gz.md5}
${BRAINSDemonWarp_BINARY_DIR}/thirionDemons_test.nii.gz
--compareNumberOfPixelsTolerance 50
--compareIntensityTolerance 10
BRAINSDemonWarpTest
--movingVolume ${BRAINSCommonLib_DATA_DIRS}/SUBJ_B_small/SUBJ_B_small_T1.nii.gz
--fixedVolume ${BRAINSCommonLib_DATA_DIRS}/SUBJ_A_small/SUBJ_A_small_T1.nii.gz
--movingVolume MIDAS{SUBJ_B_small/SUBJ_B_small_T1.nii.gz.md5}
--fixedVolume MIDAS{SUBJ_A_small/SUBJ_A_small_T1.nii.gz.md5}
--outputVolume ${BRAINSDemonWarp_BINARY_DIR}/thirionDemons_test.nii.gz
# --inputPixelType short
# --outputPixelType short
......@@ -44,15 +47,15 @@ add_test(NAME ValidateBRAINSDemonsWarpTest_nii COMMAND ${BRAINS_Demon_Warp_TESTS
)
#2
add_test(NAME ValidateFastSymmetricForcesTest_nii COMMAND ${BRAINS_Demon_Warp_TESTS}
midas_add_test(NAME ValidateFastSymmetricForcesTest_nii COMMAND ${BRAINS_Demon_Warp_TESTS}
--compare
${BRAINSCommonLib_DATA_DIRS}/fastSymmetricForcesDemons.nii.gz
MIDAS{fastSymmetricForcesDemons.nii.gz.md5}
${BRAINSDemonWarp_BINARY_DIR}/fastSymmetricForcesDemons_test.nii.gz
--compareNumberOfPixelsTolerance 450
--compareIntensityTolerance 10
BRAINSDemonWarpTest
--movingVolume ${BRAINSCommonLib_DATA_DIRS}/SUBJ_B_small/SUBJ_B_small_T1.nii.gz
--fixedVolume ${BRAINSCommonLib_DATA_DIRS}/SUBJ_A_small/SUBJ_A_small_T1.nii.gz
--movingVolume MIDAS{SUBJ_B_small/SUBJ_B_small_T1.nii.gz.md5}
--fixedVolume MIDAS{SUBJ_A_small/SUBJ_A_small_T1.nii.gz.md5}
--outputVolume ${BRAINSDemonWarp_BINARY_DIR}/fastSymmetricForcesDemons_test.nii.gz
--inputPixelType uchar
--outputPixelType uchar
......@@ -67,15 +70,15 @@ add_test(NAME ValidateFastSymmetricForcesTest_nii COMMAND ${BRAINS_Demon_Warp_TE
)
#3
add_test(NAME ValidateDiffeomorphicTest1_nii COMMAND ${BRAINS_Demon_Warp_TESTS}
midas_add_test(NAME ValidateDiffeomorphicTest1_nii COMMAND ${BRAINS_Demon_Warp_TESTS}
--compare
${BRAINSCommonLib_DATA_DIRS}/diffeomorphicDemons1.nii.gz
MIDAS{diffeomorphicDemons1.nii.gz.md5}
${BRAINSDemonWarp_BINARY_DIR}/diffeomorphicDemons1_test.nii.gz
--compareNumberOfPixelsTolerance 220
--compareIntensityTolerance 10
BRAINSDemonWarpTest
--movingVolume ${BRAINSCommonLib_DATA_DIRS}/SUBJ_B_small/SUBJ_B_small_T1.nii.gz
--fixedVolume ${BRAINSCommonLib_DATA_DIRS}/SUBJ_A_small/SUBJ_A_small_T1.nii.gz
--movingVolume MIDAS{SUBJ_B_small/SUBJ_B_small_T1.nii.gz.md5}
--fixedVolume MIDAS{SUBJ_A_small/SUBJ_A_small_T1.nii.gz.md5}
--outputVolume ${BRAINSDemonWarp_BINARY_DIR}/diffeomorphicDemons1_test.nii.gz
--outputDeformationFieldVolume ${BRAINSDemonWarp_BINARY_DIR}/OutDefField.nii.gz
--inputPixelType short
......@@ -94,21 +97,21 @@ add_test(NAME ValidateDiffeomorphicTest1_nii COMMAND ${BRAINS_Demon_Warp_TESTS}
)
#4
add_test(NAME ValidateDiffeomorphicTest2_nii COMMAND ${BRAINS_Demon_Warp_TESTS}
midas_add_test(NAME ValidateDiffeomorphicTest2_nii COMMAND ${BRAINS_Demon_Warp_TESTS}
--compare
${BRAINSCommonLib_DATA_DIRS}/diffeomorphicDemons2.nii.gz
MIDAS{diffeomorphicDemons2.nii.gz.md5}
${BRAINSDemonWarp_BINARY_DIR}/diffeomorphicDemons2_test.nii.gz
--compareNumberOfPixelsTolerance 300
--compareIntensityTolerance 10
BRAINSDemonWarpTest
--movingVolume ${BRAINSCommonLib_DATA_DIRS}/SUBJ_B_small/SUBJ_B_small_T1.nii.gz
--fixedVolume ${BRAINSCommonLib_DATA_DIRS}/SUBJ_A_small/SUBJ_A_small_T1.nii.gz
--movingVolume MIDAS{SUBJ_B_small/SUBJ_B_small_T1.nii.gz.md5}
--fixedVolume MIDAS{SUBJ_A_small/SUBJ_A_small_T1.nii.gz.md5}
--outputVolume ${BRAINSDemonWarp_BINARY_DIR}/diffeomorphicDemons2_test.nii.gz
--inputPixelType ushort
--outputPixelType uchar
--outputNormalized
--fixedBinaryVolume ${BRAINSCommonLib_DATA_DIRS}/SUBJ_A_small/SUBJ_A_small_brain_cut_mask.nii.gz
--movingBinaryVolume ${BRAINSCommonLib_DATA_DIRS}/SUBJ_B_small/SUBJ_B_small_brain_cut_mask.nii.gz
--fixedBinaryVolume MIDAS{SUBJ_A_small/SUBJ_A_small_brain_cut_mask.nii.gz.md5}
--movingBinaryVolume MIDAS{SUBJ_B_small/SUBJ_B_small_brain_cut_mask.nii.gz.md5}
--maskProcessingMode BOBF
--histogramMatch
--numberOfHistogramBins 1024
......@@ -122,22 +125,22 @@ add_test(NAME ValidateDiffeomorphicTest2_nii COMMAND ${BRAINS_Demon_Warp_TESTS}
)
#5
add_test(NAME ValidateDiffeomorphicTest3_nii COMMAND ${BRAINS_Demon_Warp_TESTS}
midas_add_test(NAME ValidateDiffeomorphicTest3_nii COMMAND ${BRAINS_Demon_Warp_TESTS}
--compare
${BRAINSCommonLib_DATA_DIRS}/diffeomorphicDemons3.nii.gz
MIDAS{diffeomorphicDemons3.nii.gz.md5}
${BRAINSDemonWarp_BINARY_DIR}/diffeomorphicDemons3_test.nii.gz
--compareNumberOfPixelsTolerance 6950
--compareIntensityTolerance 10
BRAINSDemonWarpTest
--movingVolume ${BRAINSCommonLib_DATA_DIRS}/SUBJ_B_small/SUBJ_B_small_T1.nii.gz
--fixedVolume ${BRAINSCommonLib_DATA_DIRS}/SUBJ_A_small/SUBJ_A_small_T1.nii.gz
--movingVolume MIDAS{SUBJ_B_small/SUBJ_B_small_T1.nii.gz.md5}
--fixedVolume MIDAS{SUBJ_A_small/SUBJ_A_small_T1.nii.gz.md5}
# --outputDeformationFieldVolume ${BRAINSDemonWarp_BINARY_DIR}/OutDefField.nii.gz
--outputVolume ${BRAINSDemonWarp_BINARY_DIR}/diffeomorphicDemons3_test.nii.gz
--inputPixelType int
--outputPixelType uchar
--outputNormalized
--fixedBinaryVolume ${BRAINSCommonLib_DATA_DIRS}/SUBJ_A_small/SUBJ_A_small_brain_cut_mask.nii.gz
--movingBinaryVolume ${BRAINSCommonLib_DATA_DIRS}/SUBJ_B_small/SUBJ_B_small_brain_cut_mask.nii.gz
--fixedBinaryVolume MIDAS{SUBJ_A_small/SUBJ_A_small_brain_cut_mask.nii.gz.md5}
--movingBinaryVolume MIDAS{SUBJ_B_small/SUBJ_B_small_brain_cut_mask.nii.gz.md5}
--maskProcessingMode BOBF
--smoothDeformationFieldSigma 0.01
--upFieldSmoothing 1.0
......@@ -152,21 +155,21 @@ add_test(NAME ValidateDiffeomorphicTest3_nii COMMAND ${BRAINS_Demon_Warp_TESTS}
)
#6
add_test(NAME ValidateDiffeomorphicTest4_nii COMMAND ${BRAINS_Demon_Warp_TESTS}
midas_add_test(NAME ValidateDiffeomorphicTest4_nii COMMAND ${BRAINS_Demon_Warp_TESTS}
--compare
${BRAINSCommonLib_DATA_DIRS}/diffeomorphicDemons4.nii.gz
MIDAS{diffeomorphicDemons4.nii.gz.md5}
${BRAINSDemonWarp_BINARY_DIR}/diffeomorphicDemons4_test.nii.gz
--compareNumberOfPixelsTolerance 340
--compareIntensityTolerance 10
BRAINSDemonWarpTest
--movingVolume ${BRAINSCommonLib_DATA_DIRS}/SUBJ_B_small/SUBJ_B_small_T1.nii.gz
--fixedVolume ${BRAINSCommonLib_DATA_DIRS}/SUBJ_A_small/SUBJ_A_small_T1.nii.gz
--movingVolume MIDAS{SUBJ_B_small/SUBJ_B_small_T1.nii.gz.md5}
--fixedVolume MIDAS{SUBJ_A_small/SUBJ_A_small_T1.nii.gz.md5}
--outputVolume ${BRAINSDemonWarp_BINARY_DIR}/diffeomorphicDemons4_test.nii.gz
--inputPixelType int
--outputPixelType uchar
# --outputNormalized
--outputCheckerboardVolume ${BRAINSDemonWarp_BINARY_DIR}/output_Checkborad.nii.gz
--initializeWithDeformationField ${BRAINSCommonLib_DATA_DIRS}/InitialDeformationField.nii.gz
--initializeWithDeformationField MIDAS{InitialDeformationField.nii.gz.md5}
--smoothDeformationFieldSigma 1.5
--numberOfPyramidLevels 3
--arrayOfPyramidLevelIterations 10,5,5
......@@ -177,15 +180,15 @@ add_test(NAME ValidateDiffeomorphicTest4_nii COMMAND ${BRAINS_Demon_Warp_TESTS}
)
### Need to add more test to get better code coverage of this test suite. Need to make sure that all the command line options are tested.
add_test(NAME ValidateOrientedImagesTest5_nii COMMAND ${BRAINS_Demon_Warp_TESTS}
midas_add_test(NAME ValidateOrientedImagesTest5_nii COMMAND ${BRAINS_Demon_Warp_TESTS}
--compare
${BRAINSCommonLib_DATA_DIRS}/ValidateOrientedImagesTest5.nii.gz
MIDAS{ValidateOrientedImagesTest5.nii.gz.md5}
${BRAINSDemonWarp_BINARY_DIR}/ValidateOrientedImagesTest5.nii.gz
--compareNumberOfPixelsTolerance 49800
--compareIntensityTolerance 25
BRAINSDemonWarpTest
--movingVolume ${BRAINSCommonLib_DATA_DIRS}/ANON0006_20_T1_sag_twisted.nii.gz
--fixedVolume ${BRAINSCommonLib_DATA_DIRS}/ANON0006_20_T1_dbg_splayed.nii.gz
--movingVolume MIDAS{ANON0006_20_T1_sag_twisted.nii.gz.md5}
--fixedVolume MIDAS{ANON0006_20_T1_dbg_splayed.nii.gz.md5}
--outputVolume ${BRAINSDemonWarp_BINARY_DIR}/ValidateOrientedImagesTest5.nii.gz
--outputDeformationFieldVolume ${BRAINSDemonWarp_BINARY_DIR}/OutDefField_orientedImage.nii.gz
--inputPixelType uchar
......@@ -197,15 +200,15 @@ add_test(NAME ValidateOrientedImagesTest5_nii COMMAND ${BRAINS_Demon_Warp_TESTS}
--registrationFilterType Diffeomorphic
)
add_test(NAME ValidateVectorBRAINSDemonWarpTest_nii COMMAND ${VBRAINS_Demon_Warp_TESTS}
midas_add_test(NAME ValidateVectorBRAINSDemonWarpTest_nii COMMAND ${VBRAINS_Demon_Warp_TESTS}
--compare
${BRAINSCommonLib_DATA_DIRS}/thirionDemons.nii.gz
MIDAS{thirionDemons.nii.gz.md5}
${BRAINSDemonWarp_BINARY_DIR}/thirionDemons_V_test.nii.gz
--compareNumberOfPixelsTolerance 50
--compareIntensityTolerance 10
VBRAINSDemonWarpTest
--movingVolume ${BRAINSCommonLib_DATA_DIRS}/SUBJ_B_small/SUBJ_B_small_T1.nii.gz
--fixedVolume ${BRAINSCommonLib_DATA_DIRS}/SUBJ_A_small/SUBJ_A_small_T1.nii.gz
--movingVolume MIDAS{SUBJ_B_small/SUBJ_B_small_T1.nii.gz.md5}
--fixedVolume MIDAS{SUBJ_A_small/SUBJ_A_small_T1.nii.gz.md5}
--outputVolume ${BRAINSDemonWarp_BINARY_DIR}/thirionDemons_V_test.nii.gz
# --inputPixelType short
# --outputPixelType short
......@@ -218,15 +221,15 @@ add_test(NAME ValidateVectorBRAINSDemonWarpTest_nii COMMAND ${VBRAINS_Demon_Warp
)
add_test(NAME ValidateVectorFastSymmetricForcesTest_nii COMMAND ${VBRAINS_Demon_Warp_TESTS}
midas_add_test(NAME ValidateVectorFastSymmetricForcesTest_nii COMMAND ${VBRAINS_Demon_Warp_TESTS}
--compare
${BRAINSCommonLib_DATA_DIRS}/fastSymmetricForcesDemons.nii.gz
MIDAS{fastSymmetricForcesDemons.nii.gz.md5}
${BRAINSDemonWarp_BINARY_DIR}/fastSymmetricForcesDemons_V_test.nii.gz
--compareNumberOfPixelsTolerance 450
--compareIntensityTolerance 10
VBRAINSDemonWarpTest
--movingVolume ${BRAINSCommonLib_DATA_DIRS}/SUBJ_B_small/SUBJ_B_small_T1.nii.gz
--fixedVolume ${BRAINSCommonLib_DATA_DIRS}/SUBJ_A_small/SUBJ_A_small_T1.nii.gz
--movingVolume MIDAS{SUBJ_B_small/SUBJ_B_small_T1.nii.gz.md5}
--fixedVolume MIDAS{SUBJ_A_small/SUBJ_A_small_T1.nii.gz.md5}
--outputVolume ${BRAINSDemonWarp_BINARY_DIR}/fastSymmetricForcesDemons_V_test.nii.gz
--inputPixelType uchar
--outputPixelType uchar
......@@ -240,15 +243,15 @@ add_test(NAME ValidateVectorFastSymmetricForcesTest_nii COMMAND ${VBRAINS_Demon_
--registrationFilterType FastSymmetricForces
)
add_test(NAME ValidateVectorDiffeomorphicTest1_nii COMMAND ${VBRAINS_Demon_Warp_TESTS}
midas_add_test(NAME ValidateVectorDiffeomorphicTest1_nii COMMAND ${VBRAINS_Demon_Warp_TESTS}
--compare
${BRAINSCommonLib_DATA_DIRS}/diffeomorphicDemons1.nii.gz
MIDAS{diffeomorphicDemons1.nii.gz.md5}
${BRAINSDemonWarp_BINARY_DIR}/vectordiffeomorphicDemons1_test.nii.gz
--compareNumberOfPixelsTolerance 220
--compareIntensityTolerance 10
VBRAINSDemonWarpTest
--movingVolume ${BRAINSCommonLib_DATA_DIRS}/SUBJ_B_small/SUBJ_B_small_T1.nii.gz,${BRAINSCommonLib_DATA_DIRS}/SUBJ_B_small/SUBJ_B_small_T1.nii.gz
--fixedVolume ${BRAINSCommonLib_DATA_DIRS}/SUBJ_A_small/SUBJ_A_small_T1.nii.gz,${BRAINSCommonLib_DATA_DIRS}/SUBJ_A_small/SUBJ_A_small_T1.nii.gz
--movingVolume MIDAS{SUBJ_B_small/SUBJ_B_small_T1.nii.gz.md5},MIDAS{SUBJ_B_small/SUBJ_B_small_T1.nii.gz.md5}
--fixedVolume MIDAS{SUBJ_A_small/SUBJ_A_small_T1.nii.gz.md5},MIDAS{SUBJ_A_small/SUBJ_A_small_T1.nii.gz.md5}
--outputVolume ${BRAINSDemonWarp_BINARY_DIR}/vectordiffeomorphicDemons1_test.nii.gz
--outputDeformationFieldVolume ${BRAINSDemonWarp_BINARY_DIR}/OutDefField.nii.gz
--inputPixelType short
......@@ -267,21 +270,21 @@ add_test(NAME ValidateVectorDiffeomorphicTest1_nii COMMAND ${VBRAINS_Demon_Warp_
)
add_test(NAME ValidateVectorDiffeomorphicTest2_nii COMMAND ${VBRAINS_Demon_Warp_TESTS}
midas_add_test(NAME ValidateVectorDiffeomorphicTest2_nii COMMAND ${VBRAINS_Demon_Warp_TESTS}
--compare
${BRAINSCommonLib_DATA_DIRS}/diffeomorphicDemons2.nii.gz
MIDAS{diffeomorphicDemons2.nii.gz.md5}
${BRAINSDemonWarp_BINARY_DIR}/vectordiffeomorphicDemons2_test.nii.gz
--compareNumberOfPixelsTolerance 300
--compareIntensityTolerance 10
VBRAINSDemonWarpTest
--movingVolume ${BRAINSCommonLib_DATA_DIRS}/SUBJ_B_small/SUBJ_B_small_T1.nii.gz,${BRAINSCommonLib_DATA_DIRS}/SUBJ_B_small/SUBJ_B_small_T1.nii.gz
--fixedVolume ${BRAINSCommonLib_DATA_DIRS}/SUBJ_A_small/SUBJ_A_small_T1.nii.gz,${BRAINSCommonLib_DATA_DIRS}/SUBJ_A_small/SUBJ_A_small_T1.nii.gz
--movingVolume MIDAS{SUBJ_B_small/SUBJ_B_small_T1.nii.gz.md5},MIDAS{SUBJ_B_small/SUBJ_B_small_T1.nii.gz.md5}
--fixedVolume MIDAS{SUBJ_A_small/SUBJ_A_small_T1.nii.gz.md5},MIDAS{SUBJ_A_small/SUBJ_A_small_T1.nii.gz.md5}
--outputVolume ${BRAINSDemonWarp_BINARY_DIR}/vectordiffeomorphicDemons2_test.nii.gz
--inputPixelType ushort
--outputPixelType uchar
--outputNormalized
--fixedBinaryVolume ${BRAINSCommonLib_DATA_DIRS}/SUBJ_A_small/SUBJ_A_small_brain_cut_mask.nii.gz
--movingBinaryVolume ${BRAINSCommonLib_DATA_DIRS}/SUBJ_B_small/SUBJ_B_small_brain_cut_mask.nii.gz
--fixedBinaryVolume MIDAS{SUBJ_A_small/SUBJ_A_small_brain_cut_mask.nii.gz.md5}
--movingBinaryVolume MIDAS{SUBJ_B_small/SUBJ_B_small_brain_cut_mask.nii.gz.md5}
--makeBOBF
--histogramMatch
--numberOfHistogramBins 1024 --numberOfMatchPoints 7
......@@ -292,22 +295,22 @@ add_test(NAME ValidateVectorDiffeomorphicTest2_nii COMMAND ${VBRAINS_Demon_Warp_
--registrationFilterType Diffeomorphic
)
add_test(NAME ValidateVectorDiffeomorphicTest3_nii COMMAND ${VBRAINS_Demon_Warp_TESTS}
midas_add_test(NAME ValidateVectorDiffeomorphicTest3_nii COMMAND ${VBRAINS_Demon_Warp_TESTS}
--compare
${BRAINSCommonLib_DATA_DIRS}/diffeomorphicDemons3.nii.gz
MIDAS{diffeomorphicDemons3.nii.gz.md5}
${BRAINSDemonWarp_BINARY_DIR}/vectordiffeomorphicDemons3_test.nii.gz
--compareNumberOfPixelsTolerance 6950
--compareIntensityTolerance 10
VBRAINSDemonWarpTest
--movingVolume ${BRAINSCommonLib_DATA_DIRS}/SUBJ_B_small/SUBJ_B_small_T1.nii.gz,${BRAINSCommonLib_DATA_DIRS}/SUBJ_B_small/SUBJ_B_small_T1.nii.gz
--fixedVolume ${BRAINSCommonLib_DATA_DIRS}/SUBJ_A_small/SUBJ_A_small_T1.nii.gz,${BRAINSCommonLib_DATA_DIRS}/SUBJ_A_small/SUBJ_A_small_T1.nii.gz
--movingVolume MIDAS{SUBJ_B_small/SUBJ_B_small_T1.nii.gz.md5},MIDAS{SUBJ_B_small/SUBJ_B_small_T1.nii.gz.md5}
--fixedVolume MIDAS{SUBJ_A_small/SUBJ_A_small_T1.nii.gz.md5},MIDAS{SUBJ_A_small/SUBJ_A_small_T1.nii.gz.md5}
# --outputDeformationFieldVolume ${VBRAINSDemonWarp_BINARY_DIR}/OutDefField.nii.gz
--outputVolume ${BRAINSDemonWarp_BINARY_DIR}/vectordiffeomorphicDemons3_test.nii.gz
--inputPixelType int
--outputPixelType uchar
--outputNormalized
--fixedBinaryVolume ${BRAINSCommonLib_DATA_DIRS}/SUBJ_A_small/SUBJ_A_small_brain_cut_mask.nii.gz
--movingBinaryVolume ${BRAINSCommonLib_DATA_DIRS}/SUBJ_B_small/SUBJ_B_small_brain_cut_mask.nii.gz
--fixedBinaryVolume MIDAS{SUBJ_A_small/SUBJ_A_small_brain_cut_mask.nii.gz.md5}
--movingBinaryVolume MIDAS{SUBJ_B_small/SUBJ_B_small_brain_cut_mask.nii.gz.md5}
--makeBOBF
--smoothDeformationFieldSigma 0.01
--upFieldSmoothing 1.0
......@@ -322,22 +325,22 @@ add_test(NAME ValidateVectorDiffeomorphicTest3_nii COMMAND ${VBRAINS_Demon_Warp_
)
add_test(NAME ValidateVectorDiffeomorphicTest4_nii COMMAND ${VBRAINS_Demon_Warp_TESTS}
midas_add_test(NAME ValidateVectorDiffeomorphicTest4_nii COMMAND ${VBRAINS_Demon_Warp_TESTS}
--compare
${BRAINSCommonLib_DATA_DIRS}/diffeomorphicDemons4.nii.gz
MIDAS{diffeomorphicDemons4.nii.gz.md5}
${BRAINSDemonWarp_BINARY_DIR}/vectordiffeomorphicDemons4_test.nii.gz
--compareNumberOfPixelsTolerance 340
--compareIntensityTolerance 10
VBRAINSDemonWarpTest
--movingVolume ${BRAINSCommonLib_DATA_DIRS}/SUBJ_B_small/SUBJ_B_small_T1.nii.gz,${BRAINSCommonLib_DATA_DIRS}/SUBJ_B_small/SUBJ_B_small_T1.nii.gz
--fixedVolume ${BRAINSCommonLib_DATA_DIRS}/SUBJ_A_small/SUBJ_A_small_T1.nii.gz,${BRAINSCommonLib_DATA_DIRS}/SUBJ_A_small/SUBJ_A_small_T1.nii.gz
--movingVolume MIDAS{SUBJ_B_small/SUBJ_B_small_T1.nii.gz.md5},MIDAS{SUBJ_B_small/SUBJ_B_small_T1.nii.gz.md5}
--fixedVolume MIDAS{SUBJ_A_small/SUBJ_A_small_T1.nii.gz.md5},MIDAS{SUBJ_A_small/SUBJ_A_small_T1.nii.gz.md5}
--outputVolume ${BRAINSDemonWarp_BINARY_DIR}/vectordiffeomorphicDemons4_test.nii.gz
--outputDeformationFieldVolume ${BRAINSDemonWarp_BINARY_DIR}/OutDefField.nii.gz
--inputPixelType int
--outputPixelType uchar
# --outputNormalized
--outputCheckerboardVolume ${BRAINSDemonWarp_BINARY_DIR}/output_Checkborad.nii.gz
--initializeWithDeformationField ${BRAINSCommonLib_DATA_DIRS}/InitialDeformationField.nii.gz
--initializeWithDeformationField MIDAS{InitialDeformationField.nii.gz.md5}
--smoothDeformationFieldSigma 1.5
--numberOfPyramidLevels 3
--arrayOfPyramidLevelIterations 10,5,5
......@@ -347,15 +350,15 @@ add_test(NAME ValidateVectorDiffeomorphicTest4_nii COMMAND ${VBRAINS_Demon_Warp_
--outputDisplacementFieldPrefix ${BRAINSDemonWarp_BINARY_DIR}/displacement.nii.gz
)
add_test(NAME ValidateVectorDiffeomorphicTest5_nii COMMAND ${VBRAINS_Demon_Warp_TESTS}
midas_add_test(NAME ValidateVectorDiffeomorphicTest5_nii COMMAND ${VBRAINS_Demon_Warp_TESTS}
--compare
${BRAINSCommonLib_DATA_DIRS}/diffeomorphicDemons5.nii.gz
MIDAS{diffeomorphicDemons5.nii.gz.md5}
${BRAINSDemonWarp_BINARY_DIR}/vectordiffeomorphicDemons5_test.nii.gz
--compareNumberOfPixelsTolerance 75
--compareIntensityTolerance 10
VBRAINSDemonWarpTest
--movingVolume ${BRAINSCommonLib_DATA_DIRS}/SUBJ_B_small/SUBJ_B_small_T1.nii.gz,${BRAINSCommonLib_DATA_DIRS}/SUBJ_B_small/SUBJ_B_small_T1.nii.gz,${BRAINSCommonLib_DATA_DIRS}/SUBJ_B_small/SUBJ_B_small_T1.nii.gz
--fixedVolume ${BRAINSCommonLib_DATA_DIRS}/SUBJ_A_small/SUBJ_A_small_T1.nii.gz,${BRAINSCommonLib_DATA_DIRS}/SUBJ_A_small/SUBJ_A_small_T1.nii.gz,${BRAINSCommonLib_DATA_DIRS}/SUBJ_A_small/SUBJ_A_small_T1.nii.gz
--movingVolume MIDAS{SUBJ_B_small/SUBJ_B_small_T1.nii.gz.md5},MIDAS{SUBJ_B_small/SUBJ_B_small_T1.nii.gz.md5},MIDAS{SUBJ_B_small/SUBJ_B_small_T1.nii.gz.md5}
--fixedVolume MIDAS{SUBJ_A_small/SUBJ_A_small_T1.nii.gz.md5},MIDAS{SUBJ_A_small/SUBJ_A_small_T1.nii.gz.md5},MIDAS{SUBJ_A_small/SUBJ_A_small_T1.nii.gz.md5}
--outputVolume ${BRAINSDemonWarp_BINARY_DIR}/vectordiffeomorphicDemons5_test.nii.gz
--inputPixelType short
--outputPixelType uchar
......@@ -373,22 +376,22 @@ add_test(NAME ValidateVectorDiffeomorphicTest5_nii COMMAND ${VBRAINS_Demon_Warp_
--registrationFilterType Diffeomorphic
)
add_test(NAME ValidateVectorDiffeomorphicTest6_nii COMMAND ${VBRAINS_Demon_Warp_TESTS}
midas_add_test(NAME ValidateVectorDiffeomorphicTest6_nii COMMAND ${VBRAINS_Demon_Warp_TESTS}
--compare
${BRAINSCommonLib_DATA_DIRS}/diffeomorphicDemons3.nii.gz
MIDAS{diffeomorphicDemons3.nii.gz.md5}
${BRAINSDemonWarp_BINARY_DIR}/vectordiffeomorphicDemons6_test.nii.gz
--compareNumberOfPixelsTolerance 6950
--compareIntensityTolerance 10
VBRAINSDemonWarpTest
--movingVolume ${BRAINSCommonLib_DATA_DIRS}/SUBJ_B_small/SUBJ_B_small_T1.nii.gz
--fixedVolume ${BRAINSCommonLib_DATA_DIRS}/SUBJ_A_small/SUBJ_A_small_T1.nii.gz
--movingVolume MIDAS{SUBJ_B_small/SUBJ_B_small_T1.nii.gz.md5}
--fixedVolume MIDAS{SUBJ_A_small/SUBJ_A_small_T1.nii.gz.md5}
# --outputDeformationFieldVolume ${BRAINSDemonWarp_BINARY_DIR}/OutDefField.nii.gz
--outputVolume ${BRAINSDemonWarp_BINARY_DIR}/vectordiffeomorphicDemons6_test.nii.gz
--inputPixelType int
--outputPixelType uchar
--outputNormalized
--fixedBinaryVolume ${BRAINSCommonLib_DATA_DIRS}/SUBJ_A_small/SUBJ_A_small_brain_cut_mask.nii.gz
--movingBinaryVolume ${BRAINSCommonLib_DATA_DIRS}/SUBJ_B_small/SUBJ_B_small_brain_cut_mask.nii.gz
--fixedBinaryVolume MIDAS{SUBJ_A_small/SUBJ_A_small_brain_cut_mask.nii.gz.md5}
--movingBinaryVolume MIDAS{SUBJ_B_small/SUBJ_B_small_brain_cut_mask.nii.gz.md5}
--makeBOBF
--smoothDeformationFieldSigma 0.01
--upFieldSmoothing 1.0
......@@ -404,15 +407,15 @@ add_test(NAME ValidateVectorDiffeomorphicTest6_nii COMMAND ${VBRAINS_Demon_Warp_
add_test(NAME ValidateVectorOrientedImagesTest6_nii COMMAND ${VBRAINS_Demon_Warp_TESTS}
midas_add_test(NAME ValidateVectorOrientedImagesTest6_nii COMMAND ${VBRAINS_Demon_Warp_TESTS}
--compare
${BRAINSCommonLib_DATA_DIRS}/ValidateVectorOrientedImagesTest6.nii.gz
MIDAS{ValidateVectorOrientedImagesTest6.nii.gz.md5}
${BRAINSDemonWarp_BINARY_DIR}/ValidateVectorOrientedImagesTest6.nii.gz
--compareNumberOfPixelsTolerance 50000
--compareIntensityTolerance 25
VBRAINSDemonWarpTest
--movingVolume ${BRAINSCommonLib_DATA_DIRS}/ANON0006_20_T1_sag_twisted.nii.gz,${BRAINSCommonLib_DATA_DIRS}/ANON0006_20_T1_sag_twisted.nii.gz
--fixedVolume ${BRAINSCommonLib_DATA_DIRS}/ANON0006_20_T1_dbg_splayed.nii.gz,${BRAINSCommonLib_DATA_DIRS}/ANON0006_20_T1_dbg_splayed.nii.gz
--movingVolume MIDAS{ANON0006_20_T1_sag_twisted.nii.gz.md5},MIDAS{ANON0006_20_T1_sag_twisted.nii.gz.md5}
--fixedVolume MIDAS{ANON0006_20_T1_dbg_splayed.nii.gz.md5},MIDAS{ANON0006_20_T1_dbg_splayed.nii.gz.md5}
--outputVolume ${BRAINSDemonWarp_BINARY_DIR}/ValidateVectorOrientedImagesTest6.nii.gz
--inputPixelType uchar
--outputPixelType uchar
......@@ -423,15 +426,15 @@ add_test(NAME ValidateVectorOrientedImagesTest6_nii COMMAND ${VBRAINS_Demon_Warp
--registrationFilterType Diffeomorphic
)
add_test(NAME ValidateVectorOrientedImagesTest7_nii COMMAND ${VBRAINS_Demon_Warp_TESTS}
midas_add_test(NAME ValidateVectorOrientedImagesTest7_nii COMMAND ${VBRAINS_Demon_Warp_TESTS}
--compare
${BRAINSCommonLib_DATA_DIRS}/ValidateVectorOrientedImagesTest7.nii.gz
MIDAS{ValidateVectorOrientedImagesTest7.nii.gz.md5}
${BRAINSDemonWarp_BINARY_DIR}/ValidateVectorOrientedImagesTest7.nii.gz
--compareNumberOfPixelsTolerance 51000
--compareIntensityTolerance 25
VBRAINSDemonWarpTest
--movingVolume ${BRAINSCommonLib_DATA_DIRS}/ANON0006_20_T1_sag_twisted.nii.gz,${BRAINSCommonLib_DATA_DIRS}/ANON0006_20_T1_sag_twisted.nii.gz
--fixedVolume ${BRAINSCommonLib_DATA_DIRS}/ANON0006_20_T1_dbg_splayed.nii.gz,${BRAINSCommonLib_DATA_DIRS}/ANON0006_20_T1_dbg_splayed.nii.gz
--movingVolume MIDAS{ANON0006_20_T1_sag_twisted.nii.gz.md5},MIDAS{ANON0006_20_T1_sag_twisted.nii.gz.md5}
--fixedVolume MIDAS{ANON0006_20_T1_dbg_splayed.nii.gz.md5},MIDAS{ANON0006_20_T1_dbg_splayed.nii.gz.md5}
--outputVolume ${BRAINSDemonWarp_BINARY_DIR}/ValidateVectorOrientedImagesTest7.nii.gz
--inputPixelType uchar
--outputPixelType uchar
......@@ -443,15 +446,15 @@ add_test(NAME ValidateVectorOrientedImagesTest7_nii COMMAND ${VBRAINS_Demon_Warp
--registrationFilterType Diffeomorphic
)
add_test(NAME ValidateDiffeomorphicWithAUTOMask_Test_nii COMMAND ${BRAINS_Demon_Warp_TESTS}
midas_add_test(NAME ValidateDiffeomorphicWithAUTOMask_Test_nii COMMAND ${BRAINS_Demon_Warp_TESTS}
--compare
${BRAINSCommonLib_DATA_DIRS}/diffeomorphicDemons_AutoMask.nii.gz
MIDAS{diffeomorphicDemons_AutoMask.nii.gz.md5}
${BRAINSDemonWarp_BINARY_DIR}/diffeomorphicDemonsWithAutoMask_test.nii.gz
--compareNumberOfPixelsTolerance 50
--compareIntensityTolerance 10
BRAINSDemonWarpTest
--movingVolume ${BRAINSCommonLib_DATA_DIRS}/SUBJ_B_small/SUBJ_B_small_T2.nii.gz
--fixedVolume ${BRAINSCommonLib_DATA_DIRS}/SUBJ_A_small/SUBJ_A_small_T2.nii.gz
--movingVolume MIDAS{SUBJ_B_small/SUBJ_B_small_T2.nii.gz.md5}
--fixedVolume MIDAS{SUBJ_A_small/SUBJ_A_small_T2.nii.gz.md5}
--outputVolume ${BRAINSDemonWarp_BINARY_DIR}/diffeomorphicDemonsWithAutoMask_test.nii.gz
--inputPixelType short
--outputPixelType uchar
......@@ -469,15 +472,15 @@ add_test(NAME ValidateDiffeomorphicWithAUTOMask_Test_nii COMMAND ${BRAINS_Demon_
--registrationFilterType Diffeomorphic
)
add_test(NAME ValidateDiffeomorphicWithMask_Test_nii COMMAND ${BRAINS_Demon_Warp_TESTS}
midas_add_test(NAME ValidateDiffeomorphicWithMask_Test_nii COMMAND ${BRAINS_Demon_Warp_TESTS}
--compare
${BRAINSCommonLib_DATA_DIRS}/diffeomorphicDemonsWithMask.nii.gz
MIDAS{diffeomorphicDemonsWithMask.nii.gz.md5}
${BRAINSDemonWarp_BINARY_DIR}/diffeomorphicDemonsWithMask_test.nii.gz
--compareNumberOfPixelsTolerance 50
--compareIntensityTolerance 10
BRAINSDemonWarpTest
--movingVolume ${BRAINSCommonLib_DATA_DIRS}/SUBJ_B_small/SUBJ_B_small_T2.nii.gz
--fixedVolume ${BRAINSCommonLib_DATA_DIRS}/SUBJ_A_small/SUBJ_A_small_T2.nii.gz
--movingVolume MIDAS{SUBJ_B_small/SUBJ_B_small_T2.nii.gz.md5}
--fixedVolume MIDAS{SUBJ_A_small/SUBJ_A_small_T2.nii.gz.md5}
--outputVolume ${BRAINSDemonWarp_BINARY_DIR}/diffeomorphicDemonsWithMask_test.nii.gz
--inputPixelType short
--outputPixelType uchar
......@@ -492,25 +495,25 @@ add_test(NAME ValidateDiffeomorphicWithMask_Test_nii COMMAND ${BRAINS_Demon_Warp
--minimumFixedPyramid 4,4,4
--minimumMovingPyramid 4,4,4
--maskProcessingMode ROI
--fixedBinaryVolume ${BRAINSCommonLib_DATA_DIRS}/SUBJ_A_small/SUBJ_A_small_T2_mask.nii.gz
--movingBinaryVolume ${BRAINSCommonLib_DATA_DIRS}/SUBJ_B_small/SUBJ_B_small_T2_mask.nii.gz
--fixedBinaryVolume MIDAS{SUBJ_A_small/SUBJ_A_small_T2_mask.nii.gz.md5}
--movingBinaryVolume MIDAS{SUBJ_B_small/SUBJ_B_small_T2_mask.nii.gz.md5}
--registrationFilterType Diffeomorphic
)
#Test for initial Transform
add_test(NAME ValidateInitialTransform_Test_nii COMMAND ${BRAINS_Demon_Warp_TESTS}
midas_add_test(NAME ValidateInitialTransform_Test_nii COMMAND ${BRAINS_Demon_Warp_TESTS}
--compare
${BRAINSCommonLib_DATA_DIRS}/ValidateInitialTransform_Test.nii.gz
MIDAS{ValidateInitialTransform_Test.nii.gz.md5}
${BRAINSDemonWarp_BINARY_DIR}/ValidateInitialTransform_Test.nii.gz
--compareNumberOfPixelsTolerance 20
--compareIntensityTolerance 10
BRAINSDemonWarpTest
--movingVolume ${BRAINSCommonLib_DATA_DIRS}/rotation.rescale.rigid.nii.gz
--fixedVolume ${BRAINSCommonLib_DATA_DIRS}/test.nii.gz
--movingVolume MIDAS{rotation.rescale.rigid.nii.gz.md5}
--fixedVolume MIDAS{test.nii.gz.md5}
--outputVolume ${BRAINSDemonWarp_BINARY_DIR}/ValidateInitialTransform_Test.nii.gz
--outputPixelType short
--outputDebug
--initializeWithTransform ${BRAINSCommonLib_DATA_DIRS}/BRAINSFitTest_BSplineAnteScaleRotationRescaleHeadMasks.mat
--initializeWithTransform MIDAS{BRAINSFitTest_BSplineAnteScaleRotationRescaleHeadMasks.mat.md5}
--smoothDeformationFieldSigma 0.0
--numberOfPyramidLevels 1
--arrayOfPyramidLevelIterations 1
......@@ -520,15 +523,15 @@ add_test(NAME ValidateInitialTransform_Test_nii COMMAND ${BRAINS_Demon_Warp_TEST
)
#Test for Log Domain
add_test(NAME ValidateLogDemons_Test_nii COMMAND ${BRAINS_Demon_Warp_TESTS}
midas_add_test(NAME ValidateLogDemons_Test_nii COMMAND ${BRAINS_Demon_Warp_TESTS}
--compare
${BRAINSCommonLib_DATA_DIRS}/logDemons.nii.gz
MIDAS{logDemons.nii.gz.md5}
${BRAINSDemonWarp_BINARY_DIR}/logDemons_test.nii.gz
--compareNumberOfPixelsTolerance 500
--compareIntensityTolerance 10
BRAINSDemonWarpTest
--movingVolume ${BRAINSCommonLib_DATA_DIRS}/SUBJ_B_small/SUBJ_B_small_T1.nii.gz
--fixedVolume ${BRAINSCommonLib_DATA_DIRS}/SUBJ_A_small/SUBJ_A_small_T1.nii.gz
--movingVolume MIDAS{SUBJ_B_small/SUBJ_B_small_T1.nii.gz.md5}
--fixedVolume MIDAS{SUBJ_A_small/SUBJ_A_small_T1.nii.gz.md5}
--outputVolume ${BRAINSDemonWarp_BINARY_DIR}/logDemons_test.nii.gz
--outputDebug
--histogramMatch
......@@ -542,15 +545,15 @@ add_test(NAME ValidateLogDemons_Test_nii COMMAND ${BRAINS_Demon_Warp_TESTS}
--registrationFilterType LogDemons
)
add_test(NAME ValidateSymmetricLogDemons_Test1_nii COMMAND ${BRAINS_Demon_Warp_TESTS}
midas_add_test(NAME ValidateSymmetricLogDemons_Test1_nii COMMAND ${BRAINS_Demon_Warp_TESTS}
--compare
${BRAINSCommonLib_DATA_DIRS}/symmetricLogDemons1.nii.gz
MIDAS{symmetricLogDemons1.nii.gz.md5}
${BRAINSDemonWarp_BINARY_DIR}/symmetricLogDemons_test1.nii.gz
--compareNumberOfPixelsTolerance 1300
--compareIntensityTolerance 10
BRAINSDemonWarpTest
--movingVolume ${BRAINSCommonLib_DATA_DIRS}/SUBJ_B_small/SUBJ_B_small_T1.nii.gz
--fixedVolume ${BRAINSCommonLib_DATA_DIRS}/SUBJ_A_small/SUBJ_A_small_T1.nii.gz
--movingVolume MIDAS{SUBJ_B_small/SUBJ_B_small_T1.nii.gz.md5}
--fixedVolume MIDAS{SUBJ_A_small/SUBJ_A_small_T1.nii.gz.md5}
--outputVolume ${BRAINSDemonWarp_BINARY_DIR}/symmetricLogDemons_test1.nii.gz
--outputDebug
--histogramMatch
......@@ -564,15 +567,15 @@ add_test(NAME ValidateSymmetricLogDemons_Test1_nii COMMAND ${BRAINS_Demon_Warp_T
--registrationFilterType SymmetricLogDemons
)
add_test(NAME ValidateSymmetricLogDemons_Test2_nii COMMAND ${BRAINS_Demon_Warp_TESTS}
midas_add_test(NAME ValidateSymmetricLogDemons_Test2_nii COMMAND ${BRAINS_Demon_Warp_TESTS}
--compare
${BRAINSCommonLib_DATA_DIRS}/symmetricLogDemons2.nii.gz
MIDAS{symmetricLogDemons2.nii.gz.md5}
${BRAINSDemonWarp_BINARY_DIR}/symmetricLogDemons_test2.nii.gz
--compareNumberOfPixelsTolerance 1300
--compareIntensityTolerance 10
BRAINSDemonWarpTest
--movingVolume ${BRAINSCommonLib_DATA_DIRS}/SUBJ_B_small/SUBJ_B_small_T1.nii.gz
--fixedVolume ${BRAINSCommonLib_DATA_DIRS}/SUBJ_A_small/SUBJ_A_small_T1.nii.gz
--movingVolume MIDAS{SUBJ_B_small/SUBJ_B_small_T1.nii.gz.md5}
--fixedVolume MIDAS{SUBJ_A_small/SUBJ_A_small_T1.nii.gz.md5}
--outputVolume ${BRAINSDemonWarp_BINARY_DIR}/symmetricLogDemons_test2.nii.gz
--outputDebug
--histogramMatch
......@@ -583,6 +586,6 @@ add_test(NAME ValidateSymmetricLogDemons_Test2_nii COMMAND ${BRAINS_Demon_Warp_T
--arrayOfPyramidLevelIterations 100,50,5
--minimumFixedPyramid 4,4,4
--minimumMovingPyramid 4,4,4
--initializeWithDeformationField ${BRAINSCommonLib_DATA_DIRS}/InitialDeformationField.nii.gz
--initializeWithDeformationField MIDAS{InitialDeformationField.nii.gz.md5}
--registrationFilterType SymmetricLogDemons
)
......@@ -26,9 +26,12 @@ if(COMPILE_TEST_GENERATION_PROGRAMS) ## These were programs needed to create th
endif()
endif(COMPILE_TEST_GENERATION_PROGRAMS)
include(MIDAS)
set(MIDAS_KEY_DIR "${BRAINSCommonLib_DATA_DIRS}")
set(BRAINSFitTestName BRAINSFitTest_AffineRotationMasks)
add_test(NAME ${BRAINSFitTestName} COMMAND ${LAUNCH_EXE} $<TARGET_FILE:BRAINSFitTest>
--compare ${BRAINSCommonLib_DATA_DIRS}/${BRAINSFitTestName}.result.nii.gz
midas_add_test(NAME ${BRAINSFitTestName} COMMAND ${LAUNCH_EXE} $<TARGET_FILE:BRAINSFitTest>
--compare MIDAS{${BRAINSFitTestName}.result.nii.gz.md5}
${BRAINSFit_BINARY_DIR}/Testing/${BRAINSFitTestName}.test.nii.gz
--compareIntensityTolerance 7
--compareRadiusTolerance 0
......@@ -43,20 +46,20 @@ add_test(NAME ${BRAINSFitTestName} COMMAND ${LAUNCH_EXE} $<TARGET_FILE:BRAINSFit
--minimumStepLength 0.001
--outputVolumePixelType uchar
--transformType Affine
--initialTransform ${BRAINSCommonLib_DATA_DIRS}/BRAINSFitTest_Initializer_RigidRotationNoMasks.mat
--initialTransform MIDAS{BRAINSFitTest_Initializer_RigidRotationNoMasks.mat.md5}
--maskProcessingMode ROI
--fixedVolume ${BRAINSCommonLib_DATA_DIRS}/test.nii.gz
--fixedBinaryVolume ${BRAINSCommonLib_DATA_DIRS}/test.mask
--movingVolume ${BRAINSCommonLib_DATA_DIRS}/rotation.test.nii.gz
--movingBinaryVolume ${BRAINSCommonLib_DATA_DIRS}/rotation.test.mask
--fixedVolume MIDAS{test.nii.gz.md5}
--fixedBinaryVolume MIDAS{test.mask.md5}
--movingVolume MIDAS{rotation.test.nii.gz.md5}
--movingBinaryVolume MIDAS{rotation.test.mask.md5}