X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=segmentation%2FclitkFillMaskFilter.txx;h=7d2369cdf9839eb317ed0ec26b747eca351e3855;hb=d7f456d86ca398a89ccf9de43ab68a2b50b8ca1f;hp=70b481398d42298cedfd62e6841f5da7d15e11d2;hpb=c1fb4e570939d49098c59e151711822f19bdba10;p=clitk.git diff --git a/segmentation/clitkFillMaskFilter.txx b/segmentation/clitkFillMaskFilter.txx index 70b4813..7d2369c 100644 --- a/segmentation/clitkFillMaskFilter.txx +++ b/segmentation/clitkFillMaskFilter.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 - ======================================================================-====*/ + ===========================================================================**/ #ifndef CLITKFILLMASKFILTER_TXX #define CLITKFILLMASKFILTER_TXX @@ -141,6 +141,9 @@ GenerateData() start2D[m_Directions[i]]=sliceIndex; desiredRegion.SetIndex( start2D ); extractFilter->SetExtractionRegion( desiredRegion ); +#if ITK_VERSION_MAJOR == 4 + extractFilter->SetDirectionCollapseToSubmatrix(); +#endif extractFilter->Update( ); typename ImageSliceType::Pointer slice= extractFilter->GetOutput();