[Paraview] DATA ARRAYS
vpessoa at lncc.br
vpessoa at lncc.br
Wed Nov 22 12:49:23 EST 2006
Hi Kent.
Thank's again for your help.
I can now insert a data array in my filter and the contour filter is now getting
enabled. But, when I run it (accept button on Contour Filter), BOOM!
Segmentation Fault.
I have a DICOM reader that generates a vtkImageData (with a range from about
-2600 to 3600). That is the source for my filter.
It may be relevant to say that when I run the contour filter directly from the
DICOM Reader there's no problem at all.
But, I select my Voxel Grow Filter. Then, a data array with a range of 0 - 255
(grayscale) is setted for that item (Contour filter PV is feeded from that
vtkDataArray). With that, I add the value 255 (the image is already
segmentated). Accept pressed, I get a segmentation fault.
Well, what else do I must fill besides the vtkDataArray?
Thank you for your help!
----------------------------------------
Atencisamente,
Vinicius Pessôa
Laboratório Nacional de Computação Científica
+55 (24) 2233-6098
+55 (24) 8803-7061
Quoting Kent Eschenberg <eschenbe at psc.edu>:
> The contour filter will not be enabled unless the image has at least one
> scalar variable attached to each vertex (called point data).
>
> For example, when I read a PNG image, the Information tab shows, under "Data
> Arrays", that there is one varialbe of type "3 - unsigned char" attached to
> each point. Since this is a vector, not a scalar, Contour is not enabled.
>
> What type of image file are you reading with ParaView?
>
> Kent
>
> --On 11/22/2006 08:44:26 AM -0300 vpessoa at lncc.br wrote:
> > Hi Kent.
> > Thank you for your help.
> >
> > I'm running Paraview 2.4 on linux (windows too, but the develp enviroment
> is
> > linux).
> >
> > The problem occurs after I run Voxel Grow filter on a vtkImageData.
> > And yes, I can export that vtkImageData to other formats, visualize it
> using my
> > widget and even apply other filters. No messages are shown. The contour
> filter
> > just doesn't get enabled.
> > My "Data Arrays" stays empty. I believe that is the problem. But at the
> same
> > time, I don't know how to set it.
> >
> > Any guess?
> >
> > Thank's in advance!
> > ----------------------------------------
> > Atencisamente,
> > Vinicius Pessôa
> > Laboratório Nacional de Computação Científica
> > +55 (24) 2233-6098
> > +55 (24) 8803-7061
> >
> >
> >
> > Quoting Kent Eschenberg <eschenbe at psc.edu>:
> >
> >> It would help if you could say
> >> - ParaView version
> >> - operatiing system and version
> >> - type of image file
> >> - can you display the image file with other programs?
> >> - are there any messages in the window from which you started PV?
> >>
> >> Kent
> >>
> >> --On 11/21/2006 03:41:38 PM -0300 vpessoa at lncc.br wrote:
> >> > Hi all.
> >> >
> >> > I'm having a problem with vtkImageData data arrays. When I "Accept" my
> >> filter,
> >> > it does all the processament that it should.
> >> >
> >> > The problem is right after that, the the Data Array (on the information
> >> tab) of
> >> > my filter remains empty, and I don't know how to set that information. I
> >> want
> >> > to run the contour filter on the result of my filter, and I believe that
> >> the
> >> > contour filter doesn't get enabled because of that non filled data
> array.
> >> >
> >> > Can anyone PLEASE help me?
> >> >
> >> > Thank's in advance!
> >> > ----------------------------------------
> >> > Atencisamente,
> >> > Vinicius Pessôa
> >> > Laboratório Nacional de Computação Científica
> >> > +55 (24) 2233-6098
> >> > +55 (24) 8803-7061
>
----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.
More information about the ParaView
mailing list