Hi Cory, Thank you so much for your response. Really appreciate it.
Well, i used the Programmable Filter and gave the spacing in mm. (i am suppose to get a 3D model), unfortunately i am getting a straight line (pls see the attachment). Earlier i was using the Calculator filter and i only could see slices. My intention is to obtain a model with one smooth surface (if there is an approach to smooth the transitions of the slices that would do my job :)....) Kindly give me a hint. -- Warm regards, Chathuri Gunasekera. On Wed, Jun 15, 2016 at 3:25 AM, Cory Quammen <[email protected]> wrote: > I suspect you are running out of memory with the Transform Filter. > > Another approach would be to use a Programmable Filter and just change > the spacing information of the image data. Try this Python in the > Script property of the Programmable Filter: > > input = self.GetInput() > output = self.GetOutput() > output.ShallowCopy(input) > output.SetSpacing(xSpacing, ySpacing, zSpacing) > > That should do the trick. > > HTH, > Cory > > > On Tue, Jun 14, 2016 at 7:34 PM, Chathu Gunasekera <[email protected]> > wrote: > > Thank you so much for your response Cory. > > Well, you're correct, i am referring to the spacing. > > When i use the Transform Filter (units in mm) and apply it to the model, > the > > Paraview crashes (Paraview stops working and close the program by > itself). > > Do you know what could be the error? > > What am i doing wrong here? I am clueless.. > > Your suggestions are welcome. > > Thank you . > > > > > > > > -- > > Warm regards, > > Chathuri Gunasekera. > > > > > > On Tue, Jun 14, 2016 at 9:12 PM, Cory Quammen <[email protected]> > > wrote: > >> > >> Chathuri, > >> > >> I'm not really sure what you mean by adding slice thickness. Slices > >> are always infinitesimally thin planes in ParaView. > >> > >> Do you mean setting the spacing between image slices? If so, you > >> should be able to do that with the Transform filter, which lets you > >> specify a different scale in X, Y, and Z. I am assuming your slices > >> are read in with spacing of 1 x 1 x 1 (no units specified). You should > >> be able to scale to whatever units you wish to use with your knowledge > >> of both the X and Y spacing in each slice and the Z spacing between > >> slices. > >> > >> HTH, > >> Cory > >> > >> On Sat, May 14, 2016 at 11:54 AM, Chathuri Gunasekera > >> <[email protected]> wrote: > >> > Hi, > >> > > >> > I have lot of image slices which need to employ in generating a 3D > >> > model. > >> > > >> > Can someone kindly tell me, how to add the slice thickness in > ParaView? > >> > > >> > Thanks in advance. > >> > -- > >> > Warm regards, > >> > Chathuri Gunasekera. > >> > > >> > _______________________________________________ > >> > 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 ParaView Wiki at: > >> > http://paraview.org/Wiki/ParaView > >> > > >> > Search the list archives at: http://markmail.org/search/?q=ParaView > >> > > >> > Follow this link to subscribe/unsubscribe: > >> > http://public.kitware.com/mailman/listinfo/paraview > >> > > >> > >> > >> > >> -- > >> Cory Quammen > >> R&D Engineer > >> Kitware, Inc. > > > > > > > > > > > > > > -- > Cory Quammen > R&D Engineer > Kitware, Inc. >
_______________________________________________ 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 ParaView Wiki at: http://paraview.org/Wiki/ParaView Search the list archives at: http://markmail.org/search/?q=ParaView Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/paraview
