<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
--></style>
</head>
<body class='hmmessage'>
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: jerome.velut@gmail.com<br>> To: danysunflower@hotmail.it<br>> CC: daviddoria+vtk@gmail.com; vtkusers@vtk.org<br>> <br>> Hi Daniela,<br>> <br>> I think you can use the vtkImageAppend filter together with the<br>> vtkImageChangeInformation.<br>> <br>> HTH<br>> Jerome<br>> <br>> <br>> 2010/6/1 Daniela Sacchetto <danysunflower@hotmail.it>:<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: daviddoria+vtk@gmail.com<br>> >> To: danysunflower@hotmail.it<br>> >> CC: vtkusers@vtk.org<br>> >><br>> >> On Mon, May 31, 2010 at 5:08 PM, Daniela Sacchetto<br>> >> <danysunflower@hotmail.it> 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>> >> http://www.vtk.org/Wiki/VTK/Examples/Medical/GenerateModelsFromLabels<br>> >><br>> >> Good luck,<br>> >><br>> >> David<br>> ><br>> > ________________________________<br>> > Tanti account di posta? Unisci tutto sotto Hotmail<br>> > _______________________________________________<br>> > Powered by www.kitware.com<br>> ><br>> > Visit other Kitware open-source projects at<br>> > http://www.kitware.com/opensource/opensource.html<br>> ><br>> > Please keep messages on-topic and check the VTK FAQ at:<br>> > http://www.vtk.org/Wiki/VTK_FAQ<br>> ><br>> > Follow this link to subscribe/unsubscribe:<br>> > http://www.vtk.org/mailman/listinfo/vtkusers<br>> ><br>> ><br>                                            <br /><hr />Avatar per Messenger e sfondo per il PC <a href='http://www.experience.windows.com/landing2.aspx?culture=it-it' target='_new'>Creali gratis!</a></body>
</html>