23 #ifndef vtkDICOMCTRectifier_h
24 #define vtkDICOMCTRectifier_h
26 #include "vtkDICOMAlgorithm.h"
27 #include "vtkDICOMModule.h"
30 #if defined(VTK_ABI_NAMESPACE_BEGIN)
31 VTK_ABI_NAMESPACE_BEGIN
36 #if defined(VTK_ABI_NAMESPACE_BEGIN)
49 void PrintSelf(ostream& os, vtkIndent indent) VTK_DICOM_OVERRIDE;
70 void ReverseOn() { this->SetReverse(1); }
71 void ReverseOff() { this->SetReverse(0); }
72 int GetReverse() {
return this->Reverse; }
82 vtkMatrix4x4 *GetVolumeMatrix() {
return this->VolumeMatrix; }
93 void SetInterpolationModeToNearest() {
94 this->SetInterpolationMode(Nearest); }
95 void SetInterpolationModeToLinear() {
96 this->SetInterpolationMode(Linear); }
97 void SetInterpolationModeToCubic() {
98 this->SetInterpolationMode(Cubic); }
99 void SetInterpolationModeToWindowedSinc() {
100 this->SetInterpolationMode(WindowedSinc); }
101 int GetInterpolationMode() {
return this->InterpolationMode; }
141 const
double matrix[16], const
int extent[6],
double spacing[3],
144 int RequestInformation(
145 vtkInformation* request, vtkInformationVector** inputVector,
146 vtkInformationVector* outputVector) VTK_DICOM_OVERRIDE;
148 int RequestUpdateExtent(
149 vtkInformation* request, vtkInformationVector** inputVector,
150 vtkInformationVector* outputVector) VTK_DICOM_OVERRIDE;
153 vtkInformation* request, vtkInformationVector** inputVector,
154 vtkInformationVector* outputVector) VTK_DICOM_OVERRIDE;
156 void ThreadedRequestData(
157 vtkInformation *request, vtkInformationVector **inputVector,
158 vtkInformationVector *outputVector, vtkImageData ***inData,
159 vtkImageData **outData,
int ext[6],
int id) VTK_DICOM_OVERRIDE;
161 vtkMatrix4x4 *VolumeMatrix;
162 vtkMatrix4x4 *RectifiedMatrix;
163 vtkMatrix4x4 *Matrix;
165 int InterpolationMode;
168 #ifdef VTK_DICOM_DELETE
Superclass for DICOM image filters.
Definition: vtkDICOMAlgorithm.h:49
Prepare a CT for 3D processing.
Definition: vtkDICOMCTRectifier.h:42
void SetReverse(int v)
Reverse the default operation.
void PrintSelf(ostream &os, vtkIndent indent) VTK_DICOM_OVERRIDE
Print information about this object.
void SetVolumeMatrix(vtkMatrix4x4 *matrix)
Set the matrix that describes the CT volume geometry.
static vtkDICOMCTRectifier * New()
Static method for construction.
vtkMatrix4x4 * GetRectifiedMatrix()
Get the matrix that describes the rectified geometry.
Definition: vtkDICOMCTRectifier.h:110
static double GetGantryDetectorTilt(vtkMatrix4x4 *volumeMatrix)
A static method to measure the tilt from a matrix.
void SetInterpolationMode(int t)
Set the interpolation method for resampling the data.
void UpdateMatrix()
Update the RectifiedMatrix without updating the output data.