image pipeline
M.Schrijver at el.utwente.nl
M.Schrijver at el.utwente.nl
Mon Oct 4 06:32:13 EDT 1999
First of all, you shouldn't change attribute data of your input! Always
copy it into a new dataset.
Now, the 'problem' you are describing is caused by the fact that
vtkImageToStructuredPoints does not change the attribute data, and hence
uses a reference-counted copy of it! So, to preserve memory, it does not
actually copy the data.
Maybe you are looking for a 'deep-copy'? So, instead of using [sp
GetPointData] PassData [etc.] use [sp GetPointData] DeepCopy etc.
Hope this helps, Marc
ir. Marc Schrijver
Faculty of Electrical Engineering (S&S NT)
University of Twente
The Netherlands
> ----------
> From: Ana Cugat[SMTP:c1f6326 at hotmail.com]
> Sent: Saturday, October 02, 1999 10:03 PM
> To: c1f6326 at hotmail.com; vtkusers at gsao.med.ge.com
> Subject: Re: image pipeline
>
> Hello again,
>
> I've tried as follows:
>
> vtkImageReader sliceReader
> .
> .
> .
> vtkImageToStructuredPoints toS
> toS SetInput [sliceReader GetOutput]
> vtkStructuredPoints sp
> sp CopyStructure [toS GetOutput]
> [sp GetPointData] PassData [[toS GetOutput] GetPointData]
>
> and still when I change scalar values in the sp object, the same
> changes
> occur in sliceReader.
>
> Does anybody know what is going on??
>
> Thanks,
>
> Ana
>
>
>
>
>
>
> >From: "Ana Cugat" <c1f6326 at hotmail.com>
> >To: vtkusers at gsao.med.ge.com
> >Subject: image pipeline
> >Date: Fri, 01 Oct 1999 18:21:06 CEST
> >
> >Hello,
> >
> >I'm using
> >
> >vtkImageReader sliceReader
> >.
> >.
> >.
> >
> >vtkImageToStructuredPoints toS
> >toS SetInput [sliceReader GetOutput]
> >
> >
> >When I change some data attributes of [toS GetOutput] the same
> changes
> >occur
> >to the slireader data. How can I avoid this?
> >
> >Thanks,
> >
> >Ana
> >
> >
> >______________________________________________________
> >Get Your Private, Free Email at http://www.hotmail.com
> >
> >
> >---------------------------------------------------------------------
> --------
> >This is the private VTK discussion list. Please keep messages
> on-topic.
> >Check the FAQ at: <http://www.automatrix.com/cgi-bin/vtkfaq>
> >To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers"
> to
> ><majordomo at gsao.med.ge.com>. For help, send message body containing
> >"info vtkusers" to the same address. Live long and prosper.
> >---------------------------------------------------------------------
> --------
> >
>
> ______________________________________________________
> Get Your Private, Free Email at http://www.hotmail.com
>
>
> ----------------------------------------------------------------------
> -------
> This is the private VTK discussion list. Please keep messages
> on-topic.
> Check the FAQ at: <http://www.automatrix.com/cgi-bin/vtkfaq>
> To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to
> <majordomo at gsao.med.ge.com>. For help, send message body containing
> "info vtkusers" to the same address. Live long and prosper.
> ----------------------------------------------------------------------
> -------
>
-----------------------------------------------------------------------------
This is the private VTK discussion list. Please keep messages on-topic.
Check the FAQ at: <http://www.automatrix.com/cgi-bin/vtkfaq>
To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to
<majordomo at gsao.med.ge.com>. For help, send message body containing
"info vtkusers" to the same address. Live long and prosper.
-----------------------------------------------------------------------------
More information about the vtkusers
mailing list