VTK
dox/Imaging/General/vtkImageCorrelation.h
Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    vtkImageCorrelation.h
00005 
00006   Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
00007   All rights reserved.
00008   See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
00009 
00010      This software is distributed WITHOUT ANY WARRANTY; without even
00011      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
00012      PURPOSE.  See the above copyright notice for more information.
00013 
00014 =========================================================================*/
00029 #ifndef __vtkImageCorrelation_h
00030 #define __vtkImageCorrelation_h
00031 
00032 
00033 
00034 #include "vtkImagingGeneralModule.h" // For export macro
00035 #include "vtkThreadedImageAlgorithm.h"
00036 
00037 class VTKIMAGINGGENERAL_EXPORT vtkImageCorrelation : public vtkThreadedImageAlgorithm
00038 {
00039 public:
00040   static vtkImageCorrelation *New();
00041   vtkTypeMacro(vtkImageCorrelation,vtkThreadedImageAlgorithm);
00042   void PrintSelf(ostream& os, vtkIndent indent);
00043 
00045 
00047   vtkSetClampMacro(Dimensionality,int,2,3);
00048   vtkGetMacro(Dimensionality,int);
00050 
00052   virtual void SetInput1Data(vtkDataObject *in) { this->SetInputData(0,in); }
00053 
00055   virtual void SetInput2Data(vtkDataObject *in) { this->SetInputData(1,in); }
00056 
00057 protected:
00058   vtkImageCorrelation();
00059   ~vtkImageCorrelation() {};
00060 
00061   int Dimensionality;
00062   virtual int RequestInformation (vtkInformation *,
00063                                   vtkInformationVector **,
00064                                   vtkInformationVector *);
00065   virtual int RequestUpdateExtent(vtkInformation*,
00066                                    vtkInformationVector**,
00067                                    vtkInformationVector*);
00068 
00069   virtual void ThreadedRequestData(vtkInformation *request,
00070                                    vtkInformationVector **inputVector,
00071                                    vtkInformationVector *outputVector,
00072                                    vtkImageData ***inData,
00073                                    vtkImageData **outData,
00074                                    int extent[6], int threadId);
00075 
00076 private:
00077   vtkImageCorrelation(const vtkImageCorrelation&);  // Not implemented.
00078   void operator=(const vtkImageCorrelation&);  // Not implemented.
00079 };
00080 
00081 #endif
00082 
00083 
00084