Go to the documentation of this file.
57 #ifndef vtkImageReslice_h
58 #define vtkImageReslice_h
65 #define VTK_RESLICE_NEAREST VTK_NEAREST_INTERPOLATION
66 #define VTK_RESLICE_LINEAR VTK_LINEAR_INTERPOLATION
67 #define VTK_RESLICE_CUBIC VTK_CUBIC_INTERPOLATION
107 double y0,
double y1,
double y2,
108 double z0,
double z1,
double z2);
112 this->SetResliceAxesDirectionCosines(
x[0],
x[1],
x[2],
114 z[0],
z[1],
z[2]); };
116 this->SetResliceAxesDirectionCosines(xyz[0], xyz[1], xyz[2],
117 xyz[3], xyz[4], xyz[5],
118 xyz[6], xyz[7], xyz[8]); };
121 this->GetResliceAxesDirectionCosines(&xyz[0], &xyz[3], &xyz[6]); };
123 this->GetResliceAxesDirectionCosines(this->ResliceAxesDirectionCosines);
124 return this->ResliceAxesDirectionCosines; };
133 this->SetResliceAxesOrigin(xyz[0], xyz[1], xyz[2]); };
136 this->GetResliceAxesOrigin(this->ResliceAxesOrigin);
137 return this->ResliceAxesOrigin; };
325 void SetBackgroundLevel(
double v) { this->SetBackgroundColor(
v,
v,
v,
v); };
334 this->SetOutputSpacing(
a[0],
a[1],
a[2]); };
344 this->SetOutputOrigin(
a[0],
a[1],
a[2]); };
354 this->SetOutputExtent(
a[0],
a[1],
a[2],
a[3],
a[4],
a[5]); };
384 if (
t && !this->GetInterpolate()) {
385 this->SetInterpolationModeToLinear(); }
386 else if (!
t && this->GetInterpolate()) {
387 this->SetInterpolationModeToNearestNeighbor(); } };
389 this->SetInterpolate(1); };
391 this->SetInterpolate(0); };
425 double ResliceAxesDirectionCosines[9];
426 double ResliceAxesOrigin[3];
441 double BackgroundColor[4];
442 double OutputOrigin[3];
443 double OutputSpacing[3];
475 int inputType,
int inputNumComponents,
476 int count,
int idX,
int idY,
int idZ,
481 int inputType,
int inputNumComponents,
482 int count,
int idX,
int idY,
int idZ,
int threadId) {
483 this->ConvertScalars(inPtr, outPtr, inputType, inputNumComponents,
484 count, idX, idY, idZ, threadId); }
506 return this->OptimizedTransform; };
#define vtkGetVector6Macro(name, type)
vtkImageData * InformationInput
vtkAlgorithmOutput * GetStencilOutputPort()
#define vtkGetObjectMacro(name, type)
vtkMatrix4x4 * ResliceAxes
vtkMatrix4x4 * IndexMatrix
virtual void SetResliceAxes(vtkMatrix4x4 *)
void SetOutputOriginToDefault()
virtual void SetInformationInput(vtkImageData *)
void SetResliceAxesOrigin(double x, double y, double z)
void SetInterpolationModeToLinear()
int TransformInputSampling
GLboolean GLboolean GLboolean b
GLuint GLuint GLsizei count
void SetResliceAxesOrigin(const double xyz[3])
unsigned long int GetMTime()
#define VTK_IMAGE_SLAB_MAX
vtkAlgorithmOutput * GetOutputPort()
void SetResliceAxesDirectionCosines(double x0, double x1, double x2, double y0, double y1, double y2, double z0, double z1, double z2)
void SetInterpolate(int t)
static vtkImageReslice * New()
virtual void SetOutputExtent(int a, int b, int c, int d, int e, int f)
void SetResliceAxesDirectionCosines(const double xyz[9])
virtual void SetInterpolator(vtkAbstractImageInterpolator *sampler)
double * GetResliceAxesDirectionCosines()
virtual int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
#define vtkTypeMacro(thisClass, superclass)
Generic filter that has one input..
void SetResliceAxesDirectionCosines(const double x[3], const double y[3], const double z[3])
virtual void AllocateOutputData(vtkImageData *output, vtkInformation *outInfo, int *uExtent)
vtkImageStencilData * GetStencil()
GLint GLint GLint GLint GLint x
virtual vtkAbstractImageInterpolator * GetInterpolator()
virtual int FillOutputPortInformation(int port, vtkInformation *info)
virtual void SetOutputOrigin(double x, double y, double z)
virtual void ThreadedRequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector, vtkImageData ***inData, vtkImageData **outData, int ext[6], int id)
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
#define VTK_IMAGE_SLAB_MEAN
#define vtkSetClampMacro(name, type, min, max)
void SetInterpolationModeToCubic()
#define vtkGetVector3Macro(name, type)
virtual int ConvertScalarInfo(int &scalarType, int &numComponents)
virtual void SetOutputExtent(const int a[6])
virtual void ReportReferences(vtkGarbageCollector *)
#define VTK_RESLICE_CUBIC
#define VTK_IMAGE_SLAB_MIN
GLint GLfloat GLint stencil
virtual void ConvertScalars(void *inPtr, void *outPtr, int inputType, int inputNumComponents, int count, int idX, int idY, int idZ, int threadId)
virtual void SetOutputSpacing(double x, double y, double z)
void GetResliceAxesDirectionCosines(double x[3], double y[3], double z[3])
void GetResliceAxesDirectionCosines(double xyz[9])
virtual void SetResliceTransform(vtkAbstractTransform *)
topologically and geometrically regular array of data
a simple class to control print indentation
represent and manipulate 4x4 transformation matrices
int SlabTrapezoidIntegration
vtkAbstractImageInterpolator * Interpolator
double SlabSliceSpacingFraction
Reslices a volume along a new set of axes.
double GetBackgroundLevel()
void GetAutoCroppedOutputBounds(vtkInformation *inInfo, double bounds[6])
#define VTK_RESLICE_NEAREST
virtual void SetOutputSpacing(const double a[3])
#define vtkGetMacro(name, type)
Superclass for mapping scalar values to colors.
virtual vtkImageData * AllocateOutputData(vtkDataObject *, vtkInformation *)
vtkAbstractTransform * OptimizedTransform
GLboolean GLboolean GLboolean GLboolean a
void SetStencilData(vtkImageStencilData *stencil)
Detect and break reference loops.
void SetInterpolationModeToNearestNeighbor()
vtkBooleanMacro(IgnoreDriverBugs, bool)
vtkSetMacro(IgnoreDriverBugs, bool)
#define vtkSetVector4Macro(name, type)
void SetOutputExtentToDefault()
virtual const char * GetSlabModeAsString()
virtual int FillInputPortInformation(int port, vtkInformation *info)
GLint GLint GLint GLint GLint GLint y
void GetResliceAxesOrigin(double xyz[3])
#define VTK_IMAGE_SLAB_SUM
void ConvertScalarsBase(void *inPtr, void *outPtr, int inputType, int inputNumComponents, int count, int idX, int idY, int idZ, int threadId)
Proxy object to connect input/output ports.
#define VTK_RESLICE_LINEAR
vtkImageStencilData * GetStencilOutput()
efficient description of an image stencil
int GenerateStencilOutput
void SetStencilOutput(vtkImageStencilData *stencil)
virtual void SetOutputOrigin(const double a[3])
virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
virtual const char * GetInterpolationModeAsString()
#define VTKIMAGINGCORE_EXPORT
interpolate data values from images
general representation of visualization data
double * GetResliceAxesOrigin()
#define vtkGetVector4Macro(name, type)
void SetOutputSpacingToDefault()
vtkAbstractTransform * ResliceTransform
virtual void PrintSelf(ostream &os, vtkIndent indent)
vtkAbstractTransform * GetOptimizedTransform()
vtkMatrix4x4 * GetIndexMatrix(vtkInformation *inInfo, vtkInformation *outInfo)