<html><head><base href="x-msg://23/"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hey Daniela,<div><br></div><div>You should be able to get the original spacing of you image data in each direction from the data itself with one of the GetSpacing() methods:</div><div><br></div><div><a href="http://www.vtk.org/doc/nightly/html/classvtkImageData.html">http://www.vtk.org/doc/nightly/html/classvtkImageData.html</a></div><div><br></div><div>-Eric</div><div><br><div>
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0; "><div>------------------------------------------------------</div><div>Eric E Monson</div><div>Duke Visualization Technology Group</div><div><br class="webkit-block-placeholder"></div></span></div><br><div><div>On Jun 1, 2010, at 11:49 AM, Daniela Sacchetto wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div class="hmmessage" style="font-size: 10pt; font-family: Verdana; ">Thanks Jerome for your advise but I not able to use this class.<br>I think that I have to use<br><br>vtkImageChangeInformation::SetOutputSpacing(float, float, float)<br><br>but I don't understand how to set float parametres to have the effect desired: I want only change the slice distance, so I think that I have to set the value desired as third parameter between brackets, but I don't know how set the other....<br><br>Have anyone an example for me?<br><br>Regards<br>Daniela<br><br>&gt; Date: Tue, 1 Jun 2010 10:16:03 +0200<br>&gt; Subject: Re: [vtkusers] Filter to set the slice distance in a 3D rendered volume<br>&gt; From:<span class="Apple-converted-space">&nbsp;</span><a href="mailto:jerome.velut@gmail.com">jerome.velut@gmail.com</a><br>&gt; To:<span class="Apple-converted-space">&nbsp;</span><a href="mailto:danysunflower@hotmail.it">danysunflower@hotmail.it</a><br>&gt; CC:<span class="Apple-converted-space">&nbsp;</span><a href="mailto:daviddoria+vtk@gmail.com">daviddoria+vtk@gmail.com</a>;<span class="Apple-converted-space">&nbsp;</span><a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a><br>&gt;<span class="Apple-converted-space">&nbsp;</span><br>&gt; Hi Daniela,<br>&gt;<span class="Apple-converted-space">&nbsp;</span><br>&gt; I think you can use the vtkImageAppend filter together with the<br>&gt; vtkImageChangeInformation.<br>&gt;<span class="Apple-converted-space">&nbsp;</span><br>&gt; HTH<br>&gt; Jerome<br>&gt;<span class="Apple-converted-space">&nbsp;</span><br>&gt;<span class="Apple-converted-space">&nbsp;</span><br>&gt; 2010/6/1 Daniela Sacchetto &lt;<a href="mailto:danysunflower@hotmail.it">danysunflower@hotmail.it</a>&gt;:<br>&gt; &gt; Ok, sorry,&nbsp; I'll try to explain in an other way...<br>&gt; &gt; I have a 3D rendered volume that is ok but its Z dimension is too<br>&gt; &gt; little....I would like to set the Z dimenmsion (for example setting the<br>&gt; &gt; pixels or slices distance)...<br>&gt; &gt; I know that there is a Itk method (ImageType::SpacingType) that allows to<br>&gt; &gt; set the pixels distance....Is there a VTK method that allows to render my<br>&gt; &gt; image with a note distance in Z direction?<br>&gt; &gt;<br>&gt; &gt; I hope that now you could understand better my problem...<br>&gt; &gt; Regards<br>&gt; &gt; Daniela<br>&gt; &gt;<br>&gt; &gt;&gt; Date: Mon, 31 May 2010 17:22:38 -0400<br>&gt; &gt;&gt; Subject: Re: [vtkusers] Filter to set the slice distance in a 3D rendered<br>&gt; &gt;&gt; volume<br>&gt; &gt;&gt; From:<span class="Apple-converted-space">&nbsp;</span><a href="mailto:daviddoria+vtk@gmail.com">daviddoria+vtk@gmail.com</a><br>&gt; &gt;&gt; To:<span class="Apple-converted-space">&nbsp;</span><a href="mailto:danysunflower@hotmail.it">danysunflower@hotmail.it</a><br>&gt; &gt;&gt; CC:<span class="Apple-converted-space">&nbsp;</span><a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a><br>&gt; &gt;&gt;<br>&gt; &gt;&gt; On Mon, May 31, 2010 at 5:08 PM, Daniela Sacchetto<br>&gt; &gt;&gt; &lt;<a href="mailto:danysunflower@hotmail.it">danysunflower@hotmail.it</a>&gt; wrote:<br>&gt; &gt;&gt; &gt; Hi everyone<br>&gt; &gt;&gt; &gt; I'm new in vtk and I'm trying to do a work for my thesis.<br>&gt; &gt;&gt; &gt;<br>&gt; &gt;&gt; &gt; I have to improve a code that gives a 3D volume from 2D slices (.jpg or<br>&gt; &gt;&gt; &gt; other formats).<br>&gt; &gt;&gt; &gt; My code has to be improved because the 3D visualized with VTK (I'm using<br>&gt; &gt;&gt; &gt; vtkVolumeRayCastCompositeFunction) is too "slim": I would like to<br>&gt; &gt;&gt; &gt; modifie<br>&gt; &gt;&gt; &gt; the Z dimension.<br>&gt; &gt;&gt; &gt; Have anyone found this problem yet? Could anyone suggest me a VTK method<br>&gt; &gt;&gt; &gt; or<br>&gt; &gt;&gt; &gt; class that do something similar?<br>&gt; &gt;&gt; &gt;<br>&gt; &gt;&gt; &gt; Regards<br>&gt; &gt;&gt; &gt; Daniela<br>&gt; &gt;&gt;<br>&gt; &gt;&gt; I don't know what you mean by "slim". Can you give us a sample data<br>&gt; &gt;&gt; set or a screenshot of what you have and an explanation of what is<br>&gt; &gt;&gt; wrong?<br>&gt; &gt;&gt;<br>&gt; &gt;&gt; You may want to look into the Marching Cubes algorithm:<br>&gt; &gt;&gt;<br>&gt; &gt;&gt;<a href="http://www.vtk.org/Wiki/VTK/Examples/Medical/GenerateModelsFromLabels">http://www.vtk.org/Wiki/VTK/Examples/Medical/GenerateModelsFromLabels</a><br>&gt; &gt;&gt;<br>&gt; &gt;&gt; Good luck,<br>&gt; &gt;&gt;<br>&gt; &gt;&gt; David<br>&gt; &gt;<br>&gt; &gt; ________________________________<br>&gt; &gt; Tanti account di posta? Unisci tutto sotto Hotmail<br>&gt; &gt; _______________________________________________<br>&gt; &gt; Powered by<span class="Apple-converted-space">&nbsp;</span><a href="http://www.kitware.com">www.kitware.com</a><br>&gt; &gt;<br>&gt; &gt; Visit other Kitware open-source projects at<br>&gt; &gt;<span class="Apple-converted-space">&nbsp;</span><a href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a><br>&gt; &gt;<br>&gt; &gt; Please keep messages on-topic and check the VTK FAQ at:<br>&gt; &gt;<span class="Apple-converted-space">&nbsp;</span><a href="http://www.vtk.org/Wiki/VTK_FAQ">http://www.vtk.org/Wiki/VTK_FAQ</a><br>&gt; &gt;<br>&gt; &gt; Follow this link to subscribe/unsubscribe:<br>&gt; &gt;<span class="Apple-converted-space">&nbsp;</span><a href="http://www.vtk.org/mailman/listinfo/vtkusers">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>&gt; &gt;<br>&gt; &gt;<br><br><hr>Avatar per Messenger e sfondo per il PC<span class="Apple-converted-space">&nbsp;</span><a href="http://www.experience.windows.com/landing2.aspx?culture=it-it" target="_new">Creali gratis!</a>_______________________________________________<br>Powered by<span class="Apple-converted-space">&nbsp;</span><a href="http://www.kitware.com">www.kitware.com</a><br><br>Visit other Kitware open-source projects at<a href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/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">http://www.vtk.org/Wiki/VTK_FAQ</a><br><br>Follow this link to subscribe/unsubscribe:<br><a href="http://www.vtk.org/mailman/listinfo/vtkusers">http://www.vtk.org/mailman/listinfo/vtkusers</a><br></div></blockquote></div><br></div></body></html>