vtkImageFindPhaseLabels Class Reference

#include <vtkImageFindPhaseLabels.h>

Inheritance diagram for vtkImageFindPhaseLabels:

Inheritance graph
[legend]
Collaboration diagram for vtkImageFindPhaseLabels:

Collaboration graph
[legend]
List of all members.

Detailed Description

Find 2D or 3D phase labels for use with vtkImagePRELUDE.

vtkImageFindPhaseLabels - This filter uses 6 voxel connected components to create labeled regions of phase based on the number of phase partitions set by the user. Optionally a mask may be used to create the phase labels. The complex phase image input must be VTK_FLOAT or VTK_DOUBLE and should be in the range of -pi to pi (i.e. atan2). The mask input must be VTK_UNSIGNED_CHAR and must have the same extents as the phase input. The output image will have the same extents as the inputs, but will be type VTK_INT. The hybrid 2D operation will find the labels in 2D, but will label them as if they are 3D (the default operation). The mask may be generated using vtkImageThresholdByPercentile, vtkImageConnectedComponents, and vtkImageAccumulate with the complex magnitude as input (essentially automatically find the largest connected component in the magnitude image).

This class uses portions of code from the FMRIB Software Library.

See also:
vtkImagePRELUDE, vtkImageThresholdByPercentile, vtkImageConnectedComponents

Definition at line 63 of file vtkImageFindPhaseLabels.h.

Public Member Functions

 vtkTypeRevisionMacro (vtkImageFindPhaseLabels, vtkThreadedImageAlgorithm)
void PrintSelf (ostream &os, vtkIndent indent)
void SetPhaseInput (vtkDataObject *in)
void SetMaskInput (vtkDataObject *in)
virtual void SetNumPhaseSplit (int)
virtual int GetNumPhaseSplit ()
virtual void SetNumberOfSlicesPerVolume (int)
virtual int GetNumberOfSlicesPerVolume ()
virtual void SetLabelOperation (int)
virtual int GetLabelOperation ()
void SetLabelOperationToHybrid2D ()
void SetLabelOperationTo2D ()
void SetLabelOperationTo3D ()
virtual void SetDiagnosticMessages (int)
virtual int GetDiagnosticMessages ()
virtual void DiagnosticMessagesOn ()
virtual void DiagnosticMessagesOff ()
virtual int SplitExtent (int splitExt[6], int startExt[6], int num, int total)

Static Public Member Functions

static vtkImageFindPhaseLabelsNew ()

Protected Member Functions

 vtkImageFindPhaseLabels ()
 ~vtkImageFindPhaseLabels ()
virtual int RequestUpdateExtent (vtkInformation *, vtkInformationVector **, vtkInformationVector *)
virtual int RequestInformation (vtkInformation *, vtkInformationVector **, vtkInformationVector *)
virtual void ThreadedRequestData (vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector, vtkImageData ***inData, vtkImageData **outData, int extent[6], int threadId)
virtual int FillInputPortInformation (int port, vtkInformation *info)

Protected Attributes

int NumPhaseSplit
int NumberOfSlicesPerVolume
int LabelOperation
int DiagnosticMessages


Constructor & Destructor Documentation

vtkImageFindPhaseLabels::vtkImageFindPhaseLabels (  )  [protected]

vtkImageFindPhaseLabels::~vtkImageFindPhaseLabels (  )  [inline, protected]

Definition at line 116 of file vtkImageFindPhaseLabels.h.


Member Function Documentation

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

Reimplemented from vtkAlgorithm.

vtkImageFindPhaseLabels::vtkTypeRevisionMacro ( vtkImageFindPhaseLabels  ,
vtkThreadedImageAlgorithm   
)

void vtkImageFindPhaseLabels::PrintSelf ( ostream &  os,
vtkIndent  indent 
) [virtual]

Reimplemented from vtkThreadedImageAlgorithm.

void vtkImageFindPhaseLabels::SetPhaseInput ( vtkDataObject in  )  [inline]

Set the phase image.

Definition at line 71 of file vtkImageFindPhaseLabels.h.

References vtkImageAlgorithm::SetInput().

void vtkImageFindPhaseLabels::SetMaskInput ( vtkDataObject in  )  [inline]

Set the optional image mask.

Definition at line 74 of file vtkImageFindPhaseLabels.h.

References vtkImageAlgorithm::SetInput().

