X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=PackRecalage%2Fsrc%2FbbPackRecalageResampleBox.cxx;h=2dd312603e16ac34898b6af1d383e6173e45ea9c;hb=refs%2Fheads%2Fvtk7itk4wx3;hp=d4d4f78e3f49e6fd1d99ecd7d54b62c81aaf8997;hpb=73f77fd5de4f2a23dc595e8e7017dd9b586dddcc;p=creaRigidRegistration.git diff --git a/PackRecalage/src/bbPackRecalageResampleBox.cxx b/PackRecalage/src/bbPackRecalageResampleBox.cxx index d4d4f78..2dd3126 100644 --- a/PackRecalage/src/bbPackRecalageResampleBox.cxx +++ b/PackRecalage/src/bbPackRecalageResampleBox.cxx @@ -36,7 +36,13 @@ void ResampleBox::Process() if(bbGetInputIn() != NULL && bbGetInputFactor() != 0) { double factor = bbGetInputFactor(); +//EED 2017-01-01 Migration VTK7 +#if VTK_MAJOR_VERSION <= 5 resample->SetInput(bbGetInputIn()); +#else + resample->SetInputData(bbGetInputIn()); +#endif + resample->SetAxisMagnificationFactor(0, factor); resample->SetAxisMagnificationFactor(1, factor); resample->SetAxisMagnificationFactor(2, factor);