From 2105396b40b7f240ab70f6d4db07fc9e6d80d5b8 Mon Sep 17 00:00:00 2001 From: Nick Tustison Date: Thu, 5 Jan 2023 19:56:18 -0800 Subject: [PATCH] ENH: Change collapse strategy. --- ants/lib/LOCAL_sliceImage.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ants/lib/LOCAL_sliceImage.cxx b/ants/lib/LOCAL_sliceImage.cxx index 2bdfbcaa..59b2d9a4 100644 --- a/ants/lib/LOCAL_sliceImage.cxx +++ b/ants/lib/LOCAL_sliceImage.cxx @@ -33,7 +33,7 @@ py::capsule sliceImage( py::capsule antsImage, int plane, int slice) filter->SetExtractionRegion( desiredRegion ); filter->SetInput( itkImage ); - filter->SetDirectionCollapseToSubmatrix(); + filter->SetDirectionCollapseToGuess(); filter->Update(); return wrap( filter->GetOutput() );