[vtkusers] Unwrap a cylinder of data using vtkCylindricalTransform and vtkImageReslice

David Gobbi david.gobbi at gmail.com
Thu Dec 18 11:34:20 EST 2014


On Thu, Dec 18, 2014 at 9:25 AM, Vincent32160 <vsh at magellium.fr> wrote:
>
> That makes definitely sense.
> Apart this rotation and the variables radialSize and r, I got the
> impression
> that the rest of the code doesn't depend on the data. Do you agree with
> that?
>

In addition to those, the code also assumes that the center of the cylinder
is at the center of the image, which might not be true for your data.

That's why I said that you might want to use the full 4x4 ResliceAxes matrix
instead of just using SetResliceAxesDirectionCosines.   If you use a 4x4
matrix, you can use the 4th column of the matrix to adjust the center.

 - David
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20141218/ef642198/attachment.html>


More information about the vtkusers mailing list