Go to the documentation of this file.
31 #ifndef vtkImageWeightedSum_h
32 #define vtkImageWeightedSum_h
34 #include "vtkImagingMathModule.h"
94 int ext[6],
int id)
override;
virtual void SetWeights(vtkDoubleArray *)
The weights control the contribution of each input to the sum.
int FillInputPortInformation(int i, vtkInformation *info) override
Fill the input port information objects for this algorithm.
static vtkImageWeightedSum * New()
Generic filter that has one input.
double CalculateTotalWeight()
Compute the total value of all the weight.
vtkTypeBool NormalizeByWeight
topologically and geometrically regular array of data
a simple class to control print indentation
void ThreadedRequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector, vtkImageData ***inData, vtkImageData **outData, int ext[6], int id) override
If the subclass does not define an Execute method, then the task will be broken up,...
adds any number of images, weighting each according to the weight set using this->SetWeights(i,...
virtual void SetWeight(vtkIdType id, double weight)
Change a specific weight.
dynamic, self-adjusting array of double
~vtkImageWeightedSum() override
int RequestInformation(vtkInformation *vtkNotUsed(request), vtkInformationVector **vtkNotUsed(inputVector), vtkInformationVector *outputVector) override
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.