VTK  9.3.1
vtkImageLuminance.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2 // SPDX-License-Identifier: BSD-3-Clause
13 #ifndef vtkImageLuminance_h
14 #define vtkImageLuminance_h
15 
16 #include "vtkImagingColorModule.h" // For export macro
18 
19 VTK_ABI_NAMESPACE_BEGIN
20 class VTKIMAGINGCOLOR_EXPORT vtkImageLuminance : public vtkThreadedImageAlgorithm
21 {
22 public:
23  static vtkImageLuminance* New();
25  void PrintSelf(ostream& os, vtkIndent indent) override;
26 
27 protected:
29  ~vtkImageLuminance() override = default;
30 
32 
33  void ThreadedExecute(vtkImageData* inData, vtkImageData* outData, int outExt[6], int id) override;
34 
35 private:
36  vtkImageLuminance(const vtkImageLuminance&) = delete;
37  void operator=(const vtkImageLuminance&) = delete;
38 };
39 
40 VTK_ABI_NAMESPACE_END
41 #endif
virtual void ThreadedExecute(vtkImageData *inData, vtkImageData *outData, int extent[6], int threadId)
Store vtkAlgorithm input/output information.
Generic filter that has one input.
a simple class to control print indentation
Definition: vtkIndent.h:28
topologically and geometrically regular array of data
Definition: vtkImageData.h:42
virtual int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
Subclasses can reimplement this method to collect information from their inputs and set information f...
Computes the luminance of the input.
Store zero or more vtkInformation instances.
static vtkAlgorithm * New()
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.