[vtkusers] pipeline update
Adrian Albert
a.albert at jacobs-university.de
Tue Apr 22 13:32:23 EDT 2008
Dear All,
I have a question about the pipeline update mechanism in VTK: If I call
Update () on an algorithm that has as input the output of another algorithm,
does the Update command propagate down the pipeline and causes a
recomputation for all algorithms involved?
For example, this code should calculate the gradient of the gradient
magnitude (a measure of a second order derivative):
// Gradient magnitude
vtkImageGradientMagnitude* grad = vtkImageGradientMagnitude::New();
grad->SetDimensionality( 3 );
grad->SetInput (this->GetMultivariateField (whichField));
grad->Update ();
// Gradient of gradient magnitude
vtkImageGradient* gradGrad = vtkImageGradient::New();
gradGrad->SetDimensionality( 3 );
gradGrad->SetInput (grad->GetOutput ());
gradGrad->Update ();
Specifically, would I cause two computations of the gradient magnitude
(first 4 lines of code) by calling Update twice?
Thanks!
Adrian
--
---------------------------------------------------
Adrian Albert
School of Engineering and Science
Jacobs University Bremen
Germany
Tel.: 00494212003258
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20080422/e89a589e/attachment-0001.htm>
More information about the vtkusers
mailing list