[vtkusers] Reslice an image with a stencil using a dataset.

vlibertiaux vlibertiaux at gmail.com
Thu Feb 17 17:06:21 EST 2011


Hi David,

The vtkDataSet element contains the coordinates of a single element. It is
given as the input of the function, so we can think this element as the full
mesh as far as the code I'm working on is concerned.

What I cannot still figure out is why the stencil is not working as it
should.  The vtkImplicitFunctionToImageStencil was, to my opinion, given the
good input.  There should be some 2's (background value) when I call the
reslice->GetOutput() imagedata because I know for sure that the element is
strictly smaller than it's corresponding bounding box (the element is not a
cube).

Now knowing that I am working on a single element already extracted in a
previous part of the code, could you help me figure out why the stencil does
not seem to perform his task ?

Anyway, I am really grateful to you for the time you spent answering my
questions.

Best regards,

V.
-- 
View this message in context: http://vtk.1045678.n5.nabble.com/Reslice-an-image-with-a-stencil-using-a-dataset-tp3390074p3390240.html
Sent from the VTK - Users mailing list archive at Nabble.com.



More information about the vtkusers mailing list