VTK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
vtkImageQuantizeRGBToIndex Class Reference

generalized histograms up to 4 dimensions More...

#include <vtkImageQuantizeRGBToIndex.h>

Inherits vtkImageAlgorithm.

Public Types

typedef vtkImageAlgorithm Superclass
 

Public Member Functions

virtual int IsA (const char *type)
 
vtkImageQuantizeRGBToIndexNewInstance () const
 
void PrintSelf (ostream &os, vtkIndent indent)
 
virtual double GetInitializeExecuteTime ()
 
virtual double GetBuildTreeExecuteTime ()
 
virtual double GetLookupIndexExecuteTime ()
 
virtual void SetNumberOfColors (int)
 
virtual int GetNumberOfColors ()
 
virtual vtkLookupTable * GetLookupTable ()
 
virtual int GetInputType ()
 
virtual void SetInitializeExecuteTime (double)
 
virtual void SetBuildTreeExecuteTime (double)
 
virtual void SetLookupIndexExecuteTime (double)
 

Static Public Member Functions

static vtkImageQuantizeRGBToIndexNew ()
 
static int IsTypeOf (const char *type)
 
static vtkImageQuantizeRGBToIndexSafeDownCast (vtkObjectBase *o)
 

Protected Member Functions

virtual vtkObjectBase * NewInstanceInternal () const
 
 vtkImageQuantizeRGBToIndex ()
 
 ~vtkImageQuantizeRGBToIndex ()
 
virtual int RequestInformation (vtkInformation *, vtkInformationVector **, vtkInformationVector *)
 
virtual int RequestUpdateExtent (vtkInformation *, vtkInformationVector **, vtkInformationVector *)
 
virtual int RequestData (vtkInformation *, vtkInformationVector **, vtkInformationVector *)
 

Protected Attributes

vtkLookupTable * LookupTable
 
int NumberOfColors
 
int InputType
 
double InitializeExecuteTime
 
double BuildTreeExecuteTime
 
double LookupIndexExecuteTime
 

Detailed Description

generalized histograms up to 4 dimensions

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.

Tests:
vtkImageQuantizeRGBToIndex (Tests)

Definition at line 41 of file vtkImageQuantizeRGBToIndex.h.

Member Typedef Documentation

typedef vtkImageAlgorithm vtkImageQuantizeRGBToIndex::Superclass

Definition at line 45 of file vtkImageQuantizeRGBToIndex.h.

Constructor & Destructor Documentation

vtkImageQuantizeRGBToIndex::vtkImageQuantizeRGBToIndex ( )
protected
vtkImageQuantizeRGBToIndex::~vtkImageQuantizeRGBToIndex ( )
protected

Member Function Documentation

static vtkImageQuantizeRGBToIndex* vtkImageQuantizeRGBToIndex::New ( )
static
static int vtkImageQuantizeRGBToIndex::IsTypeOf ( const char *  type)
static
virtual int vtkImageQuantizeRGBToIndex::IsA ( const char *  type)
virtual
static vtkImageQuantizeRGBToIndex* vtkImageQuantizeRGBToIndex::SafeDownCast ( vtkObjectBase *  o)
static
virtual vtkObjectBase* vtkImageQuantizeRGBToIndex::NewInstanceInternal ( ) const
protectedvirtual
vtkImageQuantizeRGBToIndex* vtkImageQuantizeRGBToIndex::NewInstance ( ) const
void vtkImageQuantizeRGBToIndex::PrintSelf ( ostream &  os,
vtkIndent  indent 
)
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 *   
)
protectedvirtual
virtual int vtkImageQuantizeRGBToIndex::RequestUpdateExtent ( vtkInformation *  ,
vtkInformationVector **  ,
vtkInformationVector *   
)
protectedvirtual
virtual int vtkImageQuantizeRGBToIndex::RequestData ( vtkInformation *  ,
vtkInformationVector **  ,
vtkInformationVector *   
)
protectedvirtual

Member Data Documentation

vtkLookupTable* vtkImageQuantizeRGBToIndex::LookupTable
protected

Definition at line 83 of file vtkImageQuantizeRGBToIndex.h.

int vtkImageQuantizeRGBToIndex::NumberOfColors
protected

Definition at line 84 of file vtkImageQuantizeRGBToIndex.h.

int vtkImageQuantizeRGBToIndex::InputType
protected

Definition at line 85 of file vtkImageQuantizeRGBToIndex.h.

double vtkImageQuantizeRGBToIndex::InitializeExecuteTime
protected

Definition at line 87 of file vtkImageQuantizeRGBToIndex.h.

double vtkImageQuantizeRGBToIndex::BuildTreeExecuteTime
protected

Definition at line 88 of file vtkImageQuantizeRGBToIndex.h.

double vtkImageQuantizeRGBToIndex::LookupIndexExecuteTime
protected

Definition at line 89 of file vtkImageQuantizeRGBToIndex.h.


The documentation for this class was generated from the following file: