<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>> Date: Tue, 1 Jun 2010 10:16:03 +0200<br>> Subject: Re: [vtkusers] Filter to set the slice distance in a 3D rendered volume<br>> From:<span class="Apple-converted-space"> </span><a href="mailto:jerome.velut@gmail.com">jerome.velut@gmail.com</a><br>> To:<span class="Apple-converted-space"> </span><a href="mailto:danysunflower@hotmail.it">danysunflower@hotmail.it</a><br>> CC:<span class="Apple-converted-space"> </span><a href="mailto:daviddoria+vtk@gmail.com">daviddoria+vtk@gmail.com</a>;<span class="Apple-converted-space"> </span><a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a><br>><span class="Apple-converted-space"> </span><br>> Hi Daniela,<br>><span class="Apple-converted-space"> </span><br>> I think you can use the vtkImageAppend filter together with the<br>> vtkImageChangeInformation.<br>><span class="Apple-converted-space"> </span><br>> HTH<br>> Jerome<br>><span class="Apple-converted-space"> </span><br>><span class="Apple-converted-space"> </span><br>> 2010/6/1 Daniela Sacchetto <<a href="mailto:danysunflower@hotmail.it">danysunflower@hotmail.it</a>>:<br>> > Ok, sorry, I'll try to explain in an other way...<br>> > I have a 3D rendered volume that is ok but its Z dimension is too<br>> > little....I would like to set the Z dimenmsion (for example setting the<br>> > pixels or slices distance)...<br>> > I know that there is a Itk method (ImageType::SpacingType) that allows to<br>> > set the pixels distance....Is there a VTK method that allows to render my<br>> > image with a note distance in Z direction?<br>> ><br>> > I hope that now you could understand better my problem...<br>> > Regards<br>> > Daniela<br>> ><br>> >> Date: Mon, 31 May 2010 17:22:38 -0400<br>> >> Subject: Re: [vtkusers] Filter to set the slice distance in a 3D rendered<br>> >> volume<br>> >> From:<span class="Apple-converted-space"> </span><a href="mailto:daviddoria+vtk@gmail.com">daviddoria+vtk@gmail.com</a><br>> >> To:<span class="Apple-converted-space"> </span><a href="mailto:danysunflower@hotmail.it">danysunflower@hotmail.it</a><br>> >> CC:<span class="Apple-converted-space"> </span><a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a><br>> >><br>> >> On Mon, May 31, 2010 at 5:08 PM, Daniela Sacchetto<br>> >> <<a href="mailto:danysunflower@hotmail.it">danysunflower@hotmail.it</a>> wrote:<br>> >> > Hi everyone<br>> >> > I'm new in vtk and I'm trying to do a work for my thesis.<br>> >> ><br>> >> > I have to improve a code that gives a 3D volume from 2D slices (.jpg or<br>> >> > other formats).<br>> >> > My code has to be improved because the 3D visualized with VTK (I'm using<br>> >> > vtkVolumeRayCastCompositeFunction) is too "slim": I would like to<br>> >> > modifie<br>> >> > the Z dimension.<br>> >> > Have anyone found this problem yet? Could anyone suggest me a VTK method<br>> >> > or<br>> >> > class that do something similar?<br>> >> ><br>> >> > Regards<br>> >> > Daniela<br>> >><br>> >> I don't know what you mean by "slim". Can you give us a sample data<br>> >> set or a screenshot of what you have and an explanation of what is<br>> >> wrong?<br>> >><br>> >> You may want to look into the Marching Cubes algorithm:<br>> >><br>> >><a href="http://www.vtk.org/Wiki/VTK/Examples/Medical/GenerateModelsFromLabels">http://www.vtk.org/Wiki/VTK/Examples/Medical/GenerateModelsFromLabels</a><br>> >><br>> >> Good luck,<br>> >><br>> >> David<br>> ><br>> > ________________________________<br>> > Tanti account di posta? Unisci tutto sotto Hotmail<br>> > _______________________________________________<br>> > Powered by<span class="Apple-converted-space"> </span><a href="http://www.kitware.com">www.kitware.com</a><br>> ><br>> > Visit other Kitware open-source projects at<br>> ><span class="Apple-converted-space"> </span><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:<br>> ><span class="Apple-converted-space"> </span><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>> ><span class="Apple-converted-space"> </span><a href="http://www.vtk.org/mailman/listinfo/vtkusers">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>> ><br>> ><br><br><hr>Avatar per Messenger e sfondo per il PC<span class="Apple-converted-space"> </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"> </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>