VTK  9.2.6
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
49class vtkLookupTable;
50
51class VTKIMAGINGCOLOR_EXPORT vtkImageQuantizeRGBToIndex : public vtkImageAlgorithm
52{
53public:
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
102protected:
105
109 int SamplingRate[3];
111
115
118
120
121private:
123 void operator=(const vtkImageQuantizeRGBToIndex&) = delete;
124};
125
126#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:34
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
map scalar values into colors via a lookup table