VTK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
vtkImageLuminance.h
Go to the documentation of this file.
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 =========================================================================*/
27 #ifndef __vtkImageLuminance_h
28 #define __vtkImageLuminance_h
29 
30 
31 #include "vtkImagingColorModule.h" // For export macro
32 #include "vtkThreadedImageAlgorithm.h"
33 
34 class VTKIMAGINGCOLOR_EXPORT vtkImageLuminance : public vtkThreadedImageAlgorithm
35 {
36 public:
37  static vtkImageLuminance *New();
38  vtkTypeMacro(vtkImageLuminance,vtkThreadedImageAlgorithm);
39 
40 protected:
43 
44  virtual int RequestInformation (vtkInformation *, vtkInformationVector**,
45  vtkInformationVector *);
46 
47  void ThreadedExecute (vtkImageData *inData, vtkImageData *outData,
48  int outExt[6], int id);
49 
50 private:
51  vtkImageLuminance(const vtkImageLuminance&); // Not implemented.
52  void operator=(const vtkImageLuminance&); // Not implemented.
53 };
54 
55 #endif
56 
57 
58 
59 
60 
61 
62 
63 
64 
65 
66 // VTK-HeaderTest-Exclude: vtkImageLuminance.h
Computes the luminance of the input.