[vtk-developers] Conversion from vtkUnstructuredGrid to vtkImageData
Mathieu Malaterre
mathieu.malaterre at kitware.com
Thu Jun 17 13:12:32 EDT 2004
Sunil,
I am not sure this is the right place to ask this kind of question.
First, there are very few people on this list, second your question is
not about developing VTK but VTK usage. So could you please use vtkusers
mailing list instead, next time you are looking for filter usage.
Anyway to answer you question, why don't you just use an available
filter in VTK: vtkImageThreshold
http://www.vtk.org/doc/nightly/html/classvtkImageThreshold.html
HTH
Mathieu
Sunil Nimmagadda wrote:
> Hi
>
> I have a situation and in need of help.
>
> I applied vtkThreshold on a custom type image and the return data from
> vtkThreshold through SetOutput method is ofcourse vtkUnstructuredGrid.
>
> Now I need the data in vtkUnstructuredGrid to be converted to
> vtkImageData as my front end application can handle data in vtkImageData
> object only.
>
> I am not sure whether its right approach or not but I did try using
> DeepCopy and ShallowCopy to convert....i didn't work.
>
>
>
> I donot possess any documentation about vtk and my project is at a
> critical stage
>
> Any help would be wholeheartedly appreciated
>
>
>
> Thanx in advance
>
> With regards
>
> Sunil.
>
>
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> vtk-developers mailing list
> vtk-developers at vtk.org
> http://www.vtk.org/mailman/listinfo/vtk-developers
More information about the vtk-developers
mailing list