Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

vtkImageQuantizeRGBToIndex Class Reference

generalized histograms up to 4 dimensions. More...

#include <vtkImageQuantizeRGBToIndex.h>

Inheritance diagram for vtkImageQuantizeRGBToIndex:

Inheritance graph
[legend]
Collaboration diagram for vtkImageQuantizeRGBToIndex:

Collaboration graph
[legend]
List of all members.

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 vtkLookupTableGetLookupTable ()
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

vtkLookupTableLookupTable
int NumberOfColors
int InputType
float InitializeExecuteTime
float BuildTreeExecuteTime
float LookupIndexExecuteTime

Detailed Description

generalized histograms up to 4 dimensions.

Date:
2000/12/10 20:09:09
Revision:
1.19

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.

Examples:
vtkImageQuantizeRGBToIndex (examples)

Definition at line 66 of file vtkImageQuantizeRGBToIndex.h.


Constructor & Destructor Documentation

vtkImageQuantizeRGBToIndex::vtkImageQuantizeRGBToIndex   [protected]
 

vtkImageQuantizeRGBToIndex::~vtkImageQuantizeRGBToIndex   [protected]
 

vtkImageQuantizeRGBToIndex::vtkImageQuantizeRGBToIndex const vtkImageQuantizeRGBToIndex &    [inline, protected]
 

Definition at line 99 of file vtkImageQuantizeRGBToIndex.h.


Member Function Documentation

vtkImageQuantizeRGBToIndex* vtkImageQuantizeRGBToIndex::New   [static]
 

Instantiate object with no start, end, or progress methods.

Reimplemented from vtkImageToImageFilter.

virtual const char* vtkImageQuantizeRGBToIndex::GetClassName   [virtual]
 

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.

int vtkImageQuantizeRGBToIndex::IsTypeOf const char *    type [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 vtkImageToImageFilter.

virtual int vtkImageQuantizeRGBToIndex::IsA const char *    type [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 vtkImageToImageFilter.

vtkImageQuantizeRGBToIndex* vtkImageQuantizeRGBToIndex::SafeDownCast vtkObject   o [static]
 

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.

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 vtkImageToImageFilter.

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]
 

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 float vtkImageQuantizeRGBToIndex::GetInitializeExecuteTime   [virtual]
 

virtual float vtkImageQuantizeRGBToIndex::GetBuildTreeExecuteTime   [virtual]
 

virtual float vtkImageQuantizeRGBToIndex::GetLookupIndexExecuteTime   [virtual]
 

virtual int vtkImageQuantizeRGBToIndex::GetInputType   [virtual]
 

For internal use only - get the type of the image

virtual void vtkImageQuantizeRGBToIndex::SetInitializeExecuteTime float    [virtual]
 

For internal use only - set the times for execution

virtual void vtkImageQuantizeRGBToIndex::SetBuildTreeExecuteTime float    [virtual]
 

virtual void vtkImageQuantizeRGBToIndex::SetLookupIndexExecuteTime float    [virtual]
 

void vtkImageQuantizeRGBToIndex::operator= const vtkImageQuantizeRGBToIndex &    [inline, protected]
 

Definition at line 100 of file vtkImageQuantizeRGBToIndex.h.

void vtkImageQuantizeRGBToIndex::ExecuteInformation vtkImageData   inData,
vtkImageData   outData
[protected, virtual]
 

Reimplemented from vtkImageToImageFilter.

void vtkImageQuantizeRGBToIndex::ComputeInputUpdateExtent int    inExt[6],
int    outExt[6]
[protected, virtual]
 

Reimplemented from vtkImageToImageFilter.

void vtkImageQuantizeRGBToIndex::ExecuteInformation   [inline, protected, virtual]
 

Reimplemented from vtkImageToImageFilter.

Definition at line 112 of file vtkImageQuantizeRGBToIndex.h.

void vtkImageQuantizeRGBToIndex::Execute vtkImageData   inData,
vtkImageData   outData
[protected, virtual]
 

Reimplemented from vtkImageToImageFilter.

void vtkImageQuantizeRGBToIndex::Execute vtkImageData   outData [inline, protected, virtual]
 

Reimplemented from vtkImageToImageFilter.

Definition at line 115 of file vtkImageQuantizeRGBToIndex.h.

void vtkImageQuantizeRGBToIndex::Execute   [inline, protected, virtual]
 

Reimplemented from vtkImageToImageFilter.

Definition at line 117 of file vtkImageQuantizeRGBToIndex.h.

void vtkImageQuantizeRGBToIndex::EnlargeOutputUpdateExtents vtkDataObject   data [protected]
 

Generate more than requested. Called by the superclass before an execute, and before output memory is allocated.


Member Data Documentation

vtkLookupTable* vtkImageQuantizeRGBToIndex::LookupTable [protected]
 

Definition at line 102 of file vtkImageQuantizeRGBToIndex.h.

int vtkImageQuantizeRGBToIndex::NumberOfColors [protected]
 

Definition at line 103 of file vtkImageQuantizeRGBToIndex.h.

int vtkImageQuantizeRGBToIndex::InputType [protected]
 

Definition at line 104 of file vtkImageQuantizeRGBToIndex.h.

float vtkImageQuantizeRGBToIndex::InitializeExecuteTime [protected]
 

Definition at line 106 of file vtkImageQuantizeRGBToIndex.h.

float vtkImageQuantizeRGBToIndex::BuildTreeExecuteTime [protected]
 

Definition at line 107 of file vtkImageQuantizeRGBToIndex.h.

float vtkImageQuantizeRGBToIndex::LookupIndexExecuteTime [protected]
 

Definition at line 108 of file vtkImageQuantizeRGBToIndex.h.


The documentation for this class was generated from the following file:
Generated on Wed Nov 21 12:48:53 2001 for VTK by doxygen1.2.11.1 written by Dimitri van Heesch, © 1997-2001