1 /*=========================================================================
2 
3   Program:   Visualization Toolkit
4   Module:    vtkImageLuminance.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 =========================================================================*/
15 // .NAME vtkImageLuminance - Computes the luminance of the input
16 // .SECTION Description
17 // vtkImageLuminance calculates luminance from an rgb input.
18 
19 #ifndef vtkImageLuminance_h
20 #define vtkImageLuminance_h
21 
22 
23 #include "vtkImagingColorModule.h" // For export macro
24 #include "vtkThreadedImageAlgorithm.h"
25 
26 class VTKIMAGINGCOLOR_EXPORT vtkImageLuminance : public vtkThreadedImageAlgorithm
27 {
28 public:
29   static vtkImageLuminance *New();
30   vtkTypeMacro(vtkImageLuminance,vtkThreadedImageAlgorithm);
31 
32 protected:
33   vtkImageLuminance();
~vtkImageLuminance()34   ~vtkImageLuminance() {}
35 
36   virtual int RequestInformation (vtkInformation *, vtkInformationVector**,
37                                   vtkInformationVector *);
38 
39   void ThreadedExecute (vtkImageData *inData, vtkImageData *outData,
40                         int outExt[6], int id);
41 
42 private:
43   vtkImageLuminance(const vtkImageLuminance&);  // Not implemented.
44   void operator=(const vtkImageLuminance&);  // Not implemented.
45 };
46 
47 #endif
48 
49 
50 
51 
52 
53 
54 
55 
56 
57 
58 // VTK-HeaderTest-Exclude: vtkImageLuminance.h
59