VTK  9.2.6
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 =========================================================================*/
55 #ifndef vtkImageQuantizeRGBToIndex_h
56 #define vtkImageQuantizeRGBToIndex_h
57 
58 #include "vtkImageAlgorithm.h"
59 #include "vtkImagingColorModule.h" // For export macro
60 
61 class vtkLookupTable;
62 
63 class VTKIMAGINGCOLOR_EXPORT vtkImageQuantizeRGBToIndex : public vtkImageAlgorithm
64 {
65 public:
68  void PrintSelf(ostream& os, vtkIndent indent) override;
69 
71 
75  vtkSetClampMacro(NumberOfColors, int, 2, 65536);
76  vtkGetMacro(NumberOfColors, int);
78 
79  vtkSetVector3Macro(SamplingRate, int);
80  vtkGetVector3Macro(SamplingRate, int);
81 
82  vtkSetMacro(SortIndexByLuminance, bool);
83  vtkGetMacro(SortIndexByLuminance, bool);
84  vtkBooleanMacro(SortIndexByLuminance, bool);
85 
87 
91  vtkGetObjectMacro(LookupTable, vtkLookupTable);
93 
94  vtkGetMacro(InitializeExecuteTime, double);
95  vtkGetMacro(BuildTreeExecuteTime, double);
96  vtkGetMacro(LookupIndexExecuteTime, double);
97 
99 
102  vtkGetMacro(InputType, int);
104 
106 
109  vtkSetMacro(InitializeExecuteTime, double);
110  vtkSetMacro(BuildTreeExecuteTime, double);
111  vtkSetMacro(LookupIndexExecuteTime, double);
113 
114 protected:
117 
121  int SamplingRate[3];
123 
127 
130 
132 
133 private:
135  void operator=(const vtkImageQuantizeRGBToIndex&) = delete;
136 };
137 
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.
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:49
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
map scalar values into colors via a lookup table