[vtkusers] vtkImageReslice using stencil

E.R frantic_tictoc83 at yahoo.gr
Mon Sep 20 08:49:45 EDT 2010


 I have tried this..but I got a memory
 error.."Attempted to read or write protected memory"... 
 What I am doing wrong????? :-|
 
> --- Στις Δευτ., 20/09/10, ο/η Jim Peterson <jimcp at cox.net>
> έγραψε:
> 
> > Από: Jim Peterson <jimcp at cox.net>
> > Θέμα: Re: [vtkusers] vtkImageReslice using
> stencil
> > Προς: "E.R" <frantic_tictoc83 at yahoo.gr>
> > Κοιν.: vtkusers at vtk.org
> > Ημερομηνία: Δευτέρα, 20
> Σεπτέμβριος 2010, 15:15
> > 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