VTK  9.0.20210123
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 =========================================================================*/
43 #ifndef vtkImageQuantizeRGBToIndex_h
44 #define vtkImageQuantizeRGBToIndex_h
45 
46 #include "vtkImageAlgorithm.h"
47 #include "vtkImagingColorModule.h" // For export macro
48 
49 class vtkLookupTable;
50 
51 class VTKIMAGINGCOLOR_EXPORT vtkImageQuantizeRGBToIndex : public vtkImageAlgorithm
52 {
53 public:
56  void PrintSelf(ostream& os, vtkIndent indent) override;
57 
59 
63  vtkSetClampMacro(NumberOfColors, int, 2, 65536);
64  vtkGetMacro(NumberOfColors, int);
66 
67  vtkSetVector3Macro(SamplingRate, int);
68  vtkGetVector3Macro(SamplingRate, int);
69 
70  vtkSetMacro(SortIndexByLuminance, bool);
71  vtkGetMacro(SortIndexByLuminance, bool);
72  vtkBooleanMacro(SortIndexByLuminance, bool);
73 
75 
79  vtkGetObjectMacro(LookupTable, vtkLookupTable);
81 
82  vtkGetMacro(InitializeExecuteTime, double);
83  vtkGetMacro(BuildTreeExecuteTime, double);
84  vtkGetMacro(LookupIndexExecuteTime, double);
85 
87 
90  vtkGetMacro(InputType, int);
92 
94 
97  vtkSetMacro(InitializeExecuteTime, double);
98  vtkSetMacro(BuildTreeExecuteTime, double);
99  vtkSetMacro(LookupIndexExecuteTime, double);
101 
102 protected:
104  ~vtkImageQuantizeRGBToIndex() override;
105 
109  int SamplingRate[3];
111 
115 
118 
120 
121 private:
123  void operator=(const vtkImageQuantizeRGBToIndex&) = delete;
124 };
125 
126 #endif
vtkImageAlgorithm::RequestData
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called in response to a REQUEST_DATA request from the executive.
vtkImageQuantizeRGBToIndex::InitializeExecuteTime
double InitializeExecuteTime
Definition: vtkImageQuantizeRGBToIndex.h:112
vtkImageQuantizeRGBToIndex::BuildTreeExecuteTime
double BuildTreeExecuteTime
Definition: vtkImageQuantizeRGBToIndex.h:113
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:35
vtkImageQuantizeRGBToIndex::NumberOfColors
int NumberOfColors
Definition: vtkImageQuantizeRGBToIndex.h:107
vtkImageAlgorithm.h
vtkImageAlgorithm
Generic algorithm superclass for image algs.
Definition: vtkImageAlgorithm.h:37
vtkImageQuantizeRGBToIndex::LookupIndexExecuteTime
double LookupIndexExecuteTime
Definition: vtkImageQuantizeRGBToIndex.h:114
vtkImageQuantizeRGBToIndex
generalized histograms up to 4 dimensions
Definition: vtkImageQuantizeRGBToIndex.h:51
vtkImageAlgorithm::RequestUpdateExtent
virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
Subclasses can reimplement this method to translate the update extent requests from each output port ...
vtkImageAlgorithm::RequestInformation
virtual int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
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:33
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:73
vtkLookupTable
map scalar values into colors via a lookup table
Definition: vtkLookupTable.h:68
vtkImageAlgorithm::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkAlgorithm::New
static vtkAlgorithm * New()
vtkImageQuantizeRGBToIndex::LookupTable
vtkLookupTable * LookupTable
Definition: vtkImageQuantizeRGBToIndex.h:106
vtkImageQuantizeRGBToIndex::SortIndexByLuminance
bool SortIndexByLuminance
Definition: vtkImageQuantizeRGBToIndex.h:110
vtkImageQuantizeRGBToIndex::InputType
int InputType
Definition: vtkImageQuantizeRGBToIndex.h:108