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

SeedConnectivity with user defined seeds. More...

#include <vtkImageSeedConnectivity.h>

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

List of all members.

Public Types

typedef vtkImageAlgorithm Superclass

Public Member Functions

virtual int IsA (const char *type)
vtkImageSeedConnectivityNewInstance () const
void PrintSelf (ostream &os, vtkIndent indent)
void RemoveAllSeeds ()
void AddSeed (int num, int *index)
void AddSeed (int i0, int i1, int i2)
void AddSeed (int i0, int i1)
virtual void SetInputConnectValue (int)
virtual int GetInputConnectValue ()
virtual void SetOutputConnectedValue (int)
virtual int GetOutputConnectedValue ()
virtual void SetOutputUnconnectedValue (int)
virtual int GetOutputUnconnectedValue ()
virtual vtkImageConnectorGetConnector ()
virtual void SetDimensionality (int)
virtual int GetDimensionality ()

Static Public Member Functions

static vtkImageSeedConnectivityNew ()
static int IsTypeOf (const char *type)
static vtkImageSeedConnectivitySafeDownCast (vtkObjectBase *o)

Protected Member Functions

virtual vtkObjectBaseNewInstanceInternal () const
 vtkImageSeedConnectivity ()
 ~vtkImageSeedConnectivity ()
virtual int RequestUpdateExtent (vtkInformation *, vtkInformationVector **, vtkInformationVector *)
virtual int RequestData (vtkInformation *, vtkInformationVector **, vtkInformationVector *)

Protected Attributes

unsigned char InputConnectValue
unsigned char OutputConnectedValue
unsigned char OutputUnconnectedValue
vtkImageConnectorSeedSeeds
vtkImageConnectorConnector
int Dimensionality

Detailed Description

SeedConnectivity with user defined seeds.

vtkImageSeedConnectivity marks pixels connected to user supplied seeds. The input must be unsigned char, and the output is also unsigned char. If a seed supplied by the user does not have pixel value "InputTrueValue", then the image is scanned +x, +y, +z until a pixel is encountered with value "InputTrueValue". This new pixel is used as the seed . Any pixel with out value "InputTrueValue" is consider off. The output pixels values are 0 for any off pixel in input, "OutputTrueValue" for any pixels connected to seeds, and "OutputUnconnectedValue" for any on pixels not connected to seeds. The same seeds are used for all images in the image set.

Tests:
vtkImageSeedConnectivity (Tests)

Definition at line 42 of file vtkImageSeedConnectivity.h.


Member Typedef Documentation

Reimplemented from vtkImageAlgorithm.

Definition at line 46 of file vtkImageSeedConnectivity.h.


Constructor & Destructor Documentation


Member Function Documentation

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

Reimplemented from vtkAlgorithm.

static int vtkImageSeedConnectivity::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 vtkImageAlgorithm.

virtual int vtkImageSeedConnectivity::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 vtkImageAlgorithm.

Reimplemented from vtkImageAlgorithm.

virtual vtkObjectBase* vtkImageSeedConnectivity::NewInstanceInternal ( ) const [protected, virtual]

Reimplemented from vtkImageAlgorithm.

Reimplemented from vtkImageAlgorithm.

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

Methods invoked by print to print information about the object including superclasses. Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes.

Reimplemented from vtkImageAlgorithm.

Methods for manipulating the seed pixels.

void vtkImageSeedConnectivity::AddSeed ( int  num,
int index 
)

Methods for manipulating the seed pixels.

void vtkImageSeedConnectivity::AddSeed ( int  i0,
int  i1,
int  i2 
)

Methods for manipulating the seed pixels.

void vtkImageSeedConnectivity::AddSeed ( int  i0,
int  i1 
)

Methods for manipulating the seed pixels.

Set/Get what value is considered as connecting pixels.

Set/Get what value is considered as connecting pixels.

Set/Get the value to set connected pixels to.

Set/Get the value to set connected pixels to.

Set/Get the value to set unconnected pixels to.

Set/Get the value to set unconnected pixels to.

Get the vtkImageCOnnector used by this filter.

virtual void vtkImageSeedConnectivity::SetDimensionality ( int  ) [virtual]

Set the number of axes to use in connectivity.

Set the number of axes to use in connectivity.

Subclasses can reimplement this method to translate the update extent requests from each output port into update extent requests for the input connections.

Reimplemented from vtkImageAlgorithm.

virtual int vtkImageSeedConnectivity::RequestData ( vtkInformation request,
vtkInformationVector **  inputVector,
vtkInformationVector outputVector 
) [protected, virtual]

This is called in response to a REQUEST_DATA request from the executive. Subclasses should override either this method or the ExecuteDataWithInformation method in order to generate data for their outputs. For images, the output arrays will already be allocated, so all that is necessary is to fill in the voxel values.

Reimplemented from vtkImageAlgorithm.


Member Data Documentation

Definition at line 90 of file vtkImageSeedConnectivity.h.

Definition at line 91 of file vtkImageSeedConnectivity.h.

Definition at line 92 of file vtkImageSeedConnectivity.h.

Definition at line 93 of file vtkImageSeedConnectivity.h.

Definition at line 94 of file vtkImageSeedConnectivity.h.

Definition at line 95 of file vtkImageSeedConnectivity.h.


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