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 =========================================================================*/
43 #ifndef vtkImageQuantizeRGBToIndex_h
44 #define vtkImageQuantizeRGBToIndex_h
45 
46 #include "vtkImagingColorModule.h" // For export macro
47 #include "vtkImageAlgorithm.h"
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 
121  vtkInformationVector *) override;
122 
123 private:
125  void operator=(const vtkImageQuantizeRGBToIndex&) = delete;
126 };
127 
128 #endif
129 
130 
131 
132 
133 
134 
135 
136 
Store vtkAlgorithm input/output information.
map scalar values into colors via a lookup table
virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
Subclasses can reimplement this method to translate the update extent requests from each output port ...
a simple class to control print indentation
Definition: vtkIndent.h:33
virtual int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
Subclasses can reimplement this method to collect information from their inputs and set information f...
Generic algorithm superclass for image algs.
Store zero or more vtkInformation instances.
static vtkAlgorithm * New()
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called in response to a REQUEST_DATA request from the executive.
generalized histograms up to 4 dimensions