[vtkusers] Flattening a probed surface

Sebastien Jourdain sebastien.jourdain at kitware.com
Tue May 29 16:05:26 EDT 2012


The dimension is related to the number of points....

Meaning one dimension will be the number of points that compose your
spline and the other will be the number of iteration the swipe is
doing.

Seb

On Tue, May 29, 2012 at 12:46 PM, jruiz <jonathan.ruiz3 at gmail.com> wrote:
> Thanks, I'm going to follow your instructions step by step, first I'm trying
> to get de surface area to set the dimension of the image data.
>
> Is it even close ? I'm getting the length for the extruded spline as "width"
> and "height" is the length of the extrusion. I guess this values need to be
> multiply by the spacing what I get from the source image.
>
> vtkImageData image_data= new vtkImageData();
>
> double[] spacing = dicomImage.getNormalized().GetOutput().GetSpacing();
>
> double width = spline.GetLength() * spacing[0];
> double height = surfaceHeight * spacing[2];
>
> image_data.SetDimensions(width, height, 1);
>
> --
> View this message in context: http://vtk.1045678.n5.nabble.com/Flattening-a-probed-surface-tp5713443p5713466.html
> Sent from the VTK - Users mailing list archive at Nabble.com.
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers



More information about the vtkusers mailing list