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
43#ifndef vtkImageQuantizeRGBToIndex_h
44#define vtkImageQuantizeRGBToIndex_h
45
46#include "vtkImageAlgorithm.h"
47#include "vtkImagingColorModule.h" // For export macro
48
49VTK_ABI_NAMESPACE_BEGIN
50class vtkLookupTable;
51
52class VTKIMAGINGCOLOR_EXPORT vtkImageQuantizeRGBToIndex : public vtkImageAlgorithm
53{
54public:
57 void PrintSelf(ostream& os, vtkIndent indent) override;
58
60
64 vtkSetClampMacro(NumberOfColors, int, 2, 65536);
65 vtkGetMacro(NumberOfColors, int);
67
68 vtkSetVector3Macro(SamplingRate, int);
69 vtkGetVector3Macro(SamplingRate, int);
70
71 vtkSetMacro(SortIndexByLuminance, bool);
72 vtkGetMacro(SortIndexByLuminance, bool);
73 vtkBooleanMacro(SortIndexByLuminance, bool);
74
76
80 vtkGetObjectMacro(LookupTable, vtkLookupTable);
82
83 vtkGetMacro(InitializeExecuteTime, double);
84 vtkGetMacro(BuildTreeExecuteTime, double);
85 vtkGetMacro(LookupIndexExecuteTime, double);
86
88
91 vtkGetMacro(InputType, int);
93
95
98 vtkSetMacro(InitializeExecuteTime, double);
99 vtkSetMacro(BuildTreeExecuteTime, double);
100 vtkSetMacro(LookupIndexExecuteTime, double);
102
103protected:
106
110 int SamplingRate[3];
112
116
119
121
122private:
124 void operator=(const vtkImageQuantizeRGBToIndex&) = delete;
125};
126
127VTK_ABI_NAMESPACE_END
128#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.
int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
Subclasses can reimplement this method to translate the update extent requests from each output port ...
static vtkImageQuantizeRGBToIndex * New()
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:38
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
map scalar values into colors via a lookup table