VTK  9.3.1
vtkImageCorrelation.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
18 #ifndef vtkImageCorrelation_h
19 #define vtkImageCorrelation_h
20 
21 #include "vtkImagingGeneralModule.h" // For export macro
23 
24 VTK_ABI_NAMESPACE_BEGIN
25 class VTKIMAGINGGENERAL_EXPORT vtkImageCorrelation : public vtkThreadedImageAlgorithm
26 {
27 public:
28  static vtkImageCorrelation* New();
30  void PrintSelf(ostream& os, vtkIndent indent) override;
31 
33 
37  vtkSetClampMacro(Dimensionality, int, 2, 3);
38  vtkGetMacro(Dimensionality, int);
40 
44  virtual void SetInput1Data(vtkDataObject* in) { this->SetInputData(0, in); }
45 
49  virtual void SetInput2Data(vtkDataObject* in) { this->SetInputData(1, in); }
50 
51 protected:
53  ~vtkImageCorrelation() override = default;
54 
58 
59  void ThreadedRequestData(vtkInformation* request, vtkInformationVector** inputVector,
60  vtkInformationVector* outputVector, vtkImageData*** inData, vtkImageData** outData,
61  int outExt[6], int threadId) override;
62 
63 private:
65  void operator=(const vtkImageCorrelation&) = delete;
66 };
67 
68 VTK_ABI_NAMESPACE_END
69 #endif
virtual void SetInput2Data(vtkDataObject *in)
Set the correlation kernel.
Store vtkAlgorithm input/output information.
void SetInputData(vtkDataObject *)
Assign a data object as input.
virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
Subclasses can reimplement this method to translate the update extent requests from each output port ...
Generic filter that has one input.
Correlation imageof the two inputs.
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...
virtual void ThreadedRequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector, vtkImageData ***inData, vtkImageData **outData, int extent[6], int threadId)
If the subclass does not define an Execute method, then the task will be broken up, multiple threads will be spawned, and each thread will call this method.
virtual void SetInput1Data(vtkDataObject *in)
Set the input image.
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.
general representation of visualization data
Definition: vtkDataObject.h:54