00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00060 #ifndef __vtkImageQuantizeRGBToIndex_h
00061 #define __vtkImageQuantizeRGBToIndex_h
00062
00063 #include "vtkImageToImageFilter.h"
00064 #include "vtkLookupTable.h"
00065
00066 class VTK_IMAGING_EXPORT vtkImageQuantizeRGBToIndex : public vtkImageToImageFilter
00067 {
00068 public:
00069 static vtkImageQuantizeRGBToIndex *New();
00070 vtkTypeMacro(vtkImageQuantizeRGBToIndex,vtkImageToImageFilter);
00071 void PrintSelf(ostream& os, vtkIndent indent);
00072
00074
00076 vtkSetClampMacro( NumberOfColors, int, 2, 65536 );
00077 vtkGetMacro( NumberOfColors, int );
00079
00081
00083 vtkGetObjectMacro( LookupTable, vtkLookupTable );
00085
00086 vtkGetMacro( InitializeExecuteTime, float );
00087 vtkGetMacro( BuildTreeExecuteTime, float );
00088 vtkGetMacro( LookupIndexExecuteTime, float );
00089
00090
00092
00093 vtkGetMacro( InputType, int );
00095
00097
00098 vtkSetMacro( InitializeExecuteTime, float );
00099 vtkSetMacro( BuildTreeExecuteTime, float );
00100 vtkSetMacro( LookupIndexExecuteTime, float );
00102
00103
00104 protected:
00105 vtkImageQuantizeRGBToIndex();
00106 ~vtkImageQuantizeRGBToIndex();
00107
00108 vtkLookupTable *LookupTable;
00109 int NumberOfColors;
00110 int InputType;
00111
00112 float InitializeExecuteTime;
00113 float BuildTreeExecuteTime;
00114 float LookupIndexExecuteTime;
00115
00116 void ExecuteInformation(vtkImageData *inData, vtkImageData *outData);
00117 void ComputeInputUpdateExtent(int inExt[6], int outExt[6]);
00118 void ExecuteInformation(){this->vtkImageToImageFilter::ExecuteInformation();};
00119
00120 virtual void ExecuteData(vtkDataObject *out);
00121 private:
00122 vtkImageQuantizeRGBToIndex(const vtkImageQuantizeRGBToIndex&);
00123 void operator=(const vtkImageQuantizeRGBToIndex&);
00124 };
00125
00126 #endif
00127
00128
00129
00130
00131
00132
00133
00134