diff --git a/Applications/SlicerApp/Testing/Python/SlicerBoundsTest.py b/Applications/SlicerApp/Testing/Python/SlicerBoundsTest.py index cf9518c4e17..3109da7bdaa 100644 --- a/Applications/SlicerApp/Testing/Python/SlicerBoundsTest.py +++ b/Applications/SlicerApp/Testing/Python/SlicerBoundsTest.py @@ -175,7 +175,7 @@ def test_Segmentation(self): # Testing bounds = list(range(6)) segmentationNode.GetRASBounds(bounds) - untransformedBounds = [-65.4164152220677, 237.23434621664234, -305.4495706784099, 289.7072339384947, -217.46321203583187, 213.68731403607347] + untransformedBounds = [-65.41641522206768, 237.23434621664228, -303.75878430165756, 289.7072339384945, -217.463212035832, 213.6873140360733] self.assertListAlmostEquals(bounds, untransformedBounds) segmentationNode.GetBounds(bounds) @@ -189,7 +189,7 @@ def test_Segmentation(self): transformNode.ApplyTransform(transform) segmentationNode.SetAndObserveTransformNodeID(transformNode.GetID()) - transformedBounds = [-690.2701685073098, 970.3186946284741, -744.3124542486084, 1018.260811721817, -2183.4639807718822, 2144.107746300856] + transformedBounds = [-690.2701685073093, 966.991271911892, -740.4842166018336, 1018.2608117218165, -2183.4229718546612, 2144.1077463008546] segmentationNode.GetRASBounds(bounds) self.assertListAlmostEquals(bounds, transformedBounds) diff --git a/Libs/vtkSegmentationCore/Testing/vtkSegmentationTest1.cxx b/Libs/vtkSegmentationCore/Testing/vtkSegmentationTest1.cxx index 2837ea59fce..796b25cc519 100644 --- a/Libs/vtkSegmentationCore/Testing/vtkSegmentationTest1.cxx +++ b/Libs/vtkSegmentationCore/Testing/vtkSegmentationTest1.cxx @@ -88,11 +88,11 @@ int vtkSegmentationTest1(int vtkNotUsed(argc), char* vtkNotUsed(argv)[]) } std::string defaultGeometryString = vtkSegmentationConverter::SerializeImageGeometry(defaultImageData); std::string expectedDefaultGeometryString = - "0.235971522108411;0;0;20.7521629333496;" - "0;0.235971522108411;0;20.7521629333496;" - "0;0;0.235971522108411;20;" + "0.23597152210841135;0;0;20.75216293334961;" + "0;0.23597152210841135;0;20.75216293334961;" + "0;0;0.23597152210841135;20;" "0;0;0;1;" - "0;248;0;248;0;255;"; + "0;248;0;248;-1;255;"; if (defaultGeometryString != expectedDefaultGeometryString) { std::cerr << __LINE__ << ": Default reference geometry mismatch. Expected: " @@ -107,7 +107,7 @@ int vtkSegmentationTest1(int vtkNotUsed(argc), char* vtkNotUsed(argv)[]) std::cerr << __LINE__ << ": Binary labelmap converted without reference geometry has no foreground voxels!" << std::endl; return EXIT_FAILURE; } - int expectedVoxelCount = 15872256; + int expectedVoxelCount = 15934257; if (imageAccumulate->GetVoxelCount() != expectedVoxelCount) { std::cerr << __LINE__ << ": Binary labelmap voxel count mismatch after converting without reference geometry."