Slicer  5.1
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
List of all members | Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes
vtkImageNeighborhoodFilter Class Reference

Augments vtkImageSpatialFilter with a mask to allow neighborhoods of any shape. More...

#include <Libs/MRML/Logic/vtkImageNeighborhoodFilter.h>

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

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 vtkImageNeighborhoodFilterNew ()
 
static vtkImageNeighborhoodFilterSafeDownCast (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
 

Detailed Description

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.

Member Typedef Documentation

◆ Superclass

typedef vtkImageSpatialAlgorithm vtkImageNeighborhoodFilter::Superclass

Definition at line 26 of file vtkImageNeighborhoodFilter.h.

Constructor & Destructor Documentation

◆ vtkImageNeighborhoodFilter()

vtkImageNeighborhoodFilter::vtkImageNeighborhoodFilter ( )
protected

◆ ~vtkImageNeighborhoodFilter()

vtkImageNeighborhoodFilter::~vtkImageNeighborhoodFilter ( )
overrideprotected

Member Function Documentation

◆ GetClassName()

virtual const char* vtkImageNeighborhoodFilter::GetClassName ( )
virtual

Reimplemented in vtkImageLabelOutline.

◆ GetMaskIncrements()

void vtkImageNeighborhoodFilter::GetMaskIncrements ( vtkIdType &  maskInc0,
vtkIdType &  maskInc1,
vtkIdType &  maskInc2 
)


Get the increments to use when looping through the mask.

◆ GetMaskPointer()

unsigned char* vtkImageNeighborhoodFilter::GetMaskPointer ( )
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.

◆ GetNeighbor()

virtual int vtkImageNeighborhoodFilter::GetNeighbor ( )
virtual

Get the neighborhood size (for erode class)

◆ GetRelativeHoodExtent()

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.

◆ IsA()

virtual int vtkImageNeighborhoodFilter::IsA ( const char *  type)
virtual

Reimplemented in vtkImageLabelOutline.

◆ IsTypeOf()

static int vtkImageNeighborhoodFilter::IsTypeOf ( const char *  type)
static

◆ New()

static vtkImageNeighborhoodFilter* vtkImageNeighborhoodFilter::New ( )
static

◆ SafeDownCast()

static vtkImageNeighborhoodFilter* vtkImageNeighborhoodFilter::SafeDownCast ( vtkObject *  o)
static

◆ SetKernelSize()

void vtkImageNeighborhoodFilter::SetKernelSize ( int  size0,
int  size1,
int  size2 
)
protected


set size of neighborhood of each pixel

◆ SetNeighborTo4()

void vtkImageNeighborhoodFilter::SetNeighborTo4 ( )

◆ SetNeighborTo8()

void vtkImageNeighborhoodFilter::SetNeighborTo8 ( )

Use 4 or 8 neighbor connectivity in neighborhood around pixel This is in 3D

Member Data Documentation

◆ Mask

unsigned char* vtkImageNeighborhoodFilter::Mask
protected

Definition at line 65 of file vtkImageNeighborhoodFilter.h.

◆ Neighbor

int vtkImageNeighborhoodFilter::Neighbor
protected

Definition at line 64 of file vtkImageNeighborhoodFilter.h.


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