VTK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
vtkImageThreshold Class Reference

Flexible threshold. More...

#include <vtkImageThreshold.h>

Inherits vtkThreadedImageAlgorithm.

Public Types

typedef vtkThreadedImageAlgorithm Superclass
 

Public Member Functions

virtual int IsA (const char *type)
 
vtkImageThresholdNewInstance () const
 
void PrintSelf (ostream &os, vtkIndent indent)
 
void ThresholdByUpper (double thresh)
 
void ThresholdByLower (double thresh)
 
void ThresholdBetween (double lower, double upper)
 
virtual void SetReplaceIn (int)
 
virtual int GetReplaceIn ()
 
virtual void ReplaceInOn ()
 
virtual void ReplaceInOff ()
 
void SetInValue (double val)
 
virtual double GetInValue ()
 
virtual void SetReplaceOut (int)
 
virtual int GetReplaceOut ()
 
virtual void ReplaceOutOn ()
 
virtual void ReplaceOutOff ()
 
void SetOutValue (double val)
 
virtual double GetOutValue ()
 
virtual double GetUpperThreshold ()
 
virtual double GetLowerThreshold ()
 
virtual void SetOutputScalarType (int)
 
virtual int GetOutputScalarType ()
 
void SetOutputScalarTypeToDouble ()
 
void SetOutputScalarTypeToFloat ()
 
void SetOutputScalarTypeToLong ()
 
void SetOutputScalarTypeToUnsignedLong ()
 
void SetOutputScalarTypeToInt ()
 
void SetOutputScalarTypeToUnsignedInt ()
 
void SetOutputScalarTypeToShort ()
 
void SetOutputScalarTypeToUnsignedShort ()
 
void SetOutputScalarTypeToChar ()
 
void SetOutputScalarTypeToSignedChar ()
 
void SetOutputScalarTypeToUnsignedChar ()
 

Static Public Member Functions

static vtkImageThresholdNew ()
 
static int IsTypeOf (const char *type)
 
static vtkImageThresholdSafeDownCast (vtkObjectBase *o)
 

Protected Member Functions

virtual vtkObjectBase * NewInstanceInternal () const
 
 vtkImageThreshold ()
 
 ~vtkImageThreshold ()
 
virtual int RequestInformation (vtkInformation *, vtkInformationVector **, vtkInformationVector *)
 
void ThreadedRequestData (vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector, vtkImageData ***inData, vtkImageData **outData, int extent[6], int id)
 

Protected Attributes

double UpperThreshold
 
double LowerThreshold
 
int ReplaceIn
 
double InValue
 
int ReplaceOut
 
double OutValue
 
int OutputScalarType
 

Detailed Description

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.

Tests:
vtkImageThreshold (Tests)

Definition at line 33 of file vtkImageThreshold.h.

Member Typedef Documentation

typedef vtkThreadedImageAlgorithm vtkImageThreshold::Superclass

Definition at line 37 of file vtkImageThreshold.h.

Constructor & Destructor Documentation

vtkImageThreshold::vtkImageThreshold ( )
protected
vtkImageThreshold::~vtkImageThreshold ( )
inlineprotected

Definition at line 111 of file vtkImageThreshold.h.

Member Function Documentation

static vtkImageThreshold* vtkImageThreshold::New ( )
static
static int vtkImageThreshold::IsTypeOf ( const char *  type)
static
virtual int vtkImageThreshold::IsA ( const char *  type)
virtual
static vtkImageThreshold* vtkImageThreshold::SafeDownCast ( vtkObjectBase *  o)
static
virtual vtkObjectBase* vtkImageThreshold::NewInstanceInternal ( ) const
protectedvirtual
vtkImageThreshold* vtkImageThreshold::NewInstance ( ) const
void vtkImageThreshold::PrintSelf ( ostream &  os,
vtkIndent  indent 
)
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 *  ,
vtkInformationVector **  ,
vtkInformationVector *   
)
protectedvirtual
void vtkImageThreshold::ThreadedRequestData ( vtkInformation *  request,
vtkInformationVector **  inputVector,
vtkInformationVector *  outputVector,
vtkImageData ***  inData,
vtkImageData **  outData,
int  extent[6],
int  id 
)
protected

Member Data Documentation

double vtkImageThreshold::UpperThreshold
protected

Definition at line 111 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.


The documentation for this class was generated from the following file: