1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53
|
itk_module_test()
set(ITKVideoIOTests
itkVideoFileReaderWriterTest.cxx
itkFileListVideoIOTest.cxx
itkFileListVideoIOFactoryTest.cxx
)
CreateTestDriver(ITKVideoIO
"${ITKVideoIO-Test_LIBRARIES}"
"${ITKVideoIOTests}"
)
# VideoFileRederWriterTest:
itk_add_test(
NAME VideoFileReaderWriterTest
COMMAND ITKVideoIOTestDriver
itkVideoFileReaderWriterTest
DATA{Input/frame0.jpg}
DATA{Input/frame1.jpg}
DATA{Input/frame2.jpg}
DATA{Input/frame3.jpg}
DATA{Input/frame4.jpg}
"${ITK_TEST_OUTPUT_DIR}/frame0.png,${ITK_TEST_OUTPUT_DIR}/frame1.png,${ITK_TEST_OUTPUT_DIR}/frame2.png,${ITK_TEST_OUTPUT_DIR}/frame3.png,${ITK_TEST_OUTPUT_DIR}/frame4.png"
)
# FileListVideoIO:
itk_add_test(
NAME FileListVideoIOTest
COMMAND ITKVideoIOTestDriver
itkFileListVideoIOTest
DATA{Input/frame0.jpg}
DATA{Input/frame1.jpg}
DATA{Input/frame2.jpg}
DATA{Input/frame3.jpg}
DATA{Input/frame4.jpg}
${ITKVideo_Data_DIR}/Input/TestParameters.txt
"${ITK_TEST_OUTPUT_DIR}/filelistvideoio_frame0.png,${ITK_TEST_OUTPUT_DIR}/filelistvideoio_frame1.png,${ITK_TEST_OUTPUT_DIR}/filelistvideoio_frame2.png,${ITK_TEST_OUTPUT_DIR}/filelistvideoio_frame3.png,${ITK_TEST_OUTPUT_DIR}/filelistvideoio_frame4.png"
${ITK_TEST_OUTPUT_DIR}/FileListVideoIOTest_CameraOut.mha
320 240 5 1)
# FileListVideoIOFactory:
itk_add_test(
NAME FileListVideoIOFactoryTest
COMMAND ITKVideoIOTestDriver
itkFileListVideoIOFactoryTest
DATA{Input/frame0.jpg}
DATA{Input/frame1.jpg}
DATA{Input/frame2.jpg}
DATA{Input/frame3.jpg}
DATA{Input/frame4.jpg}
"${ITK_TEST_OUTPUT_DIR}/filelistfactory_frame0.png,${ITK_TEST_OUTPUT_DIR}/filelistfactory_frame1.png,${ITK_TEST_OUTPUT_DIR}/filelistfactory_frame2.png,${ITK_TEST_OUTPUT_DIR}/filelistfactory_frame3.png,${ITK_TEST_OUTPUT_DIR}/filelistfactory_frame4.png"
0)
|