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
vtkImageCast Class Reference

Image Data type Casting Filter. More...

#include <vtkImageCast.h>

Inherits vtkThreadedImageAlgorithm.

Public Types

typedef vtkThreadedImageAlgorithm Superclass
 

Public Member Functions

virtual int IsA (const char *type)
 
vtkImageCastNewInstance () const
 
void PrintSelf (ostream &os, vtkIndent indent)
 
virtual void SetOutputScalarType (int)
 
virtual int GetOutputScalarType ()
 
void SetOutputScalarTypeToFloat ()
 
void SetOutputScalarTypeToDouble ()
 
void SetOutputScalarTypeToInt ()
 
void SetOutputScalarTypeToUnsignedInt ()
 
void SetOutputScalarTypeToLong ()
 
void SetOutputScalarTypeToUnsignedLong ()
 
void SetOutputScalarTypeToShort ()
 
void SetOutputScalarTypeToUnsignedShort ()
 
void SetOutputScalarTypeToUnsignedChar ()
 
void SetOutputScalarTypeToChar ()
 
virtual void SetClampOverflow (int)
 
virtual int GetClampOverflow ()
 
virtual void ClampOverflowOn ()
 
virtual void ClampOverflowOff ()
 

Static Public Member Functions

static vtkImageCastNew ()
 
static int IsTypeOf (const char *type)
 
static vtkImageCastSafeDownCast (vtkObjectBase *o)
 

Protected Member Functions

virtual vtkObjectBase * NewInstanceInternal () const
 
 vtkImageCast ()
 
 ~vtkImageCast ()
 
virtual int RequestInformation (vtkInformation *, vtkInformationVector **, vtkInformationVector *)
 
void ThreadedExecute (vtkImageData *inData, vtkImageData *outData, int ext[6], int id)
 

Protected Attributes

int ClampOverflow
 
int OutputScalarType
 

Detailed Description

Image Data type Casting Filter.

vtkImageCast filter casts the input type to match the output type in the image processing pipeline. The filter does nothing if the input already has the correct type. To specify the "CastTo" type, use "SetOutputScalarType" method.

Warning
As vtkImageCast only casts values without rescaling them, its use is not recommented. vtkImageShiftScale is the recommented way to change the type of an image data.
See Also
vtkImageThreshold vtkImageShiftScale
Examples:
vtkImageCast (Examples)
Tests:
vtkImageCast (Tests)

Definition at line 45 of file vtkImageCast.h.

Member Typedef Documentation

typedef vtkThreadedImageAlgorithm vtkImageCast::Superclass

Definition at line 49 of file vtkImageCast.h.

Constructor & Destructor Documentation

vtkImageCast::vtkImageCast ( )
protected
vtkImageCast::~vtkImageCast ( )
inlineprotected

Definition at line 85 of file vtkImageCast.h.

Member Function Documentation

static vtkImageCast* vtkImageCast::New ( )
static
static int vtkImageCast::IsTypeOf ( const char *  type)
static
virtual int vtkImageCast::IsA ( const char *  type)
virtual
static vtkImageCast* vtkImageCast::SafeDownCast ( vtkObjectBase *  o)
static
virtual vtkObjectBase* vtkImageCast::NewInstanceInternal ( ) const
protectedvirtual
vtkImageCast* vtkImageCast::NewInstance ( ) const
void vtkImageCast::PrintSelf ( ostream &  os,
vtkIndent  indent 
)
virtual void vtkImageCast::SetOutputScalarType ( int  )
virtual

Set the desired output scalar type to cast to.

virtual int vtkImageCast::GetOutputScalarType ( )
virtual

Set the desired output scalar type to cast to.

void vtkImageCast::SetOutputScalarTypeToFloat ( )
inline

Set the desired output scalar type to cast to.

Definition at line 56 of file vtkImageCast.h.

void vtkImageCast::SetOutputScalarTypeToDouble ( )
inline

Set the desired output scalar type to cast to.

Definition at line 57 of file vtkImageCast.h.

void vtkImageCast::SetOutputScalarTypeToInt ( )
inline

Set the desired output scalar type to cast to.

Definition at line 58 of file vtkImageCast.h.

void vtkImageCast::SetOutputScalarTypeToUnsignedInt ( )
inline

Set the desired output scalar type to cast to.

Definition at line 59 of file vtkImageCast.h.

void vtkImageCast::SetOutputScalarTypeToLong ( )
inline

Set the desired output scalar type to cast to.

Definition at line 61 of file vtkImageCast.h.

void vtkImageCast::SetOutputScalarTypeToUnsignedLong ( )
inline

Set the desired output scalar type to cast to.

Definition at line 62 of file vtkImageCast.h.

void vtkImageCast::SetOutputScalarTypeToShort ( )
inline

Set the desired output scalar type to cast to.

Definition at line 64 of file vtkImageCast.h.

void vtkImageCast::SetOutputScalarTypeToUnsignedShort ( )
inline

Set the desired output scalar type to cast to.

Definition at line 65 of file vtkImageCast.h.

void vtkImageCast::SetOutputScalarTypeToUnsignedChar ( )
inline

Set the desired output scalar type to cast to.

Definition at line 67 of file vtkImageCast.h.

void vtkImageCast::SetOutputScalarTypeToChar ( )
inline

Set the desired output scalar type to cast to.

Definition at line 69 of file vtkImageCast.h.

virtual void vtkImageCast::SetClampOverflow ( int  )
virtual

When the ClampOverflow flag is on, the data is thresholded so that the output value does not exceed the max or min of the data type. By default ClampOverflow is off.

virtual int vtkImageCast::GetClampOverflow ( )
virtual

When the ClampOverflow flag is on, the data is thresholded so that the output value does not exceed the max or min of the data type. By default ClampOverflow is off.

virtual void vtkImageCast::ClampOverflowOn ( )
virtual

When the ClampOverflow flag is on, the data is thresholded so that the output value does not exceed the max or min of the data type. By default ClampOverflow is off.

virtual void vtkImageCast::ClampOverflowOff ( )
virtual

When the ClampOverflow flag is on, the data is thresholded so that the output value does not exceed the max or min of the data type. By default ClampOverflow is off.

virtual int vtkImageCast::RequestInformation ( vtkInformation *  ,
vtkInformationVector **  ,
vtkInformationVector *   
)
protectedvirtual
void vtkImageCast::ThreadedExecute ( vtkImageData *  inData,
vtkImageData *  outData,
int  ext[6],
int  id 
)
protected

Member Data Documentation

int vtkImageCast::ClampOverflow
protected

Definition at line 85 of file vtkImageCast.h.

int vtkImageCast::OutputScalarType
protected

Definition at line 88 of file vtkImageCast.h.


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