virtual void vtkImageFindPhaseLabels::SetNumPhaseSplit ( int   )  [virtual]

Number of phase partitions to use (default is 8).

virtual int vtkImageFindPhaseLabels::GetNumPhaseSplit (  )  [virtual]

Number of phase partitions to use (default is 8).

virtual void vtkImageFindPhaseLabels::SetNumberOfSlicesPerVolume ( int   )  [virtual]

Number of slices per volume (default is undefined). If multiple volumes exist then, NumberOfThreads should be set such that the split extents are a multiple of this value.

virtual int vtkImageFindPhaseLabels::GetNumberOfSlicesPerVolume (  )  [virtual]

Number of slices per volume (default is undefined). If multiple volumes exist then, NumberOfThreads should be set such that the split extents are a multiple of this value.

virtual void vtkImageFindPhaseLabels::SetLabelOperation ( int   )  [virtual]

Set/Get the label operation.

virtual int vtkImageFindPhaseLabels::GetLabelOperation (  )  [virtual]

Set/Get the label operation.

void vtkImageFindPhaseLabels::SetLabelOperationToHybrid2D (  )  [inline]

Set/Get the label operation.

Definition at line 95 of file vtkImageFindPhaseLabels.h.

References VTK_FIND_LABELS_HYBRID2D.

void vtkImageFindPhaseLabels::SetLabelOperationTo2D (  )  [inline]

Set/Get the label operation.

Definition at line 96 of file vtkImageFindPhaseLabels.h.

References VTK_FIND_LABELS_2D.

void vtkImageFindPhaseLabels::SetLabelOperationTo3D (  )  [inline]

Set/Get the label operation.

Definition at line 97 of file vtkImageFindPhaseLabels.h.

References VTK_FIND_LABELS_3D.

virtual void vtkImageFindPhaseLabels::SetDiagnosticMessages ( int   )  [virtual]

Switch on diagnostic messages (off by default).

virtual int vtkImageFindPhaseLabels::GetDiagnosticMessages (  )  [virtual]

Switch on diagnostic messages (off by default).

virtual void vtkImageFindPhaseLabels::DiagnosticMessagesOn (  )  [virtual]

Switch on diagnostic messages (off by default).

virtual void vtkImageFindPhaseLabels::DiagnosticMessagesOff (  )  [virtual]

Switch on diagnostic messages (off by default).

virtual int vtkImageFindPhaseLabels::SplitExtent ( int  splitExt[6],
int  startExt[6],
int  num,
int  total 
) [virtual]

Overriding this function to enable threaded execution on multiple volumes.

Reimplemented from vtkThreadedImageAlgorithm.

virtual int vtkImageFindPhaseLabels::RequestUpdateExtent ( vtkInformation ,
vtkInformationVector **  ,
vtkInformationVector  
) [protected, virtual]

Reimplemented from vtkImageAlgorithm.

virtual int vtkImageFindPhaseLabels::RequestInformation ( vtkInformation ,
vtkInformationVector **  ,
vtkInformationVector  
) [protected, virtual]

Reimplemented from vtkImageAlgorithm.

virtual void vtkImageFindPhaseLabels::ThreadedRequestData ( vtkInformation request,
vtkInformationVector **  inputVector,
vtkInformationVector outputVector,
vtkImageData ***  inData,
vtkImageData **  outData,
int  extent[6],
int  threadId 
) [protected, virtual]

Reimplemented from vtkThreadedImageAlgorithm.

virtual int vtkImageFindPhaseLabels::FillInputPortInformation ( int  port,
vtkInformation info 
) [protected, virtual]

Reimplemented from vtkImageAlgorithm.


Member Data Documentation

int vtkImageFindPhaseLabels::NumPhaseSplit [protected]

Definition at line 116 of file vtkImageFindPhaseLabels.h.

int vtkImageFindPhaseLabels::NumberOfSlicesPerVolume [protected]

Definition at line 120 of file vtkImageFindPhaseLabels.h.

int vtkImageFindPhaseLabels::LabelOperation [protected]

Definition at line 122 of file vtkImageFindPhaseLabels.h.

int vtkImageFindPhaseLabels::DiagnosticMessages [protected]

Definition at line 124 of file vtkImageFindPhaseLabels.h.


The documentation for this class was generated from the following file:
Generated on Tue May 12 14:53:24 2009 for vtkCNMRRLibrary by  doxygen 1.4.7