Slicer
5.3
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
|
Augments vtkImageSpatialFilter with a mask to allow neighborhoods of any shape. More...
#include <Libs/MRML/Logic/vtkImageNeighborhoodFilter.h>
Public Types | |
typedef vtkImageSpatialAlgorithm | Superclass |
Public Member Functions | |
virtual const char * | GetClassName () |
void | GetMaskIncrements (vtkIdType &maskInc0, vtkIdType &maskInc1, vtkIdType &maskInc2) |
Get the increments to use when looping through the mask. More... | |
unsigned char * | GetMaskPointer () |
virtual int | GetNeighbor () |
void | GetRelativeHoodExtent (int &hoodMin0, int &hoodMax0, int &hoodMin1, int &hoodMax1, int &hoodMin2, int &hoodMax2) |
virtual int | IsA (const char *type) |
void | SetNeighborTo4 () |
void | SetNeighborTo8 () |
Static Public Member Functions | |
static int | IsTypeOf (const char *type) |
static vtkImageNeighborhoodFilter * | New () |
static vtkImageNeighborhoodFilter * | SafeDownCast (vtkObject *o) |
Protected Member Functions | |
void | SetKernelSize (int size0, int size1, int size2) |
set size of neighborhood of each pixel More... | |
vtkImageNeighborhoodFilter () | |
~vtkImageNeighborhoodFilter () override | |
Protected Attributes | |
unsigned char * | Mask |
int | Neighbor |
Augments vtkImageSpatialFilter with a mask to allow neighborhoods of any shape.
4 or 8 neighbor connectivity, or subclasses may define their own neighborhood shapes. The mask is basically a binary (0/1) filter kernel to define neighbors of interest.
Definition at line 22 of file vtkImageNeighborhoodFilter.h.
typedef vtkImageSpatialAlgorithm vtkImageNeighborhoodFilter::Superclass |
Definition at line 26 of file vtkImageNeighborhoodFilter.h.
|
protected |
|
overrideprotected |
|
virtual |
Reimplemented in vtkImageLabelOutline.
void vtkImageNeighborhoodFilter::GetMaskIncrements | ( | vtkIdType & | maskInc0, |
vtkIdType & | maskInc1, | ||
vtkIdType & | maskInc2 | ||
) |
Get the increments to use when looping through the mask.
|
inline |
Mask that defines area of interest in the neighborhood. Value is 1 for voxels of interest, 0 otherwise. This should be used when looping through neighborhood.
Definition at line 32 of file vtkImageNeighborhoodFilter.h.
|
virtual |
Get the neighborhood size (for erode class)
void vtkImageNeighborhoodFilter::GetRelativeHoodExtent | ( | int & | hoodMin0, |
int & | hoodMax0, | ||
int & | hoodMin1, | ||
int & | hoodMax1, | ||
int & | hoodMin2, | ||
int & | hoodMax2 | ||
) |
Get the neighborhood extent, where the max/min numbers are offsets from the current voxel. (So these numbers may be negative.) For use when looping through the neighborhood.
|
virtual |
Reimplemented in vtkImageLabelOutline.
|
static |
|
static |
|
static |
|
protected |
set size of neighborhood of each pixel
void vtkImageNeighborhoodFilter::SetNeighborTo4 | ( | ) |
void vtkImageNeighborhoodFilter::SetNeighborTo8 | ( | ) |
Use 4 or 8 neighbor connectivity in neighborhood around pixel This is in 3D
|
protected |
Definition at line 65 of file vtkImageNeighborhoodFilter.h.
|
protected |
Definition at line 64 of file vtkImageNeighborhoodFilter.h.