Will perform opening or closing.
More...
#include <vtkImageOpenClose3D.h>
Inherits vtkImageAlgorithm.
Will perform opening or closing.
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.
- Tests:
- vtkImageOpenClose3D (Tests)
Definition at line 44 of file vtkImageOpenClose3D.h.
vtkImageOpenClose3D::vtkImageOpenClose3D |
( |
| ) |
|
|
protected |
vtkImageOpenClose3D::~vtkImageOpenClose3D |
( |
| ) |
|
|
protected |
Default open value is 0, and default close value is 255.
static int vtkImageOpenClose3D::IsTypeOf |
( |
const char * |
type | ) |
|
|
static |
Default open value is 0, and default close value is 255.
virtual int vtkImageOpenClose3D::IsA |
( |
const char * |
type | ) |
|
|
virtual |
Default open value is 0, and default close value is 255.
Default open value is 0, and default close value is 255.
virtual vtkObjectBase* vtkImageOpenClose3D::NewInstanceInternal |
( |
| ) |
const |
|
protectedvirtual |
Default open value is 0, and default close value is 255.
Default open value is 0, and default close value is 255.
void vtkImageOpenClose3D::PrintSelf |
( |
ostream & |
os, |
|
|
vtkIndent |
indent |
|
) |
| |
Default open value is 0, and default close value is 255.
unsigned long int vtkImageOpenClose3D::GetMTime |
( |
| ) |
|
This method considers the sub filters MTimes when computing this objects modified time.
void vtkImageOpenClose3D::DebugOn |
( |
| ) |
|
Turn debugging output on. (in sub filters also)
void vtkImageOpenClose3D::DebugOff |
( |
| ) |
|
Turn debugging output on. (in sub filters also)
void vtkImageOpenClose3D::Modified |
( |
| ) |
|
Pass modified message to sub filters.
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
Needed for Progress functions
Needed for Progress functions
virtual int vtkImageOpenClose3D::ProcessRequest |
( |
vtkInformation * |
, |
|
|
vtkInformationVector ** |
, |
|
|
vtkInformationVector * |
|
|
) |
| |
|
virtual |
see vtkAlgorithm for details
virtual int vtkImageOpenClose3D::ComputePipelineMTime |
( |
vtkInformation * |
request, |
|
|
vtkInformationVector ** |
inInfoVec, |
|
|
vtkInformationVector * |
outInfoVec, |
|
|
int |
requestFromOutputPort, |
|
|
unsigned long * |
mtime |
|
) |
| |
|
virtual |
Override to send the request to internal pipeline.
virtual void vtkImageOpenClose3D::ReportReferences |
( |
vtkGarbageCollector * |
| ) |
|
|
protectedvirtual |
The documentation for this class was generated from the following file: