#include <vtkImageOpenClose3D.h>
Inheritance diagram for vtkImageOpenClose3D:
vtkImageOpenClose3D performs opening or closing by having two vtkImageErodeDilates in series. The size of operation is determined by the method SetKernelSize, and the operator is an ellipse. OpenValue and CloseValue determine how the filter behaves. For binary images Opening and closing behaves as expected. Close value is first dilated, and then eroded. Open value is first eroded, and then dilated. Degenerate two dimensional opening/closing can be achieved by setting the one axis the 3D KernelSize to 1. Values other than open value and close value are not touched. This enables the filter to processes segmented images containing more than two tags.
Definition at line 43 of file vtkImageOpenClose3D.h.
typedef vtkImageAlgorithm | Superclass |
static vtkImageOpenClose3D * | New () |
static int | IsTypeOf (const char *type) |
static vtkImageOpenClose3D * | SafeDownCast (vtkObject *o) |
virtual const char * | GetClassName () |
virtual int | IsA (const char *type) |
void | PrintSelf (ostream &os, vtkIndent indent) |
Public Member Functions | |
unsigned long int | GetMTime () |
void | Modified () |
void | SetKernelSize (int size0, int size1, int size2) |
void | DebugOn () |
void | DebugOff () |
void | SetOpenValue (double value) |
double | GetOpenValue () |
void | SetCloseValue (double value) |
double | GetCloseValue () |
virtual vtkImageDilateErode3D * | GetFilter0 () |
virtual vtkImageDilateErode3D * | GetFilter1 () |
virtual int | ProcessRequest (vtkInformation *, vtkInformationVector **, vtkInformationVector *) |
virtual int | ComputePipelineMTime (vtkInformation *request, vtkInformationVector **inInfoVec, vtkInformationVector *outInfoVec, int requestFromOutputPort, unsigned long *mtime) |
Protected Member Functions | |
vtkImageOpenClose3D () | |
~vtkImageOpenClose3D () | |
virtual void | ReportReferences (vtkGarbageCollector *) |
Protected Attributes | |
vtkImageDilateErode3D * | Filter0 |
vtkImageDilateErode3D * | Filter1 |
vtkImageOpenClose3D::vtkImageOpenClose3D | ( | ) | [protected] |
vtkImageOpenClose3D::~vtkImageOpenClose3D | ( | ) | [protected] |
static vtkImageOpenClose3D* vtkImageOpenClose3D::New | ( | ) | [static] |
Default open value is 0, and default close value is 255.
Reimplemented from vtkAlgorithm.
virtual const char* vtkImageOpenClose3D::GetClassName | ( | ) | [virtual] |
Reimplemented from vtkImageAlgorithm.
static int vtkImageOpenClose3D::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 vtkTypeRevisionMacro found in vtkSetGet.h.
Reimplemented from vtkImageAlgorithm.
virtual int vtkImageOpenClose3D::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 vtkTypeRevisionMacro found in vtkSetGet.h.
Reimplemented from vtkImageAlgorithm.
static vtkImageOpenClose3D* vtkImageOpenClose3D::SafeDownCast | ( | vtkObject * | o | ) | [static] |
Reimplemented from vtkImageAlgorithm.
void vtkImageOpenClose3D::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.
unsigned long int vtkImageOpenClose3D::GetMTime | ( | ) | [virtual] |
This method considers the sub filters MTimes when computing this objects modified time.
Reimplemented from vtkObject.
void vtkImageOpenClose3D::DebugOn | ( | ) | [virtual] |
Turn debugging output on. (in sub filters also)
Reimplemented from vtkObject.
void vtkImageOpenClose3D::DebugOff | ( | ) | [virtual] |
Turn debugging output on. (in sub filters also)
Reimplemented from vtkObject.
void vtkImageOpenClose3D::Modified | ( | ) | [virtual] |
Pass modified message to sub filters.
Reimplemented from vtkObject.
void vtkImageOpenClose3D::SetKernelSize | ( | int | size0, | |
int | size1, | |||
int | size2 | |||
) |
Selects the size of gaps or objects removed.
void vtkImageOpenClose3D::SetOpenValue | ( | double | value | ) |
Determines the value that will opened. Open value is first eroded, and then dilated.
double vtkImageOpenClose3D::GetOpenValue | ( | ) |
Determines the value that will opened. Open value is first eroded, and then dilated.
void vtkImageOpenClose3D::SetCloseValue | ( | double | value | ) |
Determines the value that will closed. Close value is first dilated, and then eroded
double vtkImageOpenClose3D::GetCloseValue | ( | ) |
Determines the value that will closed. Close value is first dilated, and then eroded
virtual vtkImageDilateErode3D* vtkImageOpenClose3D::GetFilter0 | ( | ) | [virtual] |
Needed for Progress functions
virtual vtkImageDilateErode3D* vtkImageOpenClose3D::GetFilter1 | ( | ) | [virtual] |
Needed for Progress functions
virtual int vtkImageOpenClose3D::ProcessRequest | ( | vtkInformation * | , | |
vtkInformationVector ** | , | |||
vtkInformationVector * | ||||
) | [virtual] |
see vtkAlgorithm for details
Reimplemented from vtkImageAlgorithm.
virtual int vtkImageOpenClose3D::ComputePipelineMTime | ( | vtkInformation * | request, | |
vtkInformationVector ** | inInfoVec, | |||
vtkInformationVector * | outInfoVec, | |||
int | requestFromOutputPort, | |||
unsigned long * | mtime | |||
) | [virtual] |
Override to send the request to internal pipeline.
Reimplemented from vtkAlgorithm.
virtual void vtkImageOpenClose3D::ReportReferences | ( | vtkGarbageCollector * | ) | [protected, virtual] |
Reimplemented from vtkAlgorithm.
vtkImageDilateErode3D* vtkImageOpenClose3D::Filter0 [protected] |
Definition at line 112 of file vtkImageOpenClose3D.h.
vtkImageDilateErode3D* vtkImageOpenClose3D::Filter1 [protected] |
Definition at line 113 of file vtkImageOpenClose3D.h.