Vous avez reçu un message "Your GitLab account has been locked ..." ? Pas d'inquiétude : lisez cet article https://docs.gricad-pages.univ-grenoble-alpes.fr/help/unlock/

CMakeLists.txt 3.49 KB
Newer Older
1
# itkimage component just needs to use the component_extension macro
2
3
4
5
6
7
camitk_extension(COMPONENT_EXTENSION 
                 NEEDS_ITK 
                 CEP_NAME CEP_IMAGING
                 CXX_FLAGS "-w"
                 DEFINES _SCL_SECURE_NO_WARNINGS # to remove Windows MSVC warnings
                 DESCRIPTION "This component allows CamiTK to handle basic ITK format images."
8
                 ENABLE_AUTO_TEST
9
)
10

Emmanuel Promayon's avatar
Emmanuel Promayon committed
11
12
13
14
# --------------------------------
# --- Specific test management ---
# --------------------------------

15
16
camitk_disable_tests(TESTS component-itkimage-level3-3
                           component-itkimage-level3-9 
17
18
19
20
                           component-itkimage-level3-10
                           component-itkimage-level3-19
                           component-itkimage-level3-20
                     REASON " Test failure due to ITK exception.
21
22
23
24
25
26
   For now disable these tests until this can be dealt with (if possible)
   For input file: biorad.pic, cthead1.lsm, BigEndian.spr, LittleEndianZ.hdr and LittleEndianZ.img.gz
   When applying action Gradient Magnitude With Smoothing, the following exception is raised:
   \"camitk-testcomponents aborted by std exception: /usr/include/ITK-4.10/itkRecursiveSeparableImageFilter.hxx:245:
   itk::ERROR: RecursiveGaussianImageFilter(0x55b3b21bc700): The number of pixels along direction 2 is less than 4. 
   This filter requires a minimum of four pixels along the dimension to be processed...\""
27
)
28

29
30
31
32
33
34
# TODO confirm diagnostic: check why BigEndianCompressed.img.gz, LittleEndianCompressed.img.gz and minimal.nii.gz does not work on Windows (maybe because of double suffix .im.gz?)
camitk_tests_requirement(TESTS component-itkimage-level3-6 
                               component-itkimage-level3-16 
                               component-itkimage-level3-28
                         REQUIRES "NOT WIN32"
                         REASON "WIN32 failure (probably) due to double suffix .im.gz or .nii.gz
35
   For input file: BigEndianCompressed.img.gz, LittleEndianCompressed.img.gz and minimal.nii.gz"
36
)
37

38
39
40
41
42
43
44
45
46
camitk_tests_requirement(TESTS component-itkimage-level3-1
                               component-itkimage-level3-4
                               component-itkimage-level3-7
                               component-itkimage-level3-11
                               component-itkimage-level3-13
                               component-itkimage-level3-15
                               component-itkimage-level3-17
                               component-itkimage-level3-21
                               component-itkimage-level3-28
47
                         REQUIRES "${ITK_VERSION} VERSION_LESS 4.12"
48
                         REASON " ITK version is greater than 4.11
49
50
   The default test files are written using the currently supported version of ITK (ITK 4.11).
   This test will therefore fail when comparing the input to the output if another version of ITK is used."
51
)
52

53
54
55
56
# Additional test for SDK actions: this will add auto test for the given actions using the itkimage component
camitk_additional_action_test(ACTION_EXTENSIONS cropvolume imagelut imageresampling multipicking pixelcolorchanger reconstruction reorientimage showin3d volumerendering
                              TEST_FILES BigEndian.hdr BigEndian.img BigEndianCompressed1.hdr BigEndianCompressed1.img biorad.pic cthead1.lsm LittleEndian1.hdr LittleEndian1.img LittleEndianCompressed1.hdr LittleEndianCompressed1.img LittleEndianZ1.hdr mini-complex-slow1.nrrd mini-ten-nomask-slow1.nrrd mini-vector-slow1.nrrd ramp1.gipl
)