[vtkusers] how to get the get the currently displayed image

José M. Rodriguez Bacallao jmrbcu at gmail.com
Tue Jan 15 10:01:57 EST 2013


sorry there is a typo in my pipeline, when I wrote vtkImageReslice and I
mean vtkImageResliceMapper, so, I don't have an instance of vtkImageReslice
in my pipeline, I think that vtkImageResliceMapper has one but I don't know
how to get it?


On Tue, Jan 15, 2013 at 9:53 AM, Willi Huber <
surfersparadise85-vtk at yahoo.com> wrote:

> 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/cc3d0a91/attachment.htm>


More information about the vtkusers mailing list