[vtkusers] vtkImageReslice using stencil
Jim Peterson
jimcp at cox.net
Mon Sep 20 08:15:27 EDT 2010
Elias,
If I read that error message correctly, it sounds like
reslice.SetOutputExtent(100,300,250,300,0,0) ;
would be accepted. The question is would it be the desired result?
HTH
Jim
E.R wrote:
> 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
>
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
>
More information about the vtkusers
mailing list