Section: Visualization Toolkit Imaging Classes
To use this filter, you typically set the number of colors (between 2 and 65536), execute it, and then retrieve the lookup table. The colors can then be using the lookup table and the image index.
To create an instance of class vtkImageQuantizeRGBToIndex, simply invoke its constructor as follows
obj = vtkImageQuantizeRGBToIndex
obj
is an instance of the vtkImageQuantizeRGBToIndex class.
string = obj.GetClassName ()
int = obj.IsA (string name)
vtkImageQuantizeRGBToIndex = obj.NewInstance ()
vtkImageQuantizeRGBToIndex = obj.SafeDownCast (vtkObject o)
obj.SetNumberOfColors (int )
- Set / Get the number of color index values to produce - must be
a number between 2 and 65536.
int = obj.GetNumberOfColorsMinValue ()
- Set / Get the number of color index values to produce - must be
a number between 2 and 65536.
int = obj.GetNumberOfColorsMaxValue ()
- Set / Get the number of color index values to produce - must be
a number between 2 and 65536.
int = obj.GetNumberOfColors ()
- Set / Get the number of color index values to produce - must be
a number between 2 and 65536.
vtkLookupTable = obj.GetLookupTable ()
- Get the resulting lookup table that contains the color definitions
corresponding to the index values in the output image.
double = obj.GetInitializeExecuteTime ()
double = obj.GetBuildTreeExecuteTime ()
double = obj.GetLookupIndexExecuteTime ()