[vtkusers] Writing a JPEG from vtkActor
Amy Squillacote
amy.squillacote at kitware.com
Tue Dec 20 09:38:02 EST 2005
vtkDataSetToImageFilter is an abstract class; you cannot instantiate
it. Instead use one of the classes that take a vtkDataSet as input
and produce a vtkImageData as output (i.e, vtkGaussianSplatter,
vtkImplicitModeller, vtkShepardMethod,
vtkSurfaceReconstructionFilter, or vtkVoxelModeller).
- Amy
At 09:22 AM 12/20/2005, Dominik Szczerba wrote:
>Strange. I found vtkDataSetToImageFilter, but on a line:
>
>vtkDataSetToImageFilter* imageFilter = vtkDataSetToImageFilter::New();
>
>I get a compilation error:
>
>error: cannot convert `vtkDataObject*' to `vtkDataSetToImageFilter*' in
>initialization
>
>what is wrong?
>Dominik
>
>Dominik Szczerba wrote:
> > What is the error? I try to do the same with vtkPNGWriter ending up with:
> >
> > vtkPNGWriter (0x8058948): PNGWriter only supports unsigned char and
> > unsigned short inputs
> >
> > Meanwhile I try to figure out how to do the appropriate convertion in vtk.
> > --dsz
> >
> > Marlos Fabris wrote:
> >
> >>Hi,
> >>
> >>I'm trying to write a jpeg file (using vtkJPEGWriter) from a vtkActor
> >>but I can't accomplish this. I have a vtk file with structured points
> >>data and I wish to transform to vtkPolyData and color it with my
> >>vtkLookupTable.
> >>
> >>Is there a way to convert only my vtkActor to a vtkImageData, without
> >>the frameborders of vtkWindowToImageFilter?
> >>
> >>Or is there a way to trim my image?
> >>
> >>Thank you in advance,
> >>
> >>Marlos Fabris
> >>_______________________________________________
> >>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
> >
> >
>
>--
>Dominik Szczerba, Dr.
>ETZ C110 CO-ME/BIWI CH-8092 Zurich
>http://www.vision.ee.ethz.ch/~domi
>_______________________________________________
>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
More information about the vtkusers
mailing list