VTK  9.3.20240419
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
37 #ifndef vtkImageCorrelation_h
38 #define vtkImageCorrelation_h
39 
40 #include "vtkImagingGeneralModule.h" // For export macro
42 
43 VTK_ABI_NAMESPACE_BEGIN
44 class VTKIMAGINGGENERAL_EXPORT vtkImageCorrelation : public vtkThreadedImageAlgorithm
45 {
46 public:
49  void PrintSelf(ostream& os, vtkIndent indent) override;
50 
52 
56  vtkSetClampMacro(Dimensionality, int, 2, 3);
57  vtkGetMacro(Dimensionality, int);
59 
63  virtual void SetInput1Data(vtkDataObject* in) { this->SetInputData(0, in); }
64 
68  virtual void SetInput2Data(vtkDataObject* in) { this->SetInputData(1, in); }
69 
70 protected:
72  ~vtkImageCorrelation() override = default;
73 
77 
79  vtkInformationVector* outputVector, vtkImageData*** inData, vtkImageData** outData,
80  int outExt[6], int threadId) override;
81 
82 private:
84  void operator=(const vtkImageCorrelation&) = delete;
85 };
86 
87 VTK_ABI_NAMESPACE_END
88 #endif
general representation of visualization data
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:156
a simple class to control print indentation
Definition: vtkIndent.h:108
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
Generic filter that has one input.