39 #ifndef __vtkImageDifference_h
40 #define __vtkImageDifference_h
42 #include "vtkImagingCoreModule.h"
43 #include "vtkThreadedImageAlgorithm.h"
50 void PrintSelf(ostream& os, vtkIndent indent);
56 this->SetInputConnection(1, output);
58 void SetImageData(vtkDataObject *image) {this->SetInputData(1,image);}
59 vtkImageData *GetImage();
64 double GetError(
void);
72 double GetThresholdedError(
void);
79 vtkSetMacro(Threshold,
int);
80 vtkGetMacro(Threshold,
int);
89 vtkSetMacro(AllowShift,
int);
90 vtkGetMacro(AllowShift,
int);
91 vtkBooleanMacro(AllowShift,
int);
98 vtkSetMacro(Averaging,
int);
99 vtkGetMacro(Averaging,
int);
100 vtkBooleanMacro(Averaging,
int);
107 double ErrorPerThread[VTK_MAX_THREADS];
108 double ThresholdedErrorPerThread[VTK_MAX_THREADS];
113 virtual int RequestInformation (vtkInformation *,
114 vtkInformationVector **,
115 vtkInformationVector *);
116 virtual int RequestUpdateExtent(vtkInformation *,
117 vtkInformationVector **,
118 vtkInformationVector *);
120 virtual void ThreadedRequestData(vtkInformation *request,
121 vtkInformationVector **inputVector,
122 vtkInformationVector *outputVector,
123 vtkImageData ***inData,
124 vtkImageData **outData,
125 int extent[6],
int threadId);
Compares images for regression tests.
void SetImageData(vtkDataObject *image)
void GetThresholdedError(double *e)
void SetImageConnection(vtkAlgorithmOutput *output)