#include <vtkImageDifference.h>
Inheritance diagram for vtkImageDifference:
vtkImageDifference takes two rgb unsigned char images and compares them. It allows the images to be slightly different. If AllowShift is on, then each pixel can be shifted by one pixel. Threshold is the allowable error for each pixel.
Definition at line 36 of file vtkImageDifference.h.
Public Types | |
typedef vtkImageTwoInputFilter | Superclass |
Public Member Functions | |
virtual const char * | GetClassName () |
virtual int | IsA (const char *type) |
void | PrintSelf (ostream &os, vtkIndent indent) |
void | SetImage (vtkImageData *image) |
vtkImageData * | GetImage () |
void | SetInput (vtkImageData *input) |
void | SetInput (int num, vtkImageData *input) |
float | GetError (void) |
void | GetError (float *e) |
float | GetThresholdedError (void) |
void | GetThresholdedError (float *e) |
virtual void | SetThreshold (int) |
virtual int | GetThreshold () |
virtual void | SetAllowShift (int) |
virtual int | GetAllowShift () |
virtual void | AllowShiftOn () |
virtual void | AllowShiftOff () |
virtual void | SetAveraging (int) |
virtual int | GetAveraging () |
virtual void | AveragingOn () |
virtual void | AveragingOff () |
Static Public Member Functions | |
static vtkImageDifference * | New () |
static int | IsTypeOf (const char *type) |
static vtkImageDifference * | SafeDownCast (vtkObject *o) |
Protected Member Functions | |
vtkImageDifference () | |
~vtkImageDifference () | |
void | ExecuteInformation (vtkImageData **inputs, vtkImageData *output) |
void | ComputeInputUpdateExtent (int inExt[6], int outExt[6], int whichInput) |
void | ExecuteInformation () |
void | ThreadedExecute (vtkImageData **inDatas, vtkImageData *outData, int extent[6], int id) |
Protected Attributes | |
float | ErrorPerThread [VTK_MAX_THREADS] |
float | ThresholdedErrorPerThread [VTK_MAX_THREADS] |
int | AllowShift |
int | Threshold |
int | Averaging |
|
Reimplemented from vtkImageTwoInputFilter. Definition at line 40 of file vtkImageDifference.h. |
|
|
|
Definition at line 99 of file vtkImageDifference.h. |
|
Create an object with Debug turned off, modified time initialized to zero, and reference counting on. Reimplemented from vtkObject. |
|
Reimplemented from vtkImageTwoInputFilter. |
|
Return 1 if this class type is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeRevisionMacro found in vtkSetGet.h. Reimplemented from vtkImageTwoInputFilter. |
|
Return 1 if this class is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeRevisionMacro found in vtkSetGet.h. Reimplemented from vtkImageTwoInputFilter. |
|
Reimplemented from vtkImageTwoInputFilter. |
|
Methods invoked by print to print information about the object including superclasses. Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes. Reimplemented from vtkImageTwoInputFilter. |
|
Specify the Image to compare the input to. Definition at line 45 of file vtkImageDifference.h. References vtkImageTwoInputFilter::SetInput2(). |
|
Specify the Image to compare the input to. Definition at line 46 of file vtkImageDifference.h. References vtkImageTwoInputFilter::GetInput2(). |
|
Specify the Input for comparison. Definition at line 51 of file vtkImageDifference.h. References vtkImageTwoInputFilter::SetInput1(). |
|
Specify the Input for comparison. Reimplemented from vtkImageMultipleInputFilter. Definition at line 52 of file vtkImageDifference.h. References vtkImageMultipleInputFilter::SetInput(). |
|
Return the total error in comparing the two images. |
|
Return the total error in comparing the two images. Definition at line 59 of file vtkImageDifference.h. |
|
Return the total thresholded error in comparing the two images. The thresholded error is the error for a given pixel minus the threshold and clamped at a minimum of zero. |
|
Return the total thresholded error in comparing the two images. The thresholded error is the error for a given pixel minus the threshold and clamped at a minimum of zero. Definition at line 67 of file vtkImageDifference.h. |
|
Specify a threshold tolerance for pixel differences. |
|
Specify a threshold tolerance for pixel differences. |
|
Specify whether the comparison will allow a shift of one pixel between the images. If set, then the minimum difference between input images will be used to determine the difference. Otherwise, the difference is computed directly between pixels of identical row/column values. |
|
Specify whether the comparison will allow a shift of one pixel between the images. If set, then the minimum difference between input images will be used to determine the difference. Otherwise, the difference is computed directly between pixels of identical row/column values. |
|
Specify whether the comparison will allow a shift of one pixel between the images. If set, then the minimum difference between input images will be used to determine the difference. Otherwise, the difference is computed directly between pixels of identical row/column values. |
|
Specify whether the comparison will allow a shift of one pixel between the images. If set, then the minimum difference between input images will be used to determine the difference. Otherwise, the difference is computed directly between pixels of identical row/column values. |
|
Specify whether the comparison will include comparison of averaged 3x3 data between the images. For graphics renderings you normally would leave this on. For imaging operations it should be off. |
|
Specify whether the comparison will include comparison of averaged 3x3 data between the images. For graphics renderings you normally would leave this on. For imaging operations it should be off. |
|
Specify whether the comparison will include comparison of averaged 3x3 data between the images. For graphics renderings you normally would leave this on. For imaging operations it should be off. |
|
Specify whether the comparison will include comparison of averaged 3x3 data between the images. For graphics renderings you normally would leave this on. For imaging operations it should be off. |
|
Reimplemented from vtkImageMultipleInputFilter. |
|
Reimplemented from vtkImageMultipleInputFilter. |
|
Reimplemented from vtkImageMultipleInputFilter. Definition at line 110 of file vtkImageDifference.h. References vtkImageMultipleInputFilter::ExecuteInformation(). |
|
The execute method created by the subclass. This is kept public instead of protected since it is called from a non-member thread function. Reimplemented from vtkImageMultipleInputFilter. |
|
Definition at line 101 of file vtkImageDifference.h. |
|
Definition at line 102 of file vtkImageDifference.h. |
|
Definition at line 103 of file vtkImageDifference.h. |
|
Definition at line 104 of file vtkImageDifference.h. |
|
Definition at line 105 of file vtkImageDifference.h. |