<div dir="ltr"><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small;color:rgb(11,83,148)">Hi Magnus,</div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small;color:rgb(11,83,148)"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small;color:rgb(11,83,148)">First of all, if the goal is to just slice the volume consider using vtkImageReslice (<a href="http://www.vtk.org/Wiki/VTK/Examples/Cxx/ImageData/ImageReslice">http://www.vtk.org/Wiki/VTK/Examples/Cxx/ImageData/ImageReslice</a>) instead of vtkCutter.</div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small;color:rgb(11,83,148)"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small;color:rgb(11,83,148)">You can simply set the output image data of the vtkImageReslice to a vtkImageActor and add it to a vtkRenderer as in <a href="http://www.vtk.org/Wiki/VTK/Examples/Cxx/Images/InteractWithImage">http://www.vtk.org/Wiki/VTK/Examples/Cxx/Images/InteractWithImage</a></div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small;color:rgb(11,83,148)"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small;color:rgb(11,83,148)">Hope that helps.</div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small;color:rgb(11,83,148)"><br></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div><br></div><span style="color:rgb(11,83,148)"><span style="font-family:verdana,sans-serif"><b><font size="2">Sankhesh Jhaveri</font></b><br><i>Sr. Research & Development Engineer</i> | </span></span><span style="font-family:verdana,sans-serif;color:rgb(11,83,148)"><a href="http://www.kitware.com" target="_blank">Kitware</a> | </span><span style="font-family:verdana,sans-serif;color:rgb(11,83,148)">(518) 881-4417</span><div><br><b></b><br> </div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div>
<br><div class="gmail_quote">On Sat, Sep 10, 2016 at 8:01 PM, Magnus Elden <span dir="ltr"><<a href="mailto:magnus_elden@hotmail.com" target="_blank">magnus_elden@hotmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div lang="EN-US" link="#0563C1" vlink="#954F72"><div><p class="MsoNormal">I have a volume that the class vtkCutter cuts into n slices. Now I need to save a render of each slice to another larger canvas to generate something similar to this: <a href="http://previews.123rf.com/images/bunyos/bunyos1403/bunyos140300039/26777884-MRI-scan-of-the-human-brain-Stock-Photo.jpg" target="_blank">http://previews.123rf.com/<wbr>images/bunyos/bunyos1403/<wbr>bunyos140300039/26777884-MRI-<wbr>scan-of-the-human-brain-Stock-<wbr>Photo.jpg</a><u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">I am able to render it by linking the cutter output to a mapper and then into a vtkActor that I add to the renderer, but I have no idea how I can render each slice to a canvas. In the worst case I just want the renders to be all stored to disk.<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">Thank you for your help.<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">Yours,<u></u><u></u></p><p class="MsoNormal">Magnus Elden<u></u><u></u></p></div></div><br>______________________________<wbr>_________________<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/<wbr>opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" rel="noreferrer" target="_blank">http://www.vtk.org/Wiki/VTK_<wbr>FAQ</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=vtkusers" rel="noreferrer" target="_blank">http://markmail.org/search/?q=<wbr>vtkusers</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/vtkusers" rel="noreferrer" target="_blank">http://public.kitware.com/<wbr>mailman/listinfo/vtkusers</a><br>
<br></blockquote></div><br></div></div>