X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=common%2FvvFromITK.h;h=c089816ad785085026eb9a594ef3ad6d476df808;hb=fccfc9b0a6df74011a09eebe42ee50fc57e764de;hp=bd075731304eeb0ed735093edef484d45e3541d5;hpb=a93034ff4e0f345e9d633bcb284b5ab5c7fd1bea;p=clitk.git diff --git a/common/vvFromITK.h b/common/vvFromITK.h index bd07573..c089816 100644 --- a/common/vvFromITK.h +++ b/common/vvFromITK.h @@ -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 VVIMAGEFROMITK_H #define VVIMAGEFROMITK_H @@ -54,7 +54,9 @@ template vvImage::Pointer vvImageFromITK(type extractedRegion.SetIndex(start); typename FilterType::Pointer filter = FilterType::New(); +#if ITK_VERSION_MAJOR == 4 filter->SetDirectionCollapseToSubmatrix(); +#endif filter->SetExtractionRegion(extractedRegion); filter->SetInput(input); filter->ReleaseDataFlagOn();