21 #ifndef __vtkOrientedImageDataResample_h 22 #define __vtkOrientedImageDataResample_h 25 #include "vtkSegmentationCoreConfigure.h" 27 #include "vtkObject.h" 33 class vtkAbstractTransform;
78 static void TransformOrientedImage(
vtkOrientedImageData* image, vtkAbstractTransform* transform,
bool geometryOnly=
false,
bool alwaysResample=
false,
bool linearInterpolation=
false,
double backgroundColor[4]=NULL);
84 const int extent[6] = 0,
double maskThreshold = 0,
double fillValue = 1,
bool *outputModified=NULL);
91 const int extent[6] = 0,
double maskThreshold = 0,
double fillValue = 1);
97 static void PrintImageInformation(vtkImageData* imageData, ostream& os, vtkIndent indent);
101 static void FillImage(vtkImageData* image,
double fillValue,
const int extent[6]=NULL);
105 static bool CalculateEffectiveExtent(
vtkOrientedImageData* image,
int effectiveExtent[6],
double threshold = 0.0);
120 static void TransformExtent(
const int inputExtent[6], vtkAbstractTransform* inputToOutputTransform,
int outputExtent[6]);
124 static void TransformBounds(
const double inputBounds[6], vtkAbstractTransform* inputToOutputTransform,
double outputBounds[6]);
127 static void TransformOrientedImageDataBounds(
vtkOrientedImageData* image, vtkAbstractTransform* transform,
double transformedBounds[6]);
132 static bool IsEqual(vtkMatrix4x4* lhs, vtkMatrix4x4* rhs);
150 static bool IsTransformLinear(vtkAbstractTransform* transform, vtkTransform* linearTransform);
153 static bool DoesTransformMatrixContainShear(vtkMatrix4x4* matrix);
Utility functions for resampling oriented image data.
static bool AreEqualWithTolerance(double a, double b)
Compare two floating point numbers within tolerance.
Image data containing orientation information.