[vtkusers] how to get the get the currently displayed image
Willi Huber
surfersparadise85-vtk at yahoo.com
Tue Jan 15 09:53:28 EST 2013
Hi Jose,
you can ask vtkImageReslice for it's output ( GetOutput() ) and write it to disk using dicom writer.
Best,
Willi
>________________________________
> Von: José M. Rodriguez Bacallao <jmrbcu at gmail.com>
>An: VTK Users <vtkusers at vtk.org>
>Gesendet: 15:34 Dienstag, 15.Januar 2013
>Betreff: [vtkusers] how to get the get the currently displayed image
>
>
>hi folks, I need to get the currently displayed image and save it to a dicom file and I don't want to user vtkWindowToImageFilter, the problem with this filter is that it only save one slice (including annotations) and I need to save all slices in the current orientation. My orientations are set using the camera view up, this is an example pipeline:
>
>
>vtkGDCMImageReader -> vtkImageChangeInformation -> vtkImageReslice -> vtkImageSlice -> vtkRenderer -> vtkRenderWindow
>
>
>I am using python by the way.
>_______________________________________________
>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
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20130115/31e7fecb/attachment.htm>
More information about the vtkusers
mailing list