#include <vtkImageQuantizeRGBToIndex.h>
Inheritance diagram for vtkImageQuantizeRGBToIndex:
Public Methods | |
virtual const char * | GetClassName () |
virtual int | IsA (const char *type) |
void | PrintSelf (ostream &os, vtkIndent indent) |
virtual void | SetNumberOfColors (int) |
virtual int | GetNumberOfColors () |
virtual vtkLookupTable * | GetLookupTable () |
virtual float | GetInitializeExecuteTime () |
virtual float | GetBuildTreeExecuteTime () |
virtual float | GetLookupIndexExecuteTime () |
virtual int | GetInputType () |
virtual void | SetInitializeExecuteTime (float) |
virtual void | SetBuildTreeExecuteTime (float) |
virtual void | SetLookupIndexExecuteTime (float) |
Static Public Methods | |
vtkImageQuantizeRGBToIndex * | New () |
int | IsTypeOf (const char *type) |
vtkImageQuantizeRGBToIndex * | SafeDownCast (vtkObject *o) |
Protected Methods | |
vtkImageQuantizeRGBToIndex () | |
~vtkImageQuantizeRGBToIndex () | |
vtkImageQuantizeRGBToIndex (const vtkImageQuantizeRGBToIndex &) | |
void | operator= (const vtkImageQuantizeRGBToIndex &) |
void | ExecuteInformation (vtkImageData *inData, vtkImageData *outData) |
void | ComputeInputUpdateExtent (int inExt[6], int outExt[6]) |
void | ExecuteInformation () |
void | Execute (vtkImageData *inData, vtkImageData *outData) |
void | Execute (vtkImageData *outData) |
void | Execute () |
void | EnlargeOutputUpdateExtents (vtkDataObject *data) |
Protected Attributes | |
vtkLookupTable * | LookupTable |
int | NumberOfColors |
int | InputType |
float | InitializeExecuteTime |
float | BuildTreeExecuteTime |
float | LookupIndexExecuteTime |
vtkImageQuantizeRGBToIndex takes a 3 component RGB image as input and produces a one component index image as output, along with a lookup table that contains the color definitions for the index values. This filter works on the entire input extent - it does not perform streaming, and it does not supported threaded execution (because it has to process the entire image).
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.
|
Generate more than requested. Called by the superclass before an execute, and before output memory is allocated. |
|
Return the class name as a string. This method is defined in all subclasses of vtkObject with the vtkTypeMacro found in vtkSetGet.h. Reimplemented from vtkImageToImageFilter. |
|
For internal use only - get the type of the image |
|
Get the resulting lookup table that contains the color definitions corresponding to the index values in the output image. |
|
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 vtkImageToImageFilter. |
|
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 vtkImageToImageFilter. |
|
Instantiate object with no start, end, or progress methods. Reimplemented from vtkImageToImageFilter. |
|
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 vtkImageToImageFilter. |
|
Will cast the supplied object to vtkObject* is this is a safe operation (i.e., a safe downcast); otherwise NULL is returned. This method is defined in all subclasses of vtkObject with the vtkTypeMacro found in vtkSetGet.h. Reimplemented from vtkImageToImageFilter. |
|
For internal use only - set the times for execution |
|
Set / Get the number of color index values to produce - must be a number between 2 and 65536. |