18 #ifndef vtkImageBinaryThreshold_h
19 #define vtkImageBinaryThreshold_h
21 #include "vtkImagingCoreModule.h"
24 VTK_ABI_NAMESPACE_BEGIN
38 vtkSetMacro(ReplaceIn,
bool);
39 vtkGetMacro(ReplaceIn,
bool);
40 vtkBooleanMacro(ReplaceIn,
bool);
48 vtkSetMacro(InValue,
double);
49 vtkGetMacro(InValue,
double);
57 vtkSetMacro(ReplaceOut,
bool);
58 vtkGetMacro(ReplaceOut,
bool);
59 vtkBooleanMacro(ReplaceOut,
bool);
67 vtkSetMacro(OutValue,
double);
68 vtkGetMacro(OutValue,
double);
76 vtkSetMacro(UpperThreshold,
double);
77 vtkGetMacro(UpperThreshold,
double);
85 vtkSetMacro(LowerThreshold,
double);
86 vtkGetMacro(LowerThreshold,
double);
101 THRESHOLD_BETWEEN = 0,
111 vtkSetMacro(ThresholdFunction,
int);
112 vtkGetMacro(ThresholdFunction,
int);
122 vtkSetMacro(OutputScalarType,
int);
123 vtkGetMacro(OutputScalarType,
int);
155 VTK_FUTURE_CONST
int outExt[6],
int id)
override;
161 int ThresholdFunction = ThresholdFunction::THRESHOLD_BETWEEN;
164 bool ReplaceIn =
false;
165 double InValue = 0.0;
166 bool ReplaceOut =
false;
167 double OutValue = 0.0;
169 int OutputScalarType = -1;
172 VTK_ABI_NAMESPACE_END
173 #endif // vtkImageBinaryThreshold_h
#define VTK_UNSIGNED_SHORT
vtkImageBinaryThreshold is an image thresholding algorithm that allows users to replace pixel data by...
void SetOutputScalarTypeToLong()
Set the desired output scalar type to cast to.
Generic filter that has one input.
void SetOutputScalarTypeToSignedChar()
Set the desired output scalar type to cast to.
a simple class to control print indentation
topologically and geometrically regular array of data
virtual int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
Subclasses can reimplement this method to collect information from their inputs and set information f...
void SetOutputScalarTypeToDouble()
Set the desired output scalar type to cast to.
void SetOutputScalarTypeToShort()
Set the desired output scalar type to cast to.
virtual void ThreadedRequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector, vtkImageData ***inData, vtkImageData **outData, VTK_FUTURE_CONST int extent[6], int threadId)
If the subclass does not define an Execute method, then the task will be broken up, multiple threads will be spawned, and each thread will call this method.
void SetOutputScalarTypeToChar()
Set the desired output scalar type to cast to.
void SetOutputScalarTypeToUnsignedLong()
Set the desired output scalar type to cast to.
void SetOutputScalarTypeToUnsignedInt()
Set the desired output scalar type to cast to.
void SetOutputScalarTypeToUnsignedChar()
Set the desired output scalar type to cast to.
#define VTK_UNSIGNED_CHAR
void SetOutputScalarTypeToInt()
Set the desired output scalar type to cast to.
void SetOutputScalarTypeToFloat()
Set the desired output scalar type to cast to.
ThresholdFunction
Describe the behavior of the threshold:
static vtkAlgorithm * New()
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
#define VTK_UNSIGNED_LONG
void SetOutputScalarTypeToUnsignedShort()
Set the desired output scalar type to cast to.