21#ifndef __vtkOrientedImageData_h
22#define __vtkOrientedImageData_h
25#include "vtkSegmentationCoreConfigure.h"
27#include "vtkImageData.h"
40 void PrintSelf(ostream& os, vtkIndent indent)
override;
54 double jr,
double ja,
double js,
55 double kr,
double ka,
double ks);
66 using vtkImageData::GetDirectionMatrix;
70 using vtkImageData::SetDirectionMatrix;
void ComputeBounds() override
Compute image bounds (xmin,xmax, ymin,ymax, zmin,zmax).
double GetMinSpacing()
Utility function that returns the min spacing between the 3 orientations.
void PrintSelf(ostream &os, vtkIndent indent) override
void SetDirections(double dirs[3][3])
Set directions only.
void SetDirections(double ir, double ia, double is, double jr, double ja, double js, double kr, double ka, double ks)
Set directions only.
double GetMaxSpacing()
Utility function that returns the max spacing between the 3 orientations.
void ShallowCopy(vtkDataObject *src) override
Shallow copy.
virtual void CopyDirections(vtkDataObject *src)
Copy orientation information only.
void GetImageToWorldMatrix(vtkMatrix4x4 *mat)
Get the geometry matrix that includes the spacing and origin information.
void DeepCopy(vtkDataObject *src) override
Deep copy.
bool IsEmpty()
Determines whether the image data is empty (if the extent has 0 voxels then it is)
void SetDirectionMatrix(vtkMatrix4x4 *mat)
~vtkOrientedImageData() override
void GetWorldToImageMatrix(vtkMatrix4x4 *mat)
Get the inverse of the geometry matrix.
void GetDirections(double dirs[3][3])
void SetGeometryFromImageToWorldMatrix(vtkMatrix4x4 *mat)
Same as SetImageToWorldMatrix. Kept for backward compatibility.
void SetImageToWorldMatrix(vtkMatrix4x4 *mat)
Convenience method to set the directions, spacing, and origin from a matrix.
static vtkOrientedImageData * New()
void GetDirectionMatrix(vtkMatrix4x4 *mat)