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=========================================================================*/
52#ifndef vtkImageQuantizeRGBToIndex_h
53#define vtkImageQuantizeRGBToIndex_h
54
55#include "vtkImageAlgorithm.h"
56#include "vtkImagingColorModule.h" // For export macro
57
58class vtkLookupTable;
59
60class VTKIMAGINGCOLOR_EXPORT vtkImageQuantizeRGBToIndex : public vtkImageAlgorithm
61{
62public:
65 void PrintSelf(ostream& os, vtkIndent indent) override;
66
68
72 vtkSetClampMacro(NumberOfColors, int, 2, 65536);
73 vtkGetMacro(NumberOfColors, int);
75
76 vtkSetVector3Macro(SamplingRate, int);
77 vtkGetVector3Macro(SamplingRate, int);
78
79 vtkSetMacro(SortIndexByLuminance, bool);
80 vtkGetMacro(SortIndexByLuminance, bool);
81 vtkBooleanMacro(SortIndexByLuminance, bool);
82
84
88 vtkGetObjectMacro(LookupTable, vtkLookupTable);
90
91 vtkGetMacro(InitializeExecuteTime, double);
92 vtkGetMacro(BuildTreeExecuteTime, double);
93 vtkGetMacro(LookupIndexExecuteTime, double);
94
96
99 vtkGetMacro(InputType, int);
101
103
106 vtkSetMacro(InitializeExecuteTime, double);
107 vtkSetMacro(BuildTreeExecuteTime, double);
108 vtkSetMacro(LookupIndexExecuteTime, double);
110
111protected:
114
118 int SamplingRate[3];
120
124
127
129
130private:
132 void operator=(const vtkImageQuantizeRGBToIndex&) = delete;
133};
134
135#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.
int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
Subclasses can reimplement this method to translate the update extent requests from each output port ...
static vtkImageQuantizeRGBToIndex * New()
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:43
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
map scalar values into colors via a lookup table