Documentation for vtkImageCast

vtkImageCast - Image Data type Casting Filter

Super Class: vtkImageFilter

Description:

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.

 

See Also:

vtkImageThreshold vtkImageShiftScale

 

Methods:

void vtkImageCast ()
static vtkImageCast *New ()
const char *GetClassName ()
void PrintSelf (unknown & ,vtkIndent )
void SetOutputScalarType (int )
int GetOutputScalarType ()
void SetOutputScalarTypeToFloat ()
void SetOutputScalarTypeToDouble ()
void SetOutputScalarTypeToInt ()
void SetOutputScalarTypeToUnsignedInt ()
void SetOutputScalarTypeToLong ()
void SetOutputScalarTypeToUnsignedLong ()
void SetOutputScalarTypeToShort ()
void SetOutputScalarTypeToUnsignedShort ()
void SetOutputScalarTypeToUnsignedChar ()
void SetOutputScalarTypeToChar ()
void SetClampOverflow (int )
int GetClampOverflow ()
void ClampOverflowOn ()
void ClampOverflowOff ()
void ExecuteImageInformation ()
void InternalUpdate (vtkImageData *)
void ThreadedExecute (vtkImageData * ,vtkImageData * ,int ,int )

 

Detailed Method Descriptions:

Set the desired output scalar type to cast to

void SetOutputScalarType (int )
int GetOutputScalarType ()
void SetOutputScalarTypeToFloat ()
void SetOutputScalarTypeToDouble ()
void SetOutputScalarTypeToInt ()
void SetOutputScalarTypeToUnsignedInt ()
void SetOutputScalarTypeToLong ()
void SetOutputScalarTypeToUnsignedLong ()
void SetOutputScalarTypeToShort ()
void SetOutputScalarTypeToUnsignedShort ()
void SetOutputScalarTypeToUnsignedChar ()
void SetOutputScalarTypeToChar ()

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.

void SetClampOverflow (int )
int GetClampOverflow ()
void ClampOverflowOn ()
void ClampOverflowOff ()