VTK
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes
vtkImageSlabReslice Class Reference

Thick slab reformat through data. More...

#include <vtkImageSlabReslice.h>

Inheritance diagram for vtkImageSlabReslice:
Inheritance graph
[legend]
Collaboration diagram for vtkImageSlabReslice:
Collaboration graph
[legend]

List of all members.

Public Types

typedef vtkImageReslice Superclass

Public Member Functions

virtual const char * GetClassName ()
virtual int IsA (const char *type)
virtual void PrintSelf (ostream &os, vtkIndent indent)
virtual void SetBlendMode (int)
virtual int GetBlendMode ()
void SetBlendModeToMin ()
void SetBlendModeToMax ()
void SetBlendModeToMean ()
virtual int GetNumBlendSamplePoints ()
virtual void SetSlabThickness (double)
virtual double GetSlabThickness ()
virtual void SetSlabResolution (double)
virtual double GetSlabResolution ()

Static Public Member Functions

static vtkImageSlabResliceNew ()
static int IsTypeOf (const char *type)
static vtkImageSlabResliceSafeDownCast (vtkObject *o)

Protected Member Functions

 vtkImageSlabReslice ()
 ~vtkImageSlabReslice ()
virtual int RequestInformation (vtkInformation *, vtkInformationVector **, vtkInformationVector *)

Protected Attributes

int BlendMode
double SlabThickness
double SlabResolution
int NumBlendSamplePoints

Detailed Description

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.

See also:
vtkImageReslice
Examples:
vtkImageSlabReslice (Examples)

Definition at line 56 of file vtkImageSlabReslice.h.


Member Typedef Documentation

Reimplemented from vtkImageReslice.

Definition at line 61 of file vtkImageSlabReslice.h.


Constructor & Destructor Documentation

vtkImageSlabReslice::vtkImageSlabReslice ( ) [protected]
vtkImageSlabReslice::~vtkImageSlabReslice ( ) [protected]

Member Function Documentation

static vtkImageSlabReslice* vtkImageSlabReslice::New ( ) [static]

Create an object with Debug turned off, modified time initialized to zero, and reference counting on.

Reimplemented from vtkImageReslice.

virtual const char* vtkImageSlabReslice::GetClassName ( ) [virtual]

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 ( vtkObject o) [static]

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 70 of file vtkImageSlabReslice.h.

void vtkImageSlabReslice::SetBlendModeToMax ( ) [inline]

Set/Get the blend mode. Default is MIP (ie Max)

Definition at line 71 of file vtkImageSlabReslice.h.

void vtkImageSlabReslice::SetBlendModeToMean ( ) [inline]

Set/Get the blend mode. Default is MIP (ie Max)

Definition at line 72 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.


Member Data Documentation

Definition at line 108 of file vtkImageSlabReslice.h.

Definition at line 109 of file vtkImageSlabReslice.h.

Definition at line 110 of file vtkImageSlabReslice.h.

Definition at line 111 of file vtkImageSlabReslice.h.


The documentation for this class was generated from the following file: