[vtkusers] Set ImageData to zero
speedy
markenjodsalz at gmx.net
Tue Sep 27 09:47:17 EDT 2011
Sorry if this question actually has a simple answer, but what is the fastest
way to set every pixel of a vtkImageData to zero (or any other value fitting
in its pixeltype)?
I've tried vtkImageThreshold, but it doesn't seem to do anything or maybe I
am using it wrong:
threshold = vtkSmartPointer<vtkImageThreshold>::New();
threshold->SetInput(Image);
threshold->ReplaceOutOn();
threshold->SetOutValue(Value);
threshold->ThresholdByLower(maximum_image_value);
threshold->Update();
--
View this message in context: http://vtk.1045678.n5.nabble.com/Set-ImageData-to-zero-tp4845442p4845442.html
Sent from the VTK - Users mailing list archive at Nabble.com.
More information about the vtkusers
mailing list