Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
ImageResampler.cpp File Reference
#include "mitkCommandLineParser.h"
#include <mitkIOUtil.h>
#include <mitkRegistrationWrapper.h>
#include <mitkImage.h>
#include <mitkImageCast.h>
#include <mitkITKImageImport.h>
#include <mitkImageTimeSelector.h>
#include <mitkDiffusionPropertyHelper.h>
#include <mitkProperties.h>
#include <itksys/SystemTools.hxx>
#include <itkDirectory.h>
#include "itkLinearInterpolateImageFunction.h"
#include "itkWindowedSincInterpolateImageFunction.h"
#include "itkNearestNeighborInterpolateImageFunction.h"
#include "itkIdentityTransform.h"
#include "itkResampleImageFilter.h"
#include "itkResampleDwiImageFilter.h"

Go to the source code of this file.

Typedefs

typedef itk::Image< double, 3 > InputImageType
 
typedef itk::Image< unsigned char, 3 > BinaryImageType
 

Functions

static mitk::Image::Pointer TransformToReference (mitk::Image *reference, mitk::Image *moving, bool sincInterpol=false, bool nn=false)
 
static std::vector< std::string > & split (const std::string &s, char delim, std::vector< std::string > &elems)
 
static std::vector< std::string > split (const std::string &s, char delim)
 
static mitk::Image::Pointer ResampleBySpacing (mitk::Image *input, float *spacing, bool useLinInt=true, bool useNN=false)
 
static void SaveImage (std::string fileName, mitk::Image *image, std::string fileType)
 Save images according to file type. More...
 
mitk::Image::Pointer ResampleDWIbySpacing (mitk::Image::Pointer input, float *spacing, bool useLinInt=true)
 
int main (int argc, char *argv[])
 

Typedef Documentation

typedef itk::Image<unsigned char, 3> BinaryImageType

Definition at line 42 of file ImageResampler.cpp.

typedef itk::Image<double, 3> InputImageType

Definition at line 41 of file ImageResampler.cpp.

Function Documentation

static mitk::Image::Pointer ResampleBySpacing ( mitk::Image input,
float *  spacing,
bool  useLinInt = true,
bool  useNN = false 
)
static

1) Resampling

1) Resampling

Definition at line 137 of file ImageResampler.cpp.

References mitk::CastToItkImage(), mitk::GrabItkImageMemory(), mitk::New(), and mitk::Image::New().

Referenced by main().

static void SaveImage ( std::string  fileName,
mitk::Image image,
std::string  fileType 
)
static

Save images according to file type.

Definition at line 285 of file ImageResampler.cpp.

References mitk::IOUtil::Save().

static std::vector<std::string> split ( const std::string &  s,
char  delim 
)
static

Definition at line 130 of file ImageResampler.cpp.

References split().

static mitk::Image::Pointer TransformToReference ( mitk::Image reference,
mitk::Image moving,
bool  sincInterpol = false,
bool  nn = false 
)
static

Definition at line 45 of file ImageResampler.cpp.

References mitk::CastToItkImage(), mitk::GrabItkImageMemory(), mitk::New(), and mitk::Image::New().

Referenced by main().