<div dir="ltr">Hi Vincent,<div><br></div><div>The radialSize is the number of angular segments. If you think of your</div><div>cylinder as a pie, it is the number of pie slices. The radialSize controls</div><div>the angular resolution.</div><div><br></div><div>The OutputOrigin of reslice is in cylindrical coords, so changing it will</div><div>not change the center, because the center is in rectangular coordinates,</div><div>not cylindrical coordinates. Here's the best way to think about this:</div><div>everything in the pipeline before vtkImageReslice is in rectangular</div><div>coords, and everything after vtkImageReslice (including its own output)</div><div>is in cylindrical coords. </div><div><br></div><div>If you recall, the centering is done by the vtkImageChangeInformation</div><div>just after the reader. Currently it uses CenterImageOn() to automatically</div><div>center the image. But you can instead call SetOutputOrigin() on</div><div>vtkImageChangeInformation to set the center to anywhere that you want.</div><div>(Note that SetOutputOrigin() does not directly set the center, in fact what</div><div>it does is set the position of the corner of the image, which of course also</div><div>controls the position of the center).</div><div><br></div><div>A more sophisticated way of setting the center would be to create a 4x4</div><div>matrix for reslice->SetResliceAxes(). This matrix could be used to</div><div>control the center and the orientation of the cylinder. I'd only recommend</div><div>this if you are very familiar with 4x4 matrix transformations, however.</div><div><br></div><div> - David</div><div><br></div><div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Dec 18, 2014 at 2:36 AM, Vincent32160 <span dir="ltr"><<a href="mailto:vsh@magellium.fr" target="_blank">vsh@magellium.fr</a>></span> wrote:<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Thanks for this, very helpful.<br>
I have two questions: what is the difference between radialSize and r?<br>
Should I change the OutputOrigin of reslice to unroll a cylinder which has a<br>
center different from (0,0,0)?<br>
Thanks again</blockquote></div></div></div></div>