<html><body><div style="color:#000; background-color:#fff; font-family:verdana, helvetica, sans-serif;font-size:10pt"><div>As far as I know of ImageResliceMapper doesn't do anything to your data. Therefore you just can use the input data.</div><div><br></div><div style="color: rgb(0, 0, 0); font-size: 13px; font-family: verdana, helvetica, sans-serif; background-color: transparent; font-style: normal;">If you want to write out the data with the new orientation according to the slicing plane set in ImageResliceMapper you better should use vtkImageReslice or you can obtain the slicingPlane of the mapper and do the math to set the axes in vtkImageReslice.</div><div style="color: rgb(0, 0, 0); font-size: 13px; font-family: verdana, helvetica, sans-serif; background-color: transparent; font-style: normal;"><br></div><div style="color: rgb(0, 0, 0); font-size: 13px; font-family: verdana, helvetica, sans-serif; background-color: transparent; font-style:
normal;">Best,</div><div style="color: rgb(0, 0, 0); font-size: 13px; font-family: verdana, helvetica, sans-serif; background-color: transparent; font-style: normal;">Willi</div><div><br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; margin-top: 5px; padding-left: 5px;"> <div style="font-family: verdana, helvetica, sans-serif; font-size: 10pt;"> <div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt;"> <div dir="ltr"> <font size="2" face="Arial"> <hr size="1"> <b><span style="font-weight:bold;">Von:</span></b> José M. Rodriguez Bacallao <jmrbcu@gmail.com><br> <b><span style="font-weight: bold;">An:</span></b> Willi Huber <surfersparadise85-vtk@yahoo.com> <br><b><span style="font-weight: bold;">CC:</span></b> VTK Users <vtkusers@vtk.org> <br> <b><span style="font-weight: bold;">Gesendet:</span></b> 16:01 Dienstag, 15.Januar 2013<br> <b><span style="font-weight:
bold;">Betreff:</span></b> Re: [vtkusers] how to get the get the currently displayed image<br> </font> </div> <br><div id="yiv1465663145"><div dir="ltr">sorry there is a typo in my pipeline, when I wrote <span style="font-family: arial, sans-serif; font-size: 13px;">vtkImageReslice and I mean </span><span style="font-family: arial, sans-serif; font-size: 13px;">vtkImageResliceMapper, so, I don't have an instance of </span><span style="font-family: arial, sans-serif; font-size: 13px;">vtkImageReslice in my pipeline, I think that </span><span style="font-family: arial, sans-serif; font-size: 13px;">vtkImageResliceMapper has one but I don't know how to get it?</span></div>
<div class="yiv1465663145gmail_extra"><br><br><div class="yiv1465663145gmail_quote">On Tue, Jan 15, 2013 at 9:53 AM, Willi Huber <span dir="ltr"><<a rel="nofollow" ymailto="mailto:surfersparadise85-vtk@yahoo.com" target="_blank" href="mailto:surfersparadise85-vtk@yahoo.com">surfersparadise85-vtk@yahoo.com</a>></span> wrote:<br>
<blockquote class="yiv1465663145gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div><div style="font-size: 10pt; font-family: verdana, helvetica, sans-serif;"><div><span>Hi Jose,</span></div><div style="font-style: normal; font-size: 13px; background-color: transparent; font-family: verdana, helvetica, sans-serif;">
<span><br></span></div><div style="font-style: normal; font-size: 13px; background-color: transparent; font-family: verdana, helvetica, sans-serif;"><span>you can ask vtkImageReslice for it's output ( GetOutput() ) and write it to disk using dicom writer.</span></div>
<div style="font-style: normal; font-size: 13px; background-color: transparent; font-family: verdana, helvetica, sans-serif;"><span><br></span></div><div style="font-style: normal; font-size: 13px; background-color: transparent; font-family: verdana, helvetica, sans-serif;">
<span>Best,</span></div><div style="font-style: normal; font-size: 13px; background-color: transparent; font-family: verdana, helvetica, sans-serif;"><span>Willi</span></div><div><br><blockquote style="border-left:2px solid rgb(16,16,255);margin-left:5px;margin-top:5px;padding-left:5px;">
<div style="font-family: verdana, helvetica, sans-serif; font-size: 10pt;"> <div style="font-size:12pt;"> <div dir="ltr"> <font face="Arial"> <hr size="1"> <b><span style="font-weight:bold;">Von:</span></b> José M. Rodriguez Bacallao <<a rel="nofollow" ymailto="mailto:jmrbcu@gmail.com" target="_blank" href="mailto:jmrbcu@gmail.com">jmrbcu@gmail.com</a>><br>
<b><span style="font-weight:bold;">An:</span></b> VTK Users <<a rel="nofollow" ymailto="mailto:vtkusers@vtk.org" target="_blank" href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a>> <br> <b><span style="font-weight:bold;">Gesendet:</span></b> 15:34 Dienstag, 15.Januar 2013<br>
<b><span style="font-weight:bold;">Betreff:</span></b> [vtkusers] how to get the get the currently displayed image<br> </font> </div><div class="yiv1465663145im"> <br><div><div dir="ltr">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:<div>
<br></div><div>vtkGDCMImageReader -> vtkImageChangeInformation -> vtkImageReslice -> vtkImageSlice -> vtkRenderer -> vtkRenderWindow</div><div><br></div><div>I am using python by the way.</div>
</div>
</div><br></div>_______________________________________________<br>Powered by <a rel="nofollow" target="_blank" href="http://www.kitware.com/">www.kitware.com</a><br><br>Visit other Kitware open-source projects at <a rel="nofollow" target="_blank" href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a><br>
<br>Please keep messages on-topic and check the VTK FAQ at: <a rel="nofollow" target="_blank" href="http://www.vtk.org/Wiki/VTK_FAQ">http://www.vtk.org/Wiki/VTK_FAQ</a><br><br>Follow this link to subscribe/unsubscribe:<br><a rel="nofollow" target="_blank" href="http://www.vtk.org/mailman/listinfo/vtkusers">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
<br><br> </div> </div> </blockquote></div> </div></div></blockquote></div><br></div>
</div><br><br> </div> </div> </blockquote></div> </div></body></html>