30 #ifndef __vtkImageWeightedSum_h
31 #define __vtkImageWeightedSum_h
33 #include "vtkImagingMathModule.h"
34 #include "vtkThreadedImageAlgorithm.h"
42 void PrintSelf(ostream& os, vtkIndent indent);
47 virtual void SetWeights(vtkDoubleArray*);
48 vtkGetObjectMacro(Weights, vtkDoubleArray);
52 virtual void SetWeight(vtkIdType
id,
double weight);
59 vtkGetMacro(NormalizeByWeight,
int);
60 vtkSetClampMacro(NormalizeByWeight,
int, 0, 1);
61 vtkBooleanMacro(NormalizeByWeight,
int);
65 double CalculateTotalWeight();
77 int RequestInformation (vtkInformation * vtkNotUsed(request),
78 vtkInformationVector** vtkNotUsed( inputVector ),
79 vtkInformationVector *outputVector);
81 void ThreadedRequestData (vtkInformation* request,
82 vtkInformationVector** inputVector,
83 vtkInformationVector* outputVector,
84 vtkImageData ***inData, vtkImageData **outData,
86 int FillInputPortInformation(
int i, vtkInformation* info);
adds any number of images, weighting each according to the weight set using this->SetWeights(i,w).