26 #ifndef __vtkImageThreshold_h
27 #define __vtkImageThreshold_h
30 #include "vtkImagingCoreModule.h"
31 #include "vtkThreadedImageAlgorithm.h"
38 void PrintSelf(ostream& os, vtkIndent indent);
41 void ThresholdByUpper(
double thresh);
44 void ThresholdByLower(
double thresh);
47 void ThresholdBetween(
double lower,
double upper);
51 vtkSetMacro(ReplaceIn,
int);
52 vtkGetMacro(ReplaceIn,
int);
53 vtkBooleanMacro(ReplaceIn,
int);
58 void SetInValue(
double val);
59 vtkGetMacro(InValue,
double);
64 vtkSetMacro(ReplaceOut,
int);
65 vtkGetMacro(ReplaceOut,
int);
66 vtkBooleanMacro(ReplaceOut,
int);
71 void SetOutValue(
double val);
72 vtkGetMacro(OutValue,
double);
77 vtkGetMacro(UpperThreshold,
double);
78 vtkGetMacro(LowerThreshold,
double);
83 vtkSetMacro(OutputScalarType,
int);
84 vtkGetMacro(OutputScalarType,
int);
86 {this->SetOutputScalarType(VTK_DOUBLE);}
88 {this->SetOutputScalarType(VTK_FLOAT);}
90 {this->SetOutputScalarType(VTK_LONG);}
92 {this->SetOutputScalarType(VTK_UNSIGNED_LONG);};
94 {this->SetOutputScalarType(VTK_INT);}
96 {this->SetOutputScalarType(VTK_UNSIGNED_INT);}
98 {this->SetOutputScalarType(VTK_SHORT);}
100 {this->SetOutputScalarType(VTK_UNSIGNED_SHORT);}
102 {this->SetOutputScalarType(VTK_CHAR);}
104 {this->SetOutputScalarType(VTK_SIGNED_CHAR);}
106 {this->SetOutputScalarType(VTK_UNSIGNED_CHAR);}
113 double UpperThreshold;
122 virtual int RequestInformation (vtkInformation *, vtkInformationVector **, vtkInformationVector *);
124 void ThreadedRequestData(vtkInformation *request,
125 vtkInformationVector **inputVector,
126 vtkInformationVector *outputVector,
127 vtkImageData ***inData, vtkImageData **outData,
128 int extent[6],
int id);
void SetOutputScalarTypeToChar()
void SetOutputScalarTypeToUnsignedChar()
void SetOutputScalarTypeToSignedChar()
void SetOutputScalarTypeToInt()
void SetOutputScalarTypeToFloat()
void SetOutputScalarTypeToDouble()
void SetOutputScalarTypeToUnsignedInt()
void SetOutputScalarTypeToLong()
void SetOutputScalarTypeToUnsignedShort()
void SetOutputScalarTypeToShort()
void SetOutputScalarTypeToUnsignedLong()