27 #ifndef vtkImageThreshold_h
28 #define vtkImageThreshold_h
31 #include "vtkImagingCoreModule.h"
61 vtkGetMacro(ReplaceIn,
int);
70 vtkGetMacro(InValue,
double);
78 vtkGetMacro(ReplaceOut,
int);
87 vtkGetMacro(OutValue,
double);
94 vtkGetMacro(UpperThreshold,
double);
95 vtkGetMacro(LowerThreshold,
double);
103 vtkGetMacro(OutputScalarType,
int);
109 {this->SetOutputScalarType(
VTK_LONG);}
113 {this->SetOutputScalarType(
VTK_INT);}
121 {this->SetOutputScalarType(
VTK_CHAR);}
topologically and geometrically regular array of data
void ThresholdBetween(double lower, double upper)
The values in a range (inclusive) match.
void SetOutputScalarTypeToInt()
void SetOutValue(double val)
Replace the in range pixels with this value.
void SetOutputScalarTypeToLong()
void SetOutputScalarTypeToChar()
void SetOutputScalarTypeToDouble()
void SetOutputScalarTypeToSignedChar()
void SetOutputScalarTypeToUnsignedLong()
void SetInValue(double val)
Replace the in range pixels with this value.
void SetOutputScalarTypeToShort()
void SetOutputScalarTypeToUnsignedShort()
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
static vtkImageThreshold * New()
void ThreadedRequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector, vtkImageData ***inData, vtkImageData **outData, int extent[6], int id)
If the subclass does not define an Execute method, then the task will be broken up,...
virtual int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
Subclasses can reimplement this method to collect information from their inputs and set information f...
void ThresholdByLower(double thresh)
The values less than or equal to the value match.
void ThresholdByUpper(double thresh)
The values greater than or equal to the value match.
void SetOutputScalarTypeToUnsignedChar()
void SetOutputScalarTypeToUnsignedInt()
void SetOutputScalarTypeToFloat()
a simple class to control print indentation
Generic filter that has one input.
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkBooleanMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
#define VTK_UNSIGNED_CHAR
#define VTK_UNSIGNED_SHORT
#define VTK_UNSIGNED_LONG