[vtkusers] Help needed using segmented data
Mathieu Malaterre
mathieu.malaterre at kitware.com
Mon Jul 26 17:07:12 EDT 2004
Vidya,
You really want to start with smaller example as a newbie. One thing to
track down your mistake is to print the output of each filter to find
out where the value you are passing is wrong.
filterName Update
puts [[filterName GetOutput] Print]
HTH
Mathieu
Ps: Sorry for the SetValues, I thought this was using the standart
vtkContourFilter.
Vidya Raghavan wrote:
>
> Also, to make things clearer... I use mean shift segmentation to segment
> through a set of input 256X256 BMP files
> http://www.cs.northwestern.edu/~vidya/VTK/input_images/.
>
> The segmented data files
> (http://www.cs.northwestern.edu/~vidya/VTK/data) have integer lables for
> each pixel in the corresponding 256 X 256 images.
>
> I am using these data files when I run region1.tcl
>
> So, I'm not too sure what you mean by Value, and what i need to set it
> to. I'll really appreciate your input.
>
> Thanks again..
>
>
>> Vidya,
>>
>> When you do the SetValue in vtkContourFilter, be sure that it is
>> within the correct range (use GetScalarRange to find it).
>>
>> HTH
>> Mathieu
>>
>> Vidya Raghavan wrote:
>>
>>> Dear VTK users,
>>>
>>> I had posted this question earlier, but didn't get any response yet.
>>> So, I'm reposting it. Hope someone can help me.
>>>
>>> Basically, I am trying to model segmented data in VTK, based on the
>>> tutorial provided in:
>>>
>>> http://www.crd.ge.com/~lorensen/seg12/, where the input data is
>>> described as "a set of slices that have the same resolution as the
>>> original data, but grayscale values have been replaced with integer
>>> segmentation labels.".
>>>
>>> There were some errors in the scripts as they used an older verison
>>> of VTK. I now have these scripts working for VTK 4.2 and there are at
>>> http://www.cs.northwestern.edu/~vidya/VTK/scripts
>>>
>>> Now I am trying to use my own segmented data with the above scripts,
>>> where they represent 256 X 256 segmented data, with each pixel
>>> represented by an integer.
>>>
>>> The segmented data I have used is at:
>>> http://www.cs.northwestern.edu/~vidya/VTK/data
>>>
>>> The script I have written to describe these parameters is region1.tcl
>>>
>>> When I run region1.tcl I should get a vtk file region1.vtk. Instead
>>> it is empty and no polygons are generated. I am really trying to
>>> understand what is wrong, but since I'm new to VTK I still cannot
>>> figure it out.
>>>
>>> Could someone please help?
>>>
>>> Thanks.
>>>
>>> _________________________________________________________________
>>> Marriage? http://www.bharatmatrimony.com/cgi-bin/bmclicks1.cgi?74
>>> Join BharatMatrimony.com for free.
>>>
>>> _______________________________________________
>>> This is the private VTK discussion list. Please keep messages
>>> on-topic. Check the FAQ at: <http://public.kitware.com/cgi-bin/vtkfaq>
>>> Follow this link to subscribe/unsubscribe:
>>> http://www.vtk.org/mailman/listinfo/vtkusers
>>>
>>
>>
>>
>
> _________________________________________________________________
> Marriage? http://www.bharatmatrimony.com/cgi-bin/bmclicks1.cgi?74 Join
> BharatMatrimony.com for free.
>
>
More information about the vtkusers
mailing list