From: dsarrut Date: Fri, 23 Jul 2010 14:14:11 +0000 (+0000) Subject: cosmetic X-Git-Tag: v1.2.0~485 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=9e24ff04c0d519f0a82ebd7ba9f0b15bf9c7f297;p=clitk.git cosmetic --- diff --git a/vv/vvToolResample.cxx b/vv/vvToolResample.cxx index 403775e..03ed9cb 100644 --- a/vv/vvToolResample.cxx +++ b/vv/vvToolResample.cxx @@ -16,10 +16,12 @@ - CeCILL-B http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html ======================================================================-====*/ +// vv #include "vvToolResample.h" #include "vvSlicer.h" #include "vvToolCreator.h" +// qt #include #include @@ -35,6 +37,7 @@ vvToolResample::vvToolResample(vvMainWindowBase * parent, Qt::WindowFlags f): { Ui_vvToolResample::setupUi(mToolWidget); + // mFilter = clitk::ResampleImageGenericFilter::New(); mFilter = clitk::ImageResampleGenericFilter::New(); mLastError =""; @@ -458,6 +461,15 @@ void vvToolResample::apply() if (mDimension > 2) sigma.push_back(zGaussianLineEdit->text().toDouble()); if (mDimension == 4) sigma.push_back(0.01); //FIXME Don't filter along the temporal direction + /* + // Build ArgsInfo + typename clitk::ResampleImageGenericFilter::ArgsInfoType mArgsInfo; + mArgsInfo.size_given = mDimension; + mArgsInfo.size_arg = mDimension; + for(int i=0; iSetOutputSize(mOutputSize); mFilter->SetOutputSpacing(mOutputSpacing); mFilter->SetInterpolationName(interpolationComboBox->currentText().toLower().toStdString()); diff --git a/vv/vvToolResample.h b/vv/vvToolResample.h index b12e940..c93f0cc 100644 --- a/vv/vvToolResample.h +++ b/vv/vvToolResample.h @@ -19,14 +19,18 @@ #ifndef _VVTOOLRESAMPLE_H #define _VVTOOLRESAMPLE_H -#include "ui_vvToolResample.h" -#include "clitkCommon.h" +// clitk #include "clitkImageResampleGenericFilter.h" +//#include "clitkResampleImageGenericFilter.h" + +// vv +#include "ui_vvToolResample.h" #include "vvImage.h" #include "vvSlicerManager.h" #include "vvToolWidgetBase.h" #include "vvToolBase.h" +// qt #include #include @@ -67,6 +71,7 @@ protected: Ui::vvToolResample ui; vvImage::Pointer mOutput; clitk::ImageResampleGenericFilter::Pointer mFilter; + //clitk::ResampleImageGenericFilter::Pointer mFilter; vvSlicerManager* mCurrentSlicerManager; vvImage::Pointer mCurrentImage;