Skip to content

Commit 8635e02

Browse files
committed
ENH: Add 0.1 iso-value for tibial_cartilage_cropped test case
The number of points is unstable, varying from 526 to 532.
1 parent d06f8f0 commit 8635e02

File tree

2 files changed

+17
-4
lines changed

2 files changed

+17
-4
lines changed

test/CMakeLists.txt

+16-3
Original file line numberDiff line numberDiff line change
@@ -317,13 +317,26 @@ add_test(
317317
)
318318

319319
add_test(
320-
NAME Cuberille_tibial_cartilage_cropped
320+
NAME Cuberille_tibial_cartilage_cropped_0.1
321+
COMMAND CuberilleTestDriver CuberilleTest01
322+
${DATA_DIR}/tibial_cartilage_cropped.nrrd
323+
${ITK_TEST_OUTPUT_DIR}/tibial_cartilage_cropped.vtk
324+
0.1 # Iso-surface value
325+
526 # Expected number of points
326+
938 # Expected number of cells
327+
1 # Generate triangle faces
328+
1 # Project vertices to iso-surface
329+
0.05 # Surface distance threshold
330+
)
331+
332+
add_test(
333+
NAME Cuberille_tibial_cartilage_cropped_0.5
321334
COMMAND CuberilleTestDriver CuberilleTest01
322335
${DATA_DIR}/tibial_cartilage_cropped.nrrd
323336
${ITK_TEST_OUTPUT_DIR}/tibial_cartilage_cropped.vtk
324337
0.5 # Iso-surface value
325-
20036 # Expected number of points
326-
40048 # Expected number of cells
338+
0 # Expected number of points
339+
0 # Expected number of cells
327340
1 # Generate triangle faces
328341
1 # Project vertices to iso-surface
329342
0.05 # Surface distance threshold

test/CuberilleTest01.cxx

+1-1
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ CuberilleTest01(int argc, char * argv[])
255255
{
256256

257257
constexpr unsigned int Dimension = 3;
258-
using PixelType = double; // unsigned char;
258+
using PixelType = float;
259259
using CoordinateType = double;
260260
using QEMeshType = itk::QuadEdgeMesh<CoordinateType, Dimension>;
261261
using MeshType = itk::Mesh<CoordinateType, Dimension>;

0 commit comments

Comments
 (0)