52 #ifndef vtkPackLabels_h
53 #define vtkPackLabels_h
57 #include "vtkFiltersCoreModule.h"
61 VTK_ABI_NAMESPACE_BEGIN
89 return (this->LabelsArray ? this->LabelsArray->GetNumberOfTuples() : 0);
112 SORT_BY_LABEL_VALUE = 0,
125 vtkSetClampMacro(SortBy,
int, SORT_BY_LABEL_VALUE, SORT_BY_LABEL_COUNT);
126 vtkGetMacro(SortBy,
int);
145 VTK_DEFAULT_TYPE = -1
147 vtkSetMacro(OutputScalarType,
int);
148 vtkGetMacro(OutputScalarType,
int);
164 vtkSetMacro(BackgroundValue,
unsigned long);
165 vtkGetMacro(BackgroundValue,
unsigned long);
175 vtkSetMacro(PassPointData,
bool);
176 vtkGetMacro(PassPointData,
bool);
177 vtkBooleanMacro(PassPointData,
bool);
178 vtkSetMacro(PassCellData,
bool);
179 vtkGetMacro(PassCellData,
bool);
180 vtkBooleanMacro(PassCellData,
bool);
181 vtkSetMacro(PassFieldData,
bool);
182 vtkGetMacro(PassFieldData,
bool);
183 vtkBooleanMacro(PassFieldData,
bool);
206 VTK_ABI_NAMESPACE_END
void SortByLabelValue()
Indicate whether to sort the output labels by their input scalars label value (SortByLabelValue), or to sort by the frequency of occurence of the label values(SortByLabelCount).
unsigned long BackgroundValue
#define VTK_UNSIGNED_SHORT
vtkSmartPointer< vtkIdTypeArray > LabelsCount
void SortByLabelCount()
Indicate whether to sort the output labels by their input scalars label value (SortByLabelValue), or to sort by the frequency of occurence of the label values(SortByLabelCount).
void SetOutputScalarTypeToDefault()
Specify the data type of the output image.
dynamic, self-adjusting array of vtkIdType
vtkSmartPointer< vtkDataArray > LabelsArray
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void SetOutputScalarTypeToUnsignedLong()
Specify the data type of the output image.
a simple class to control print indentation
abstract superclass for arrays of numeric data
void SetOutputScalarTypeToUnsignedShort()
Specify the data type of the output image.
vtkDataArray * GetLabels()
Return the number of and list of labels found in the input label map.
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called within ProcessRequest when a request asks the algorithm to do its work.
void SetOutputScalarTypeToUnsignedChar()
Specify the data type of the output image.
void SetOutputScalarTypeToUnsignedInt()
Specify the data type of the output image.
SortBy
Flags to control how sorting of the labels is performed.
renumber segmentation labels into contiguous runs of (potentially) smaller type
#define VTK_UNSIGNED_CHAR
vtkIdType GetNumberOfLabels()
Return the number of and list of labels found in the input label map.
vtkIdTypeArray * GetLabelsCount()
Return the frequency of occurence (i.e., the count) of each label returned in the LabelsArray...
#define VTK_UNSIGNED_LONG
Superclass for algorithms that produce output of the same type as input.
DefaultScalarType
Specify the data type of the output image.
static vtkDataSetAlgorithm * New()