VTK  9.3.0
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
27 #ifndef vtkImageCorrelation_h
28 #define vtkImageCorrelation_h
29 
30 #include "vtkImagingGeneralModule.h" // For export macro
32 
33 VTK_ABI_NAMESPACE_BEGIN
34 class VTKIMAGINGGENERAL_EXPORT vtkImageCorrelation : public vtkThreadedImageAlgorithm
35 {
36 public:
39  void PrintSelf(ostream& os, vtkIndent indent) override;
40 
42 
46  vtkSetClampMacro(Dimensionality, int, 2, 3);
47  vtkGetMacro(Dimensionality, int);
49 
53  virtual void SetInput1Data(vtkDataObject* in) { this->SetInputData(0, in); }
54 
58  virtual void SetInput2Data(vtkDataObject* in) { this->SetInputData(1, in); }
59 
60 protected:
62  ~vtkImageCorrelation() override = default;
63 
67 
69  vtkInformationVector* outputVector, vtkImageData*** inData, vtkImageData** outData,
70  int outExt[6], int threadId) override;
71 
72 private:
74  void operator=(const vtkImageCorrelation&) = delete;
75 };
76 
77 VTK_ABI_NAMESPACE_END
78 #endif
general representation of visualization data
Definition: vtkDataObject.h:64
void SetInputData(vtkDataObject *)
Assign a data object as input.
Correlation imageof the two inputs.
int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
Subclasses can reimplement this method to collect information from their inputs and set information f...
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void ThreadedRequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector, vtkImageData ***inData, vtkImageData **outData, int outExt[6], int threadId) override
If the subclass does not define an Execute method, then the task will be broken up,...
~vtkImageCorrelation() override=default
int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
Subclasses can reimplement this method to translate the update extent requests from each output port ...
virtual void SetInput1Data(vtkDataObject *in)
Set the input image.
virtual void SetInput2Data(vtkDataObject *in)
Set the correlation kernel.
static vtkImageCorrelation * New()
topologically and geometrically regular array of data
Definition: vtkImageData.h:52
a simple class to control print indentation
Definition: vtkIndent.h:38
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
Generic filter that has one input.