[vtkusers] copy data of vtkImageData to another vtkImageData

Héber de Padua Sousa hebersousa at gmail.com
Mon Sep 20 17:05:02 EDT 2010


Thanks, but I have resolved.
how I did It needed an update in vtkImageData before of copying the data.

imagedata->Update();
 imagedata2 = vtkImageData::New();
  imagedata2->ShallowCopy(imagedata);

Thanks very much!


2010/9/20 David Doria <daviddoria at gmail.com>

> On Mon, Sep 20, 2010 at 4:09 PM, Héber de Padua Sousa
> <hebersousa at gmail.com> wrote:
> > How can I copy the data of vtkImageData to another vtkImageData ? I had
> > tried ShallowCopy, DeepCopy, StructureCopy but without sucess.
> > The image can't be rendering.
> > Ex:
> >  imagedata2 = vtkImageData::New();
> >   imagedata2->ShallowCopy(imagedata);
>
> Can you post a very short piece of compilable code that demonstrates
> that this doesn't work?
>
> David
>



-- 
>> Héber de Padua Sousa
/~heber
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20100920/ca7caaef/attachment.htm>


More information about the vtkusers mailing list