30 #ifndef __vtkImageWeightedSum_h
31 #define __vtkImageWeightedSum_h
33 #include "vtkImagingMathModule.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();
78 vtkInformationVector** vtkNotUsed( inputVector ),
79 vtkInformationVector *outputVector);
82 vtkInformationVector** inputVector,
83 vtkInformationVector* outputVector,
84 vtkImageData ***inData, vtkImageData **outData,
void PrintSelf(ostream &os, vtkIndent indent)
Generic filter that has one input..
adds any number of images, weighting each according to the weight set using this->SetWeights(i,w).
virtual int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
virtual int FillInputPortInformation(int port, vtkInformation *info)
virtual void ThreadedRequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector, vtkImageData ***inData, vtkImageData **outData, int extent[6], int threadId)
static vtkAlgorithm * New()