/usr/include/vtk-6.3/vtkImageQuantizeRGBToIndex.h is in libvtk6-dev 6.3.0+dfsg1-5.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 | /*=========================================================================
Program: Visualization Toolkit
Module: vtkImageQuantizeRGBToIndex.h
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
This software is distributed WITHOUT ANY WARRANTY; without even
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE. See the above copyright notice for more information.
=========================================================================*/
// .NAME vtkImageQuantizeRGBToIndex - generalized histograms up to 4 dimensions
// .SECTION Description
// vtkImageQuantizeRGBToIndex takes a 3 component RGB image as
// input and produces a one component index image as output, along with
// a lookup table that contains the color definitions for the index values.
// This filter works on the entire input extent - it does not perform
// streaming, and it does not supported threaded execution (because it has
// to process the entire image).
//
// To use this filter, you typically set the number of colors
// (between 2 and 65536), execute it, and then retrieve the lookup table.
// The colors can then be using the lookup table and the image index.
#ifndef vtkImageQuantizeRGBToIndex_h
#define vtkImageQuantizeRGBToIndex_h
#include "vtkImagingColorModule.h" // For export macro
#include "vtkImageAlgorithm.h"
class vtkLookupTable;
class VTKIMAGINGCOLOR_EXPORT vtkImageQuantizeRGBToIndex : public vtkImageAlgorithm
{
public:
static vtkImageQuantizeRGBToIndex *New();
vtkTypeMacro(vtkImageQuantizeRGBToIndex,vtkImageAlgorithm);
void PrintSelf(ostream& os, vtkIndent indent);
// Description:
// Set / Get the number of color index values to produce - must be
// a number between 2 and 65536.
vtkSetClampMacro( NumberOfColors, int, 2, 65536 );
vtkGetMacro( NumberOfColors, int );
// Description:
// Get the resulting lookup table that contains the color definitions
// corresponding to the index values in the output image.
vtkGetObjectMacro( LookupTable, vtkLookupTable );
vtkGetMacro( InitializeExecuteTime, double );
vtkGetMacro( BuildTreeExecuteTime, double );
vtkGetMacro( LookupIndexExecuteTime, double );
//BTX
// Description:
// For internal use only - get the type of the image
vtkGetMacro( InputType, int );
// Description:
// For internal use only - set the times for execution
vtkSetMacro( InitializeExecuteTime, double );
vtkSetMacro( BuildTreeExecuteTime, double );
vtkSetMacro( LookupIndexExecuteTime, double );
//ETX
protected:
vtkImageQuantizeRGBToIndex();
~vtkImageQuantizeRGBToIndex();
vtkLookupTable *LookupTable;
int NumberOfColors;
int InputType;
double InitializeExecuteTime;
double BuildTreeExecuteTime;
double LookupIndexExecuteTime;
virtual int RequestInformation (vtkInformation *, vtkInformationVector **, vtkInformationVector *);
virtual int RequestUpdateExtent (vtkInformation *, vtkInformationVector **, vtkInformationVector *);
virtual int RequestData(vtkInformation *,
vtkInformationVector **,
vtkInformationVector *);
private:
vtkImageQuantizeRGBToIndex(const vtkImageQuantizeRGBToIndex&); // Not implemented.
void operator=(const vtkImageQuantizeRGBToIndex&); // Not implemented.
};
#endif
|