VTK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
vtkImageQuantizeRGBToIndex.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkImageQuantizeRGBToIndex.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
33 #ifndef __vtkImageQuantizeRGBToIndex_h
34 #define __vtkImageQuantizeRGBToIndex_h
35 
36 #include "vtkImagingColorModule.h" // For export macro
37 #include "vtkImageAlgorithm.h"
38 
39 class vtkLookupTable;
40 
41 class VTKIMAGINGCOLOR_EXPORT vtkImageQuantizeRGBToIndex : public vtkImageAlgorithm
42 {
43 public:
44  static vtkImageQuantizeRGBToIndex *New();
45  vtkTypeMacro(vtkImageQuantizeRGBToIndex,vtkImageAlgorithm);
46  void PrintSelf(ostream& os, vtkIndent indent);
47 
49 
51  vtkSetClampMacro( NumberOfColors, int, 2, 65536 );
52  vtkGetMacro( NumberOfColors, int );
54 
56 
58  vtkGetObjectMacro( LookupTable, vtkLookupTable );
60 
61  vtkGetMacro( InitializeExecuteTime, double );
62  vtkGetMacro( BuildTreeExecuteTime, double );
63  vtkGetMacro( LookupIndexExecuteTime, double );
64 
65 //BTX
67 
68  vtkGetMacro( InputType, int );
70 
72 
73  vtkSetMacro( InitializeExecuteTime, double );
74  vtkSetMacro( BuildTreeExecuteTime, double );
75  vtkSetMacro( LookupIndexExecuteTime, double );
76 //ETX
78 
79 protected:
82 
83  vtkLookupTable *LookupTable;
85  int InputType;
86 
90 
91  virtual int RequestInformation (vtkInformation *, vtkInformationVector **, vtkInformationVector *);
92  virtual int RequestUpdateExtent (vtkInformation *, vtkInformationVector **, vtkInformationVector *);
93 
94  virtual int RequestData(vtkInformation *,
95  vtkInformationVector **,
96  vtkInformationVector *);
97 
98 private:
99  vtkImageQuantizeRGBToIndex(const vtkImageQuantizeRGBToIndex&); // Not implemented.
100  void operator=(const vtkImageQuantizeRGBToIndex&); // Not implemented.
101 };
102 
103 #endif
104 
105 
106 
107 
108 
109 
110 
111 
generalized histograms up to 4 dimensions