#include <vtkImageQuantizeRGBToIndex.h>
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.
Definition at line 40 of file vtkImageQuantizeRGBToIndex.h.
vtkImageQuantizeRGBToIndex::vtkImageQuantizeRGBToIndex | ( | ) | [protected] |
vtkImageQuantizeRGBToIndex::~vtkImageQuantizeRGBToIndex | ( | ) | [protected] |
static vtkImageQuantizeRGBToIndex* vtkImageQuantizeRGBToIndex::New | ( | ) | [static] |
Create an object with Debug turned off, modified time initialized to zero, and reference counting on.
Reimplemented from vtkAlgorithm.
virtual const char* vtkImageQuantizeRGBToIndex::GetClassName | ( | ) | [virtual] |
Reimplemented from vtkImageAlgorithm.
static int vtkImageQuantizeRGBToIndex::IsTypeOf | ( | const char * | name | ) | [static] |
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 vtkImageAlgorithm.
virtual int vtkImageQuantizeRGBToIndex::IsA | ( | const char * | name | ) | [virtual] |
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 vtkImageAlgorithm.
static vtkImageQuantizeRGBToIndex* vtkImageQuantizeRGBToIndex::SafeDownCast | ( | vtkObject * | o | ) | [static] |
Reimplemented from vtkImageAlgorithm.
void vtkImageQuantizeRGBToIndex::PrintSelf | ( | ostream & | os, | |
vtkIndent | indent | |||
) | [virtual] |
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 vtkImageAlgorithm.
virtual void vtkImageQuantizeRGBToIndex::SetNumberOfColors | ( | int | ) | [virtual] |
Set / Get the number of color index values to produce - must be a number between 2 and 65536.
virtual int vtkImageQuantizeRGBToIndex::GetNumberOfColors | ( | ) | [virtual] |
Set / Get the number of color index values to produce - must be a number between 2 and 65536.
virtual vtkLookupTable* vtkImageQuantizeRGBToIndex::GetLookupTable | ( | ) | [virtual] |
Get the resulting lookup table that contains the color definitions corresponding to the index values in the output image.
virtual double vtkImageQuantizeRGBToIndex::GetInitializeExecuteTime | ( | ) | [virtual] |
virtual double vtkImageQuantizeRGBToIndex::GetBuildTreeExecuteTime | ( | ) | [virtual] |
virtual double vtkImageQuantizeRGBToIndex::GetLookupIndexExecuteTime | ( | ) | [virtual] |
virtual int vtkImageQuantizeRGBToIndex::GetInputType | ( | ) | [virtual] |
For internal use only - get the type of the image
virtual void vtkImageQuantizeRGBToIndex::SetInitializeExecuteTime | ( | double | ) | [virtual] |
For internal use only - set the times for execution
virtual void vtkImageQuantizeRGBToIndex::SetBuildTreeExecuteTime | ( | double | ) | [virtual] |
For internal use only - set the times for execution
virtual void vtkImageQuantizeRGBToIndex::SetLookupIndexExecuteTime | ( | double | ) | [virtual] |
For internal use only - set the times for execution
virtual int vtkImageQuantizeRGBToIndex::RequestInformation | ( | vtkInformation * | , | |
vtkInformationVector ** | , | |||
vtkInformationVector * | ||||
) | [protected, virtual] |
Reimplemented from vtkImageAlgorithm.
virtual int vtkImageQuantizeRGBToIndex::RequestUpdateExtent | ( | vtkInformation * | , | |
vtkInformationVector ** | , | |||
vtkInformationVector * | ||||
) | [protected, virtual] |
Reimplemented from vtkImageAlgorithm.
virtual int vtkImageQuantizeRGBToIndex::RequestData | ( | vtkInformation * | request, | |
vtkInformationVector ** | inputVector, | |||
vtkInformationVector * | outputVector | |||
) | [protected, virtual] |
This is called by the superclass. This is the method you should override.
Reimplemented from vtkImageAlgorithm.
vtkLookupTable* vtkImageQuantizeRGBToIndex::LookupTable [protected] |
Definition at line 82 of file vtkImageQuantizeRGBToIndex.h.
int vtkImageQuantizeRGBToIndex::NumberOfColors [protected] |
Definition at line 83 of file vtkImageQuantizeRGBToIndex.h.
int vtkImageQuantizeRGBToIndex::InputType [protected] |
Definition at line 84 of file vtkImageQuantizeRGBToIndex.h.
double vtkImageQuantizeRGBToIndex::InitializeExecuteTime [protected] |
Definition at line 86 of file vtkImageQuantizeRGBToIndex.h.
double vtkImageQuantizeRGBToIndex::BuildTreeExecuteTime [protected] |
Definition at line 87 of file vtkImageQuantizeRGBToIndex.h.
double vtkImageQuantizeRGBToIndex::LookupIndexExecuteTime [protected] |
Definition at line 88 of file vtkImageQuantizeRGBToIndex.h.