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

Filters that operate on pixel neighborhoods. More...

#include <vtkImageSpatialAlgorithm.h>

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

List of all members.

Public Types

typedef vtkThreadedImageAlgorithm Superclass

Public Member Functions

virtual int IsA (const char *type)
vtkImageSpatialAlgorithmNewInstance () const
void PrintSelf (ostream &os, vtkIndent indent)
virtual intGetKernelSize ()
virtual void GetKernelSize (int &, int &, int &)
virtual void GetKernelSize (int[3])
virtual intGetKernelMiddle ()
virtual void GetKernelMiddle (int &, int &, int &)
virtual void GetKernelMiddle (int[3])

Static Public Member Functions

static vtkImageSpatialAlgorithmNew ()
static int IsTypeOf (const char *type)
static vtkImageSpatialAlgorithmSafeDownCast (vtkObjectBase *o)

Protected Member Functions

virtual vtkObjectBaseNewInstanceInternal () const
 vtkImageSpatialAlgorithm ()
 ~vtkImageSpatialAlgorithm ()
virtual int RequestInformation (vtkInformation *, vtkInformationVector **, vtkInformationVector *)
void ComputeOutputWholeExtent (int extent[6], int handleBoundaries)
virtual int RequestUpdateExtent (vtkInformation *, vtkInformationVector **, vtkInformationVector *)
void InternalRequestUpdateExtent (int *extent, int *inExtent, int *wholeExtent)

Protected Attributes

int KernelSize [3]
int KernelMiddle [3]
int HandleBoundaries

Detailed Description

Filters that operate on pixel neighborhoods.

vtkImageSpatialAlgorithm is a super class for filters that operate on an input neighborhood for each output pixel. It handles even sized neighborhoods, but their can be a half pixel shift associated with processing. This superclass has some logic for handling boundaries. It can split regions into boundary and non-boundary pieces and call different execute methods.

Definition at line 33 of file vtkImageSpatialAlgorithm.h.


Member Typedef Documentation


Constructor & Destructor Documentation

Definition at line 52 of file vtkImageSpatialAlgorithm.h.


Member Function Documentation

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

Reimplemented from vtkAlgorithm.

Reimplemented in vtkImageAnisotropicDiffusion3D, vtkImageAnisotropicDiffusion2D, vtkImageContinuousDilate3D, vtkImageVariance3D, vtkImageContinuousErode3D, vtkImageDilateErode3D, vtkImageHybridMedian2D, vtkImageMedian3D, vtkImageRange3D, vtkImageSobel3D, and vtkImageSobel2D.

static int vtkImageSpatialAlgorithm::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 vtkThreadedImageAlgorithm.

Reimplemented in vtkImageAnisotropicDiffusion3D, vtkImageAnisotropicDiffusion2D, vtkImageContinuousDilate3D, vtkImageVariance3D, vtkImageContinuousErode3D, vtkImageDilateErode3D, vtkImageHybridMedian2D, vtkImageMedian3D, vtkImageRange3D, vtkImageSobel3D, and vtkImageSobel2D.

virtual int vtkImageSpatialAlgorithm::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 vtkThreadedImageAlgorithm.

Reimplemented in vtkImageAnisotropicDiffusion3D, vtkImageAnisotropicDiffusion2D, vtkImageContinuousDilate3D, vtkImageVariance3D, vtkImageContinuousErode3D, vtkImageDilateErode3D, vtkImageHybridMedian2D, vtkImageMedian3D, vtkImageRange3D, vtkImageSobel3D, and vtkImageSobel2D.

virtual vtkObjectBase* vtkImageSpatialAlgorithm::NewInstanceInternal ( ) const [protected, virtual]
void vtkImageSpatialAlgorithm::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 vtkThreadedImageAlgorithm.

Reimplemented in vtkImageAnisotropicDiffusion3D, vtkImageAnisotropicDiffusion2D, vtkImageContinuousDilate3D, vtkImageVariance3D, vtkImageContinuousErode3D, vtkImageDilateErode3D, vtkImageMedian3D, vtkImageRange3D, vtkImageSobel3D, and vtkImageSobel2D.

Get the Kernel size.

virtual void vtkImageSpatialAlgorithm::GetKernelSize ( int ,
int ,
int  
) [virtual]

Get the Kernel size.

virtual void vtkImageSpatialAlgorithm::GetKernelSize ( int  [3]) [virtual]

Get the Kernel size.

Get the Kernel middle.

virtual void vtkImageSpatialAlgorithm::GetKernelMiddle ( int ,
int ,
int  
) [virtual]

Get the Kernel middle.

virtual void vtkImageSpatialAlgorithm::GetKernelMiddle ( int  [3]) [virtual]

Get the Kernel middle.

virtual int vtkImageSpatialAlgorithm::RequestInformation ( vtkInformation request,
vtkInformationVector **  inputVector,
vtkInformationVector outputVector 
) [protected, virtual]

Subclasses can reimplement this method to collect information from their inputs and set information for their outputs.

Reimplemented from vtkImageAlgorithm.

Reimplemented in vtkImageVariance3D, vtkImageRange3D, vtkImageSobel3D, and vtkImageSobel2D.

void vtkImageSpatialAlgorithm::ComputeOutputWholeExtent ( int  extent[6],
int  handleBoundaries 
) [protected]

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.

void vtkImageSpatialAlgorithm::InternalRequestUpdateExtent ( int extent,
int inExtent,
int wholeExtent 
) [protected]

Member Data Documentation

Definition at line 52 of file vtkImageSpatialAlgorithm.h.

Definition at line 55 of file vtkImageSpatialAlgorithm.h.

Definition at line 56 of file vtkImageSpatialAlgorithm.h.


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