Skip to content

Commit

Permalink
ENH: Add tibial_cartilage_cropped test case in C++ and Python
Browse files Browse the repository at this point in the history
  • Loading branch information
dzenanz committed Nov 29, 2024
1 parent 4e18770 commit 9496348
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 0 deletions.
13 changes: 13 additions & 0 deletions test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -316,6 +316,19 @@ add_test(
100 # Maximum number of steps
)

add_test(
NAME Cuberille_tibial_cartilage_cropped
COMMAND CuberilleTestDriver CuberilleTest01
${DATA_DIR}/tibial_cartilage_cropped.nrrd
${ITK_TEST_OUTPUT_DIR}/tibial_cartilage_cropped.vtk
0.5 # Iso-surface value
20036 # Expected number of points
40048 # Expected number of cells
1 # Generate triangle faces
1 # Project vertices to iso-surface
0.05 # Surface distance threshold
)

#add_test(
# Cuberille_Engine_01
# CuberilleTest01
Expand Down
Binary file added test/Input/tibial_cartilage_cropped.nrrd
Binary file not shown.
8 changes: 8 additions & 0 deletions wrapping/test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,14 @@ set(test_input_dir ${CMAKE_CURRENT_SOURCE_DIR}/../../test/Input)

list(FIND ITK_WRAP_IMAGE_DIMS 3 wrap_3_index)
if(wrap_3_index GREATER -1)
itk_python_add_test(NAME Cuberille_tibial_cartilage_cropped_python
TEST_DRIVER_ARGS
COMMAND cuberille_test.py
DATA{${test_input_dir}/tibial_cartilage_cropped.nrrd}
${ITK_TEST_OUTPUT_DIR}/tibial_cartilage_cropped.vtk
0.5 # iso-surface value
)

itk_python_add_test(NAME Cuberille_blob0_python
TEST_DRIVER_ARGS
COMMAND cuberille_test.py
Expand Down

0 comments on commit 9496348

Please sign in to comment.