VTK: Imaging/General/vtkImageCorrelation.h Source File

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