VTK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
vtkImageCorrelation.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkImageCorrelation.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
29 #ifndef __vtkImageCorrelation_h
30 #define __vtkImageCorrelation_h
31 
32 
33 
34 #include "vtkImagingGeneralModule.h" // For export macro
35 #include "vtkThreadedImageAlgorithm.h"
36 
37 class VTKIMAGINGGENERAL_EXPORT vtkImageCorrelation : public vtkThreadedImageAlgorithm
38 {
39 public:
40  static vtkImageCorrelation *New();
41  vtkTypeMacro(vtkImageCorrelation,vtkThreadedImageAlgorithm);
42  void PrintSelf(ostream& os, vtkIndent indent);
43 
45 
47  vtkSetClampMacro(Dimensionality,int,2,3);
48  vtkGetMacro(Dimensionality,int);
50 
52  virtual void SetInput1Data(vtkDataObject *in) { this->SetInputData(0,in); }
53 
55  virtual void SetInput2Data(vtkDataObject *in) { this->SetInputData(1,in); }
56 
57 protected:
60 
61  int Dimensionality;
62  virtual int RequestInformation (vtkInformation *,
63  vtkInformationVector **,
64  vtkInformationVector *);
65  virtual int RequestUpdateExtent(vtkInformation*,
66  vtkInformationVector**,
67  vtkInformationVector*);
68 
69  virtual void ThreadedRequestData(vtkInformation *request,
70  vtkInformationVector **inputVector,
71  vtkInformationVector *outputVector,
72  vtkImageData ***inData,
73  vtkImageData **outData,
74  int extent[6], int threadId);
75 
76 private:
77  vtkImageCorrelation(const vtkImageCorrelation&); // Not implemented.
78  void operator=(const vtkImageCorrelation&); // Not implemented.
79 };
80 
81 #endif
82 
83 
84 
virtual void SetInput2Data(vtkDataObject *in)
Correlation imageof the two inputs.
virtual void SetInput1Data(vtkDataObject *in)