X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=itk%2FclitkExtractSliceFilter.txx;h=43874d0265f60cd70b11c5916a5b3c5bea85a74c;hb=e6e296da58762731b5ea8bc019fd2741f375b43e;hp=e9c4aebb4ef33ed7273a48863b19ad109766ef42;hpb=14f79c6048942f31c8ec28831e8422f99debf54e;p=clitk.git diff --git a/itk/clitkExtractSliceFilter.txx b/itk/clitkExtractSliceFilter.txx index e9c4aeb..43874d0 100644 --- a/itk/clitkExtractSliceFilter.txx +++ b/itk/clitkExtractSliceFilter.txx @@ -3,7 +3,7 @@ Authors belong to: - University of LYON http://www.universite-lyon.fr/ - - Léon Bérard cancer center http://oncora1.lyon.fnclcc.fr + - Léon Bérard cancer center http://www.centreleonberard.fr - CREATIS CNRS laboratory http://www.creatis.insa-lyon.fr This software is distributed WITHOUT ANY WARRANTY; without even @@ -14,7 +14,7 @@ - BSD See included LICENSE.txt file - CeCILL-B http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html - ======================================================================-====*/ + ===========================================================================**/ // clitk #include "clitkCommon.h" @@ -118,6 +118,9 @@ GenerateData() { m_index[GetDirection()] = start + i; m_region.SetIndex(m_index); extract->SetExtractionRegion(m_region); +#if ITK_VERSION_MAJOR == 4 + extract->SetDirectionCollapseToSubmatrix(); +#endif extract->Update(); SetNthOutput(i, extract->GetOutput()); }