[vtkusers] vtkImageReslice using stencil

E.R frantic_tictoc83 at yahoo.gr
Mon Sep 20 07:54:23 EDT 2010


Greetings!!

I am using vtkImageReslice.setStencil() to limit a specific area.
My code is like that:
vtkImageStencilData test = new vtkImageStencilData();

test.SetExtent(100, 300, 250, 300, 0, 0);
 reslice.SetStencil(test);
 reslice.SetOutputExtent(0, 511,0,804,0,0);

but I am getting this error message:

"The update extent specified in the information for output port 0 on algorithm vtkTrivialProducer(086731A0) is 0 511 0 804 0 0, which is outside the whole extent 100 300 250 300 0 0."

What I am doing wrong?? How I ll set the stencil inside my Image bounds?

thanks in advance!

Elias





More information about the vtkusers mailing list