[vtkusers] again DICOM, how to read the data?
mauro maiorca
mauromaiorca at gmail.com
Tue Sep 11 09:10:03 EDT 2007
Hi Amy,
got it, thanks for the clear explanation!
the problem arises even before the Delete, actually here:
> tmpImage = reader->GetOutput();
by the way, what I'm trying to do, is to have a MxNxZ matrix with the
voxels of the 3d image in order to process them directly before
displaying!
it supposed to be the easiest thing ever, but I'm driving crazy to
understand how to point to such data! Do you have any hint?
cheers,
Mauro
> mauro maiorca wrote:
> > On 9/11/07, Peter F Bradshaw <pfb at exadios.com> wrote:
> >
> >
> >> What are you trying to do here? You have assigned tmpImage to a
> >> vtkImageSource object and straight away you throw that away. I can
> >> predict that the tmpImage->Delete() below will give you a seg fault.
> >>
> >
> > actually I'm not getting the meaning of your comment!
> > this is just a piece of code for testing, I cannot understand why you
> > can predict the segmentation fault. Do you mean that I should put
> > tmpImage->Delete() before of reader->Delete()? it gives segmentation
> > fault anyway!
> > How do you can predict that behaviour? I mean: I create an object, and
> > afterwards I delete it, what's wrong with it?
> >
> > thanks!
> > Mauro
> > _______________________________________________
> > This is the private VTK discussion list.
> > Please keep messages on-topic. Check the FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
> > Follow this link to subscribe/unsubscribe:
> > http://www.vtk.org/mailman/listinfo/vtkusers
> >
> >
>
> --
> Amy Squillacote
> Kitware, Inc.
> 28 Corporate Drive
> Clifton Park, NY 12065
> Phone: (518) 371-3971 x106
>
>
More information about the vtkusers
mailing list