<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=iso-8859-1"><meta name=Generator content="Microsoft Word 14 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.E-MailFormatvorlage17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 2.0cm 70.85pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=DE link=blue vlink=purple><div class=WordSection1><p class=MsoNormal>Hi All,<o:p></o:p></p><p class=MsoNormal><span lang=EN-US><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span lang=EN-US>I have a vtkPlaneSource where a slice from a volume is mapped. This plane<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>is generated with a manually calculated size which is the largest possible<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>region within the image for the oblique plane.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span lang=EN-US>When I leave the OutputExtent of the slice in vtkImageReslice to default<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>the image is stretched in render window by factor 1.5 or so.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span lang=EN-US>When I set the extent with the method used for the plane, a vtk warning appears<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>at some angles for rotated/oblique planes that the extent is at least one pixel outside<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>the wholeExtent. It is vtkImageReslice who produces these warning.  <o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>So vtkImageReslice seems to know the boundary.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>I know the method has a rounding error which is not fixed yet. But that might not be a<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>reason for the factor 1.5, because it is just one pixel (e.g. 255-&gt;256).<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span lang=EN-US>As far as I understood the documentation there is no need to set the OutputExtent <o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>manually, as long as the largest possible extent is preferred.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>The documentation says: <o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>If no OutputExtent is set the extent is permuted through the reslice axis.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span lang=EN-US>Does vtkImageReslice really take the extent of the input for the output?<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>Calling GetOutputExtent() returns just the min and max integer values. Thus<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>nothing seems to set.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>Any ideas?<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span lang=EN-US>Regards,<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span lang=EN-US>Tobias Schröder<o:p></o:p></span></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=EN-US>German Cancer Research Center (Deutsches Krebsforschungszentrum, DKFZ) <br>Member of the Helmholtz Association<br>Division Medical and Biological Informatics E130<br>Im Neuenheimer Feld 280<br>D-69120 Heidelberg<o:p></o:p></span></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=EN-US><br></span>E-Mail: <a href="mailto:t.schroeder@dkfz-heidelberg.de" target="_blank"><span style='color:windowtext'>t.schroeder@dkfz-heidelberg.de</span></a><br>Web: <span lang=EN-US><a href="http://www.dkfz.de" target="_blank"><span lang=DE style='color:windowtext;text-decoration:none'>www.dkfz.de</span></a></span><o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p></div></body></html>