VTK  9.1.0
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 =========================================================================*/
62 #ifndef vtkImageQuantizeRGBToIndex_h
63 #define vtkImageQuantizeRGBToIndex_h
64 
65 #include "vtkImageAlgorithm.h"
66 #include "vtkImagingColorModule.h" // For export macro
67 
68 class vtkLookupTable;
69 
70 class VTKIMAGINGCOLOR_EXPORT vtkImageQuantizeRGBToIndex : public vtkImageAlgorithm
71 {
72 public:
75  void PrintSelf(ostream& os, vtkIndent indent) override;
76 
78 
82  vtkSetClampMacro(NumberOfColors, int, 2, 65536);
83  vtkGetMacro(NumberOfColors, int);
85 
86  vtkSetVector3Macro(SamplingRate, int);
87  vtkGetVector3Macro(SamplingRate, int);
88 
89  vtkSetMacro(SortIndexByLuminance, bool);
90  vtkGetMacro(SortIndexByLuminance, bool);
91  vtkBooleanMacro(SortIndexByLuminance, bool);
92 
94 
98  vtkGetObjectMacro(LookupTable, vtkLookupTable);
100 
101  vtkGetMacro(InitializeExecuteTime, double);
102  vtkGetMacro(BuildTreeExecuteTime, double);
103  vtkGetMacro(LookupIndexExecuteTime, double);
104 
106 
109  vtkGetMacro(InputType, int);
111 
113 
116  vtkSetMacro(InitializeExecuteTime, double);
117  vtkSetMacro(BuildTreeExecuteTime, double);
118  vtkSetMacro(LookupIndexExecuteTime, double);
120 
121 protected:
124 
128  int SamplingRate[3];
130 
134 
137 
139 
140 private:
142  void operator=(const vtkImageQuantizeRGBToIndex&) = delete;
143 };
144 
145 #endif
vtkImageQuantizeRGBToIndex::InitializeExecuteTime
double InitializeExecuteTime
Definition: vtkImageQuantizeRGBToIndex.h:131
vtkImageQuantizeRGBToIndex::RequestUpdateExtent
int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
Subclasses can reimplement this method to translate the update extent requests from each output port ...
vtkImageQuantizeRGBToIndex::BuildTreeExecuteTime
double BuildTreeExecuteTime
Definition: vtkImageQuantizeRGBToIndex.h:132
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:145
vtkImageQuantizeRGBToIndex::NumberOfColors
int NumberOfColors
Definition: vtkImageQuantizeRGBToIndex.h:126
vtkImageAlgorithm.h
vtkImageAlgorithm
Generic algorithm superclass for image algs.
Definition: vtkImageAlgorithm.h:57
vtkImageQuantizeRGBToIndex::LookupIndexExecuteTime
double LookupIndexExecuteTime
Definition: vtkImageQuantizeRGBToIndex.h:133
vtkImageQuantizeRGBToIndex::RequestData
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called in response to a REQUEST_DATA request from the executive.
vtkImageQuantizeRGBToIndex
generalized histograms up to 4 dimensions
Definition: vtkImageQuantizeRGBToIndex.h:71
vtkImageQuantizeRGBToIndex::RequestInformation
int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
Subclasses can reimplement this method to collect information from their inputs and set information f...
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:113
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:183
vtkLookupTable
map scalar values into colors via a lookup table
Definition: vtkLookupTable.h:178
vtkImageQuantizeRGBToIndex::LookupTable
vtkLookupTable * LookupTable
Definition: vtkImageQuantizeRGBToIndex.h:125
vtkImageQuantizeRGBToIndex::SortIndexByLuminance
bool SortIndexByLuminance
Definition: vtkImageQuantizeRGBToIndex.h:129
vtkImageQuantizeRGBToIndex::vtkImageQuantizeRGBToIndex
vtkImageQuantizeRGBToIndex()
vtkImageQuantizeRGBToIndex::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkImageQuantizeRGBToIndex::~vtkImageQuantizeRGBToIndex
~vtkImageQuantizeRGBToIndex() override
vtkImageQuantizeRGBToIndex::InputType
int InputType
Definition: vtkImageQuantizeRGBToIndex.h:127
vtkImageQuantizeRGBToIndex::New
static vtkImageQuantizeRGBToIndex * New()