VTK  9.3.0
vtkImageQuantizeRGBToIndex.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2 // SPDX-License-Identifier: BSD-3-Clause
34 #ifndef vtkImageQuantizeRGBToIndex_h
35 #define vtkImageQuantizeRGBToIndex_h
36 
37 #include "vtkImageAlgorithm.h"
38 #include "vtkImagingColorModule.h" // For export macro
39 
40 VTK_ABI_NAMESPACE_BEGIN
41 class vtkLookupTable;
42 
43 class VTKIMAGINGCOLOR_EXPORT vtkImageQuantizeRGBToIndex : public vtkImageAlgorithm
44 {
45 public:
48  void PrintSelf(ostream& os, vtkIndent indent) override;
49 
51 
55  vtkSetClampMacro(NumberOfColors, int, 2, 65536);
56  vtkGetMacro(NumberOfColors, int);
58 
59  vtkSetVector3Macro(SamplingRate, int);
60  vtkGetVector3Macro(SamplingRate, int);
61 
62  vtkSetMacro(SortIndexByLuminance, bool);
63  vtkGetMacro(SortIndexByLuminance, bool);
64  vtkBooleanMacro(SortIndexByLuminance, bool);
65 
67 
71  vtkGetObjectMacro(LookupTable, vtkLookupTable);
73 
74  vtkGetMacro(InitializeExecuteTime, double);
75  vtkGetMacro(BuildTreeExecuteTime, double);
76  vtkGetMacro(LookupIndexExecuteTime, double);
77 
79 
82  vtkGetMacro(InputType, int);
84 
86 
89  vtkSetMacro(InitializeExecuteTime, double);
90  vtkSetMacro(BuildTreeExecuteTime, double);
91  vtkSetMacro(LookupIndexExecuteTime, double);
93 
94 protected:
97 
101  int SamplingRate[3];
103 
107 
110 
112 
113 private:
115  void operator=(const vtkImageQuantizeRGBToIndex&) = delete;
116 };
117 
118 VTK_ABI_NAMESPACE_END
119 #endif
Generic algorithm superclass for image algs.
generalized histograms up to 4 dimensions
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
static vtkImageQuantizeRGBToIndex * New()
int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
Subclasses can reimplement this method to translate the update extent requests from each output port ...
int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
Subclasses can reimplement this method to collect information from their inputs and set information f...
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called in response to a REQUEST_DATA request from the executive.
~vtkImageQuantizeRGBToIndex() override
a simple class to control print indentation
Definition: vtkIndent.h:29
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
map scalar values into colors via a lookup table