Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
mitkVtkImageOverwrite.cpp File Reference
#include "mitkVtkImageOverwrite.h"
#include "vtkDataSetAttributes.h"
#include "vtkGarbageCollector.h"
#include "vtkImageData.h"
#include "vtkImageStencilData.h"
#include "vtkInformation.h"
#include "vtkInformationVector.h"
#include "vtkMath.h"
#include "vtkObjectFactory.h"
#include "vtkStreamingDemandDrivenPipeline.h"
#include "vtkTransform.h"
#include "vtkTemplateAliasMacro.h"
#include <float.h>
#include <limits.h>
#include <math.h>

Go to the source code of this file.

Macros

#define VTK_USE_INT64
 
#define VTK_USE_UINT64
 
#define VTK_RESLICE_BACKGROUND
 
#define VTK_RESLICE_WRAP
 
#define VTK_RESLICE_MIRROR
 
#define VTK_RESLICE_BORDER
 
#define VTK_RESLICE_NULL
 

Functions

 vtkStandardNewMacro (mitkVtkImageOverwrite)
 
template<class F >
int vtkResliceFloor (double x, F &f)
 
int vtkResliceRound (double x)
 
int vtkInterpolateWrap (int num, int range)
 
int vtkInterpolateMirror (int num, int range)
 
int vtkInterpolateBorder (int &inIdX0, int &inIdX1, int inExtX, double fx)
 
int vtkInterpolateBorderCheck (int inIdX0, int inIdX1, int inExtX, double fx)
 
template<class F , class T >
static int vtkNearestNeighborInterpolation (T *&outPtr, const T *inPtr, const int inExt[6], const vtkIdType inInc[3], int numscalars, const F point[3], int mode, const T *background, mitkVtkImageOverwrite *self)
 
template<class F >
static void vtkGetResliceInterpFunc (mitkVtkImageOverwrite *self, int(**interpolate)(void *&outPtr, const void *inPtr, const int inExt[6], const vtkIdType inInc[3], int numscalars, const F point[3], int mode, const void *background, mitkVtkImageOverwrite *self))
 
static void vtkGetSetPixelsFunc (mitkVtkImageOverwrite *self, void(**setpixels)(void *&out, const void *in, int numscalars, int n))
 
template<class T >
static void vtkAllocBackgroundPixelT (mitkVtkImageOverwrite *self, T **background_ptr, int numComponents)
 
static void vtkAllocBackgroundPixel (mitkVtkImageOverwrite *self, void **rval, int numComponents)
 
static void vtkFreeBackgroundPixel (mitkVtkImageOverwrite *self, void **rval)
 
static int vtkResliceGetNextExtent (vtkImageStencilData *stencil, int &r1, int &r2, int rmin, int rmax, int yIdx, int zIdx, void *&outPtr, void *background, int numscalars, void(*setpixels)(void *&out, const void *in, int numscalars, int n), int &iter)
 
static void vtkImageResliceClearExecute (mitkVtkImageOverwrite *self, vtkImageData *, void *, vtkImageData *outData, void *outPtr, int outExt[6], int id)
 
static void vtkImageResliceExecute (mitkVtkImageOverwrite *self, vtkImageData *inData, void *inPtr, vtkImageData *outData, void *outPtr, int outExt[6], int id)
 

Macro Definition Documentation

#define VTK_RESLICE_BACKGROUND
#define VTK_RESLICE_BORDER
#define VTK_RESLICE_MIRROR
#define VTK_RESLICE_NULL

Definition at line 128 of file mitkVtkImageOverwrite.cpp.

#define VTK_RESLICE_WRAP
#define VTK_USE_INT64

Definition at line 47 of file mitkVtkImageOverwrite.cpp.

#define VTK_USE_UINT64

Definition at line 49 of file mitkVtkImageOverwrite.cpp.

Function Documentation

static void vtkAllocBackgroundPixel ( mitkVtkImageOverwrite self,
void **  rval,
int  numComponents 
)
static
template<class T >
static void vtkAllocBackgroundPixelT ( mitkVtkImageOverwrite self,
T **  background_ptr,
int  numComponents 
)
static

Definition at line 550 of file mitkVtkImageOverwrite.cpp.

References background.

Referenced by vtkAllocBackgroundPixel().

static void vtkFreeBackgroundPixel ( mitkVtkImageOverwrite self,
void **  rval 
)
static
template<class F >
static void vtkGetResliceInterpFunc ( mitkVtkImageOverwrite self,
int(**)(void *&outPtr, const void *inPtr, const int inExt[6], const vtkIdType inInc[3], int numscalars, const F point[3], int mode, const void *background, mitkVtkImageOverwrite *self)  interpolate 
)
static

Definition at line 453 of file mitkVtkImageOverwrite.cpp.

References vtkNearestNeighborInterpolation().

Referenced by vtkImageResliceExecute().

static void vtkGetSetPixelsFunc ( mitkVtkImageOverwrite self,
void(**)(void *&out, const void *in, int numscalars, int n)  setpixels 
)
static
static void vtkImageResliceClearExecute ( mitkVtkImageOverwrite self,
vtkImageData *  ,
void *  ,
vtkImageData *  outData,
void *  outPtr,
int  outExt[6],
int  id 
)
static
static void vtkImageResliceExecute ( mitkVtkImageOverwrite self,
vtkImageData *  inData,
void *  inPtr,
vtkImageData *  outData,
void *  outPtr,
int  outExt[6],
int  id 
)
static
int vtkInterpolateBorder ( int &  inIdX0,
int &  inIdX1,
int  inExtX,
double  fx 
)
inline

Definition at line 347 of file mitkVtkImageOverwrite.cpp.

int vtkInterpolateBorderCheck ( int  inIdX0,
int  inIdX1,
int  inExtX,
double  fx 
)
inline

Definition at line 367 of file mitkVtkImageOverwrite.cpp.

int vtkInterpolateMirror ( int  num,
int  range 
)
inline

Definition at line 328 of file mitkVtkImageOverwrite.cpp.

Referenced by vtkNearestNeighborInterpolation().

int vtkInterpolateWrap ( int  num,
int  range 
)
inline

Definition at line 316 of file mitkVtkImageOverwrite.cpp.

Referenced by vtkNearestNeighborInterpolation().

template<class F , class T >
static int vtkNearestNeighborInterpolation ( T *&  outPtr,
const T *  inPtr,
const int  inExt[6],
const vtkIdType  inInc[3],
int  numscalars,
const F  point[3],
int  mode,
const T *  background,
mitkVtkImageOverwrite self 
)
static
template<class F >
int vtkResliceFloor ( double  x,
F &  f 
)
inline

Definition at line 61 of file mitkVtkImageOverwrite.cpp.

static int vtkResliceGetNextExtent ( vtkImageStencilData *  stencil,
int &  r1,
int &  r2,
int  rmin,
int  rmax,
int  yIdx,
int  zIdx,
void *&  outPtr,
void *  background,
int  numscalars,
void(*)(void *&out, const void *in, int numscalars, int n)  setpixels,
int &  iter 
)
static

Definition at line 588 of file mitkVtkImageOverwrite.cpp.

Referenced by vtkImageResliceExecute().

int vtkResliceRound ( double  x)
inline

Definition at line 89 of file mitkVtkImageOverwrite.cpp.

Referenced by vtkNearestNeighborInterpolation().

vtkStandardNewMacro ( mitkVtkImageOverwrite  )