VTK  9.3.20240423
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
53#ifndef vtkImageQuantizeRGBToIndex_h
54#define vtkImageQuantizeRGBToIndex_h
55
56#include "vtkImageAlgorithm.h"
57#include "vtkImagingColorModule.h" // For export macro
58
59VTK_ABI_NAMESPACE_BEGIN
60class vtkLookupTable;
61
62class VTKIMAGINGCOLOR_EXPORT vtkImageQuantizeRGBToIndex : public vtkImageAlgorithm
63{
64public:
67 void PrintSelf(ostream& os, vtkIndent indent) override;
68
70
74 vtkSetClampMacro(NumberOfColors, int, 2, 65536);
75 vtkGetMacro(NumberOfColors, int);
77
78 vtkSetVector3Macro(SamplingRate, int);
79 vtkGetVector3Macro(SamplingRate, int);
80
81 vtkSetMacro(SortIndexByLuminance, bool);
82 vtkGetMacro(SortIndexByLuminance, bool);
83 vtkBooleanMacro(SortIndexByLuminance, bool);
84
86
90 vtkGetObjectMacro(LookupTable, vtkLookupTable);
92
93 vtkGetMacro(InitializeExecuteTime, double);
94 vtkGetMacro(BuildTreeExecuteTime, double);
95 vtkGetMacro(LookupIndexExecuteTime, double);
96
98
101 vtkGetMacro(InputType, int);
103
105
108 vtkSetMacro(InitializeExecuteTime, double);
109 vtkSetMacro(BuildTreeExecuteTime, double);
110 vtkSetMacro(LookupIndexExecuteTime, double);
112
113protected:
116
120 int SamplingRate[3];
122
126
129
131
132private:
134 void operator=(const vtkImageQuantizeRGBToIndex&) = delete;
135};
136
137VTK_ABI_NAMESPACE_END
138#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:108
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
map scalar values into colors via a lookup table