#include <irtkLargestConnectedComponentIterative.h>
This class defines and implements the extraction of the largest connected component from a labelled image. Uses an iterative method so takes longer than the class irtkLargestConnectedComponent. The stack size needed, however, is lower.
Definition at line 29 of file irtkLargestConnectedComponentIterative.h.
Public Member Functions | |
irtkLargestConnectedComponentIterative (VoxelType=0) | |
Constructor. | |
~irtkLargestConnectedComponentIterative () | |
Destructor. | |
SetMacro (TargetLabel, VoxelType) | |
Set label sought. | |
GetMacro (TargetLabel, VoxelType) | |
Get label sought. | |
SetMacro (Mode2D, Bool) | |
Set mode. | |
GetMacro (Mode2D, Bool) | |
Get mode. | |
SetMacro (AllClustersMode, Bool) | |
Set mode. | |
GetMacro (AllClustersMode, Bool) | |
Get mode. | |
virtual void | Run () |
Run filter. | |
Protected Member Functions | |
virtual void | Run3D () |
Run filter. | |
virtual void | Run2D () |
virtual void | ResetMarks () |
virtual void | SelectLargestCluster () |
int | CheckAdjacency2D (VoxelType &markA, VoxelType &markB) |
int | CheckAdjacency3D (VoxelType &markA, VoxelType &markB) |
virtual Bool | RequiresBuffering () |
Returns whether the filter requires buffering. | |
virtual const char * | NameOfClass () |
Returns the name of the class. |