VTK
|
Thick slab reformat through data. More...
#include <vtkImageSlabReslice.h>
Thick slab reformat through data.
This class derives from vtkImageResliceBase. Much like vtkImageReslice, it reslices the data. It is multi-threaded. It takes a three dimensional image as input and produces a two dimensional thick MPR along some direction.
The class reslices the thick slab using a blending function. Supported blending functions are Minimum Intensity blend through the slab, maximum intensity blend and a Mean (average) intensity of values across the slab.
The user can adjust the thickness of the slab by using the method SetSlabThickness. The distance between sample points used for blending across the thickness of the slab is controlled by the method SetSlabResolution. These two methods determine the number of slices used across the slab for blending, which is computed as {(2 x (int)(0.5 x SlabThickness/SlabResolution)) + 1}. This value may be queried via GetNumBlendSamplePoints() and is always >= 1.
Much like vtkImageReslice, the reslice axes direction cosines may be set via the methods SetResliceAxes or SetResliceAxesDirectionCosines. The output spacing is controlled by SetOutputSpacing and the output origin is controlled by SetOutputOrigin. The default value to be set on pixels that lie outside the volume when reformatting is controlled by SetBackgroundColor or SetBackgroundLevel. The SetResliceAxesOrigin() method can also be used to provide an (x,y,z) point that the slice will pass through.
Definition at line 57 of file vtkImageSlabReslice.h.
Reimplemented from vtkImageReslice.
Definition at line 62 of file vtkImageSlabReslice.h.
vtkImageSlabReslice::vtkImageSlabReslice | ( | ) | [protected] |
vtkImageSlabReslice::~vtkImageSlabReslice | ( | ) | [protected] |
static vtkImageSlabReslice* vtkImageSlabReslice::New | ( | ) | [static] |
Create an object with Debug turned off, modified time initialized to zero, and reference counting on.
Reimplemented from vtkImageReslice.
static int vtkImageSlabReslice::IsTypeOf | ( | const char * | name | ) | [static] |
Return 1 if this class type is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h.
Reimplemented from vtkImageReslice.
virtual int vtkImageSlabReslice::IsA | ( | const char * | name | ) | [virtual] |
Return 1 if this class is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h.
Reimplemented from vtkImageReslice.
static vtkImageSlabReslice* vtkImageSlabReslice::SafeDownCast | ( | vtkObjectBase * | o | ) | [static] |
Reimplemented from vtkImageReslice.
virtual vtkObjectBase* vtkImageSlabReslice::NewInstanceInternal | ( | ) | const [protected, virtual] |
Reimplemented from vtkImageReslice.
Reimplemented from vtkImageReslice.
virtual void vtkImageSlabReslice::PrintSelf | ( | ostream & | os, |
vtkIndent | indent | ||
) | [virtual] |
Printself method.
Reimplemented from vtkImageReslice.
virtual void vtkImageSlabReslice::SetBlendMode | ( | int | ) | [virtual] |
Set/Get the blend mode. Default is MIP (ie Max)
virtual int vtkImageSlabReslice::GetBlendMode | ( | ) | [virtual] |
Set/Get the blend mode. Default is MIP (ie Max)
void vtkImageSlabReslice::SetBlendModeToMin | ( | ) | [inline] |
Set/Get the blend mode. Default is MIP (ie Max)
Definition at line 71 of file vtkImageSlabReslice.h.
void vtkImageSlabReslice::SetBlendModeToMax | ( | ) | [inline] |
Set/Get the blend mode. Default is MIP (ie Max)
Definition at line 72 of file vtkImageSlabReslice.h.
void vtkImageSlabReslice::SetBlendModeToMean | ( | ) | [inline] |
Set/Get the blend mode. Default is MIP (ie Max)
Definition at line 73 of file vtkImageSlabReslice.h.
virtual int vtkImageSlabReslice::GetNumBlendSamplePoints | ( | ) | [virtual] |
Number of sample points used across the slab cross-section. If equal to 1, this ends up being a thin reslice through the data a.k.a. vtkImageReslice
virtual void vtkImageSlabReslice::SetSlabThickness | ( | double | ) | [virtual] |
SlabThickness of slab in world coords. SlabThickness must be non-zero and positive.
virtual double vtkImageSlabReslice::GetSlabThickness | ( | ) | [virtual] |
SlabThickness of slab in world coords. SlabThickness must be non-zero and positive.
virtual void vtkImageSlabReslice::SetSlabResolution | ( | double | ) | [virtual] |
Spacing between slabs in world units. (Number of Slices, ie samples to blend is computed from SlabThickness and SlabResolution).
virtual double vtkImageSlabReslice::GetSlabResolution | ( | ) | [virtual] |
Spacing between slabs in world units. (Number of Slices, ie samples to blend is computed from SlabThickness and SlabResolution).
virtual int vtkImageSlabReslice::RequestInformation | ( | vtkInformation * | , |
vtkInformationVector ** | , | ||
vtkInformationVector * | |||
) | [protected, virtual] |
This method simply calls the superclass method. In addition, it also precomputes the NumBlendSamplePoints based on the SlabThickness and SlabResolution.
Reimplemented from vtkImageReslice.
int vtkImageSlabReslice::BlendMode [protected] |
Definition at line 109 of file vtkImageSlabReslice.h.
double vtkImageSlabReslice::SlabThickness [protected] |
Definition at line 110 of file vtkImageSlabReslice.h.
double vtkImageSlabReslice::SlabResolution [protected] |
Definition at line 111 of file vtkImageSlabReslice.h.
int vtkImageSlabReslice::NumBlendSamplePoints [protected] |
Definition at line 112 of file vtkImageSlabReslice.h.