How to convert vtkpolydata to image?

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

How to convert vtkpolydata to image?

tan3long
Hi,

As the title,how can I get image output from vtkpolydata?Which filters can I use?Any examples?
Thank you for your attention
Reply | Threaded
Open this post in threaded view
|

Re: How to convert vtkpolydata to image?

Liam Kurmos-2
you can find many examples on the vtk wiki of how to use vtk

eg.

http://www.vtk.org/Wiki/VTK/Examples/Cxx/GeometricObjects/Sphere

(a vtkSphereSources outputs a polydata)


Liam



On Wed, Aug 24, 2011 at 8:38 AM, tan3long <[hidden email]> wrote:

> Hi,
>
> As the title,how can I get image output from vtkpolydata?Which filters can I
> use?Any examples?
> Thank you for your attention
>
> --
> View this message in context: http://vtk.1045678.n5.nabble.com/How-to-convert-vtkpolydata-to-image-tp4729551p4729551.html
> Sent from the VTK - Users mailing list archive at Nabble.com.
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ

Follow this link to subscribe/unsubscribe:
http://www.vtk.org/mailman/listinfo/vtkusers
Reply | Threaded
Open this post in threaded view
|

Re: How to convert vtkpolydata to image?

Jothy
In reply to this post by tan3long
Look at vtkPolyDataToImageStencil and vtkImageDataGeometryFilter.

Jothy

On Wed, Aug 24, 2011 at 8:38 AM, tan3long <[hidden email]> wrote:
Hi,

As the title,how can I get image output from vtkpolydata?Which filters can I
use?Any examples?
Thank you for your attention

--
View this message in context: http://vtk.1045678.n5.nabble.com/How-to-convert-vtkpolydata-to-image-tp4729551p4729551.html
Sent from the VTK - Users mailing list archive at Nabble.com.
_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ

Follow this link to subscribe/unsubscribe:
http://www.vtk.org/mailman/listinfo/vtkusers


_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ

Follow this link to subscribe/unsubscribe:
http://www.vtk.org/mailman/listinfo/vtkusers
Reply | Threaded
Open this post in threaded view
|

Re: How to convert vtkpolydata to image?

tan3long
In reply to this post by tan3long
I want to write an image as output(vtkJPEGWriter) from polydata(vtkCutter.getOutput()).

I tried vtkDataSetToImageDataFilter,but failed......

What is the problem?

Error Message is as below:

#
# A fatal error has been detected by the Java Runtime Environment:
#
#  EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x00220034, pid=4632, tid=1524
#
# JRE version: 6.0_26-b03
# Java VM: Java HotSpot(TM) Client VM (20.1-b02 mixed mode, sharing windows-x86 )
# Problematic frame:
# C  0x00220034
#
# An error report file with more information is saved as:
# D:\Workspaces\eclipse\Plane\hs_err_pid4632.log
#
# If you would like to submit a bug report, please visit:
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#

2011/8/24 tan3long <[hidden email]>
Hi,

As the title,how can I get image output from vtkpolydata?Which filters can I
use?Any examples?
Thank you for your attention

--
View this message in context: http://vtk.1045678.n5.nabble.com/How-to-convert-vtkpolydata-to-image-tp4729551p4729551.html
Sent from the VTK - Users mailing list archive at Nabble.com.
_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ

Follow this link to subscribe/unsubscribe:
http://www.vtk.org/mailman/listinfo/vtkusers


_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ

Follow this link to subscribe/unsubscribe:
http://www.vtk.org/mailman/listinfo/vtkusers
Reply | Threaded
Open this post in threaded view
|

Re: How to convert vtkpolydata to image?

Dženan Zukić
Maybe this is what you are looking for:
http://www.vtk.org/Wiki/VTK/Examples/Cxx/Utilities/Screenshot

On Wed, Aug 24, 2011 at 11:19, Gauler Tan <[hidden email]> wrote:
I want to write an image as output(vtkJPEGWriter) from polydata(vtkCutter.getOutput()).

I tried vtkDataSetToImageDataFilter,but failed......

What is the problem?

Error Message is as below:

#
# A fatal error has been detected by the Java Runtime Environment:
#
#  EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x00220034, pid=4632, tid=1524
#
# JRE version: 6.0_26-b03
# Java VM: Java HotSpot(TM) Client VM (20.1-b02 mixed mode, sharing windows-x86 )
# Problematic frame:
# C  0x00220034
#
# An error report file with more information is saved as:
# D:\Workspaces\eclipse\Plane\hs_err_pid4632.log
#
# If you would like to submit a bug report, please visit:
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#

2011/8/24 tan3long <[hidden email]>
Hi,

As the title,how can I get image output from vtkpolydata?Which filters can I
use?Any examples?
Thank you for your attention

--
View this message in context: http://vtk.1045678.n5.nabble.com/How-to-convert-vtkpolydata-to-image-tp4729551p4729551.html
Sent from the VTK - Users mailing list archive at Nabble.com.
_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ

Follow this link to subscribe/unsubscribe:
http://www.vtk.org/mailman/listinfo/vtkusers


_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ

Follow this link to subscribe/unsubscribe:
http://www.vtk.org/mailman/listinfo/vtkusers



_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ

Follow this link to subscribe/unsubscribe:
http://www.vtk.org/mailman/listinfo/vtkusers