VTK
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 =========================================================================*/
46 #ifndef vtkImageQuantizeRGBToIndex_h
47 #define vtkImageQuantizeRGBToIndex_h
48 
49 #include "vtkImagingColorModule.h" // For export macro
50 #include "vtkImageAlgorithm.h"
51 
52 class vtkLookupTable;
53 
54 class VTKIMAGINGCOLOR_EXPORT vtkImageQuantizeRGBToIndex : public vtkImageAlgorithm
55 {
56 public:
59  void PrintSelf(ostream& os, vtkIndent indent) override;
60 
62 
66  vtkSetClampMacro( NumberOfColors, int, 2, 65536 );
67  vtkGetMacro( NumberOfColors, int );
69 
70  vtkSetVector3Macro(SamplingRate, int);
71  vtkGetVector3Macro(SamplingRate, int);
72 
73  vtkSetMacro(SortIndexByLuminance, bool);
74  vtkGetMacro(SortIndexByLuminance, bool);
75  vtkBooleanMacro(SortIndexByLuminance, bool);
76 
78 
82  vtkGetObjectMacro( LookupTable, vtkLookupTable );
84 
85  vtkGetMacro( InitializeExecuteTime, double );
86  vtkGetMacro( BuildTreeExecuteTime, double );
87  vtkGetMacro( LookupIndexExecuteTime, double );
88 
90 
93  vtkGetMacro( InputType, int );
95 
97 
100  vtkSetMacro( InitializeExecuteTime, double );
101  vtkSetMacro( BuildTreeExecuteTime, double );
102  vtkSetMacro( LookupIndexExecuteTime, double );
104 
105 protected:
107  ~vtkImageQuantizeRGBToIndex() override;
108 
112  int SamplingRate[3];
114 
118 
121 
124  vtkInformationVector *) override;
125 
126 private:
128  void operator=(const vtkImageQuantizeRGBToIndex&) = delete;
129 };
130 
131 #endif
132 
133 
134 
135 
136 
137 
138 
139 
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:115
vtkImageQuantizeRGBToIndex::BuildTreeExecuteTime
double BuildTreeExecuteTime
Definition: vtkImageQuantizeRGBToIndex.h:116
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:41
vtkImageQuantizeRGBToIndex::NumberOfColors
int NumberOfColors
Definition: vtkImageQuantizeRGBToIndex.h:110
vtkImageAlgorithm.h
vtkImageAlgorithm
Generic algorithm superclass for image algs.
Definition: vtkImageAlgorithm.h:40
vtkImageQuantizeRGBToIndex::LookupIndexExecuteTime
double LookupIndexExecuteTime
Definition: vtkImageQuantizeRGBToIndex.h:117
vtkImageQuantizeRGBToIndex
generalized histograms up to 4 dimensions
Definition: vtkImageQuantizeRGBToIndex.h:54
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:39
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:86
vtkLookupTable
map scalar values into colors via a lookup table
Definition: vtkLookupTable.h:74
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:109
vtkImageQuantizeRGBToIndex::SortIndexByLuminance
bool SortIndexByLuminance
Definition: vtkImageQuantizeRGBToIndex.h:113
vtkImageQuantizeRGBToIndex::InputType
int InputType
Definition: vtkImageQuantizeRGBToIndex.h:111