VTK
|
Flexible threshold. More...
#include <vtkImageThreshold.h>
Flexible threshold.
vtkImageThreshold can do binary or continuous thresholding for lower, upper or a range of data. The output data type may be different than the output, but defaults to the same type.
Definition at line 33 of file vtkImageThreshold.h.
Reimplemented from vtkThreadedImageAlgorithm.
Definition at line 37 of file vtkImageThreshold.h.
vtkImageThreshold::vtkImageThreshold | ( | ) | [protected] |
vtkImageThreshold::~vtkImageThreshold | ( | ) | [inline, protected] |
Definition at line 111 of file vtkImageThreshold.h.
static vtkImageThreshold* vtkImageThreshold::New | ( | ) | [static] |
Create an object with Debug turned off, modified time initialized to zero, and reference counting on.
Reimplemented from vtkAlgorithm.
static int vtkImageThreshold::IsTypeOf | ( | const char * | name | ) | [static] |
Return 1 if this class type is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h.
Reimplemented from vtkThreadedImageAlgorithm.
virtual int vtkImageThreshold::IsA | ( | const char * | name | ) | [virtual] |
Return 1 if this class is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h.
Reimplemented from vtkThreadedImageAlgorithm.
static vtkImageThreshold* vtkImageThreshold::SafeDownCast | ( | vtkObjectBase * | o | ) | [static] |
Reimplemented from vtkThreadedImageAlgorithm.
virtual vtkObjectBase* vtkImageThreshold::NewInstanceInternal | ( | ) | const [protected, virtual] |
Reimplemented from vtkThreadedImageAlgorithm.
vtkImageThreshold* vtkImageThreshold::NewInstance | ( | ) | const |
Reimplemented from vtkThreadedImageAlgorithm.
void vtkImageThreshold::PrintSelf | ( | ostream & | os, |
vtkIndent | indent | ||
) | [virtual] |
Methods invoked by print to print information about the object including superclasses. Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes.
Reimplemented from vtkThreadedImageAlgorithm.
void vtkImageThreshold::ThresholdByUpper | ( | double | thresh | ) |
The values greater than or equal to the value match.
void vtkImageThreshold::ThresholdByLower | ( | double | thresh | ) |
The values less than or equal to the value match.
void vtkImageThreshold::ThresholdBetween | ( | double | lower, |
double | upper | ||
) |
The values in a range (inclusive) match
virtual void vtkImageThreshold::SetReplaceIn | ( | int | ) | [virtual] |
Determines whether to replace the pixel in range with InValue
virtual int vtkImageThreshold::GetReplaceIn | ( | ) | [virtual] |
Determines whether to replace the pixel in range with InValue
virtual void vtkImageThreshold::ReplaceInOn | ( | ) | [virtual] |
Determines whether to replace the pixel in range with InValue
virtual void vtkImageThreshold::ReplaceInOff | ( | ) | [virtual] |
Determines whether to replace the pixel in range with InValue
void vtkImageThreshold::SetInValue | ( | double | val | ) |
Replace the in range pixels with this value.
virtual double vtkImageThreshold::GetInValue | ( | ) | [virtual] |
Replace the in range pixels with this value.
virtual void vtkImageThreshold::SetReplaceOut | ( | int | ) | [virtual] |
Determines whether to replace the pixel out of range with OutValue
virtual int vtkImageThreshold::GetReplaceOut | ( | ) | [virtual] |
Determines whether to replace the pixel out of range with OutValue
virtual void vtkImageThreshold::ReplaceOutOn | ( | ) | [virtual] |
Determines whether to replace the pixel out of range with OutValue
virtual void vtkImageThreshold::ReplaceOutOff | ( | ) | [virtual] |
Determines whether to replace the pixel out of range with OutValue
void vtkImageThreshold::SetOutValue | ( | double | val | ) |
Replace the in range pixels with this value.
virtual double vtkImageThreshold::GetOutValue | ( | ) | [virtual] |
Replace the in range pixels with this value.
virtual double vtkImageThreshold::GetUpperThreshold | ( | ) | [virtual] |
Get the Upper and Lower thresholds.
virtual double vtkImageThreshold::GetLowerThreshold | ( | ) | [virtual] |
Get the Upper and Lower thresholds.
virtual void vtkImageThreshold::SetOutputScalarType | ( | int | ) | [virtual] |
Set the desired output scalar type to cast to
virtual int vtkImageThreshold::GetOutputScalarType | ( | ) | [virtual] |
Set the desired output scalar type to cast to
void vtkImageThreshold::SetOutputScalarTypeToDouble | ( | ) | [inline] |
Set the desired output scalar type to cast to
Definition at line 85 of file vtkImageThreshold.h.
void vtkImageThreshold::SetOutputScalarTypeToFloat | ( | ) | [inline] |
Set the desired output scalar type to cast to
Definition at line 87 of file vtkImageThreshold.h.
void vtkImageThreshold::SetOutputScalarTypeToLong | ( | ) | [inline] |
Set the desired output scalar type to cast to
Definition at line 89 of file vtkImageThreshold.h.
void vtkImageThreshold::SetOutputScalarTypeToUnsignedLong | ( | ) | [inline] |
Set the desired output scalar type to cast to
Definition at line 91 of file vtkImageThreshold.h.
void vtkImageThreshold::SetOutputScalarTypeToInt | ( | ) | [inline] |
Set the desired output scalar type to cast to
Definition at line 93 of file vtkImageThreshold.h.
void vtkImageThreshold::SetOutputScalarTypeToUnsignedInt | ( | ) | [inline] |
Set the desired output scalar type to cast to
Definition at line 95 of file vtkImageThreshold.h.
void vtkImageThreshold::SetOutputScalarTypeToShort | ( | ) | [inline] |
Set the desired output scalar type to cast to
Definition at line 97 of file vtkImageThreshold.h.
void vtkImageThreshold::SetOutputScalarTypeToUnsignedShort | ( | ) | [inline] |
Set the desired output scalar type to cast to
Definition at line 99 of file vtkImageThreshold.h.
void vtkImageThreshold::SetOutputScalarTypeToChar | ( | ) | [inline] |
Set the desired output scalar type to cast to
Definition at line 101 of file vtkImageThreshold.h.
void vtkImageThreshold::SetOutputScalarTypeToSignedChar | ( | ) | [inline] |
Set the desired output scalar type to cast to
Definition at line 103 of file vtkImageThreshold.h.
void vtkImageThreshold::SetOutputScalarTypeToUnsignedChar | ( | ) | [inline] |
Set the desired output scalar type to cast to
Definition at line 105 of file vtkImageThreshold.h.
virtual int vtkImageThreshold::RequestInformation | ( | vtkInformation * | request, |
vtkInformationVector ** | inputVector, | ||
vtkInformationVector * | outputVector | ||
) | [protected, virtual] |
Subclasses can reimplement this method to collect information from their inputs and set information for their outputs.
Reimplemented from vtkImageAlgorithm.
void vtkImageThreshold::ThreadedRequestData | ( | vtkInformation * | request, |
vtkInformationVector ** | inputVector, | ||
vtkInformationVector * | outputVector, | ||
vtkImageData *** | inData, | ||
vtkImageData ** | outData, | ||
int | extent[6], | ||
int | threadId | ||
) | [protected, virtual] |
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. It is public so that the thread functions can call this method.
Reimplemented from vtkThreadedImageAlgorithm.
double vtkImageThreshold::UpperThreshold [protected] |
Definition at line 113 of file vtkImageThreshold.h.
double vtkImageThreshold::LowerThreshold [protected] |
Definition at line 114 of file vtkImageThreshold.h.
int vtkImageThreshold::ReplaceIn [protected] |
Definition at line 115 of file vtkImageThreshold.h.
double vtkImageThreshold::InValue [protected] |
Definition at line 116 of file vtkImageThreshold.h.
int vtkImageThreshold::ReplaceOut [protected] |
Definition at line 117 of file vtkImageThreshold.h.
double vtkImageThreshold::OutValue [protected] |
Definition at line 118 of file vtkImageThreshold.h.
int vtkImageThreshold::OutputScalarType [protected] |
Definition at line 120 of file vtkImageThreshold.h.