- 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 <QFileInfo>
#include <QMessageBox>
{
Ui_vvToolResample::setupUi(mToolWidget);
+ // mFilter = clitk::ResampleImageGenericFilter::New();
mFilter = clitk::ImageResampleGenericFilter::New();
mLastError ="";
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; i<mDimension; i++) {
+ mArgsInfo.size = mOutputSize;
+ */
+
mFilter->SetOutputSize(mOutputSize);
mFilter->SetOutputSpacing(mOutputSpacing);
mFilter->SetInterpolationName(interpolationComboBox->currentText().toLower().toStdString());
#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 <QtDesigner/QDesignerExportWidget>
#include <QTreeWidget>
Ui::vvToolResample ui;
vvImage::Pointer mOutput;
clitk::ImageResampleGenericFilter::Pointer mFilter;
+ //clitk::ResampleImageGenericFilter::Pointer mFilter;
vvSlicerManager* mCurrentSlicerManager;
vvImage::Pointer mCurrentImage;