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
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:
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 
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
general representation of visualization data
Definition: vtkDataObject.h:55
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:43
a simple class to control print indentation
Definition: vtkIndent.h:29
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
Generic filter that has one input.