adds any number of images, weighting each according to the weight set using this->SetWeights(i,w).
More...
#include <vtkImageWeightedSum.h>
Inherits vtkThreadedImageAlgorithm.
adds any number of images, weighting each according to the weight set using this->SetWeights(i,w).
All weights are normalized so they will sum to 1. Images must have the same extents. Output is
- Thanks:
- The original author of this class is Lauren O'Donnell (MIT) for Slicer
- Tests:
- vtkImageWeightedSum (Tests)
Definition at line 37 of file vtkImageWeightedSum.h.
vtkImageWeightedSum::vtkImageWeightedSum |
( |
| ) |
|
|
protected |
vtkImageWeightedSum::~vtkImageWeightedSum |
( |
| ) |
|
|
protected |
static int vtkImageWeightedSum::IsTypeOf |
( |
const char * |
type | ) |
|
|
static |
virtual int vtkImageWeightedSum::IsA |
( |
const char * |
type | ) |
|
|
virtual |
virtual vtkObjectBase* vtkImageWeightedSum::NewInstanceInternal |
( |
| ) |
const |
|
protectedvirtual |
void vtkImageWeightedSum::PrintSelf |
( |
ostream & |
os, |
|
|
vtkIndent |
indent |
|
) |
| |
virtual void vtkImageWeightedSum::SetWeights |
( |
vtkDoubleArray * |
| ) |
|
|
virtual |
The weights control the contribution of each input to the sum. They will be normalized to sum to 1 before filter execution.
virtual vtkDoubleArray* vtkImageWeightedSum::GetWeights |
( |
| ) |
|
|
virtual |
The weights control the contribution of each input to the sum. They will be normalized to sum to 1 before filter execution.
virtual void vtkImageWeightedSum::SetWeight |
( |
vtkIdType |
id, |
|
|
double |
weight |
|
) |
| |
|
virtual |
Change a specific weight. Reallocation is done
virtual int vtkImageWeightedSum::GetNormalizeByWeight |
( |
| ) |
|
|
virtual |
Setting NormalizeByWeight on will divide the final result by the total weight of the component functions. This process does not otherwise normalize the weighted sum By default, NormalizeByWeight is on.
virtual void vtkImageWeightedSum::SetNormalizeByWeight |
( |
int |
| ) |
|
|
virtual |
Setting NormalizeByWeight on will divide the final result by the total weight of the component functions. This process does not otherwise normalize the weighted sum By default, NormalizeByWeight is on.
virtual void vtkImageWeightedSum::NormalizeByWeightOn |
( |
| ) |
|
|
virtual |
Setting NormalizeByWeight on will divide the final result by the total weight of the component functions. This process does not otherwise normalize the weighted sum By default, NormalizeByWeight is on.
virtual void vtkImageWeightedSum::NormalizeByWeightOff |
( |
| ) |
|
|
virtual |
Setting NormalizeByWeight on will divide the final result by the total weight of the component functions. This process does not otherwise normalize the weighted sum By default, NormalizeByWeight is on.
double vtkImageWeightedSum::CalculateTotalWeight |
( |
| ) |
|
Compute the total value of all the weight
int vtkImageWeightedSum::RequestInformation |
( |
vtkInformation * |
vtkNotUsedrequest, |
|
|
vtkInformationVector ** |
vtkNotUsedinputVector, |
|
|
vtkInformationVector * |
outputVector |
|
) |
| |
|
protected |
void vtkImageWeightedSum::ThreadedRequestData |
( |
vtkInformation * |
request, |
|
|
vtkInformationVector ** |
inputVector, |
|
|
vtkInformationVector * |
outputVector, |
|
|
vtkImageData *** |
inData, |
|
|
vtkImageData ** |
outData, |
|
|
int |
ext[6], |
|
|
int |
id |
|
) |
| |
|
protected |
int vtkImageWeightedSum::FillInputPortInformation |
( |
int |
i, |
|
|
vtkInformation * |
info |
|
) |
| |
|
protected |
vtkDoubleArray* vtkImageWeightedSum::Weights |
|
protected |
int vtkImageWeightedSum::NormalizeByWeight |
|
protected |
The documentation for this class was generated from the following file: