[vtkusers] Surface rendering of multiple objects

yanqiao zhu yanqiao.zhu at gmail.com
Fri Jul 29 15:21:11 EDT 2011


Thanks Christian,

I will check the differences carefully to find out what I might have
mistaken.

By the way, do you have any idea of ways to rendering single voxels. My case
is tha one of the label only corresponds to a few separate voxels, which
cannot even form a surface, while some other labels corresponds to a lot of
connected voxels. It seems for the latter ones, surface should be used for
rendering purpose. But for the former one, surface may not be a good choice.
I am trying to find ways to combine them together. Any suggestions?

Best,
Yanqiao



On Thu, Jul 28, 2011 at 1:37 PM, Christian Lackas [via VTK] <
ml-node+4643676-955545517-235070 at n5.nabble.com> wrote:

> * yanqiao zhu <[hidden email]<http://user/SendEmail.jtp?type=node&node=4643676&i=0>>
> [110727 01:28]:
>
> Hi Yanqiao,
>
> I believe the only part missing is where I actually build the LUT with
> useful colors:
>
>         lut->SetTableValue(0,1.0,0.0,0.0);
>         [...]
>         lut->SetTableRange(0.0, 7.0);
>         lut->Build();
>
> You can find the complete example here (the one I used to produce the
> image in the posting):
>
>     http://www.invicro.com/vtk/ROIRendering2.zip
>
> Hope this helps you.
>  Christian
>
> --
> Dr. Christian Lackas, Managing Partner
> inviCRO, LLC -- In Imaging Yours
> P: +1 617 933 8733, F: +49 2203 9034722, E: [hidden email]<http://user/SendEmail.jtp?type=node&node=4643676&i=1>
> http://www.invicro.com/  http://www.spect-ct.com/
>
> > Hi Christian,
> >
> > I downloaded the code and data you provided in the previous post and
> changed
> > the code as you told in this post by adding lut->SetTableRange(0.0, 7.0);
>
> > and changed mapper->SetScalarModeToUsePointData(); to
> > mapper->SetScalarModeToUseCellData(); But what I get after running the
> > program is shown in the image
> > http://vtk.1045678.n5.nabble.com/file/n4636845/result.png , which is far
>
> > from your result. So I am wondering maybe something is wrong. Could
> please
> > check it. The source code is also attached.
> >
> > Thanks very much!
> > Best,
> > Yanqiao Zhu
> >
> > http://vtk.1045678.n5.nabble.com/file/n4636845/ROIRendering.cxx
> > ROIRendering.cxx
> >
> > --
> > View this message in context:
> http://vtk.1045678.n5.nabble.com/Surface-rendering-of-multiple-objects-tp3391687p4636845.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
> _______________________________________________
> 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
>
>
> ------------------------------
>  If you reply to this email, your message will be added to the discussion
> below:
>
> http://vtk.1045678.n5.nabble.com/Surface-rendering-of-multiple-objects-tp3391687p4643676.html
>  To unsubscribe from Surface rendering of multiple objects, click here<http://vtk.1045678.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=3391687&code=eWFucWlhby56aHVAZ21haWwuY29tfDMzOTE2ODd8MTM0ODc5Mjk2Ng==>.
>
>


--
View this message in context: http://vtk.1045678.n5.nabble.com/Surface-rendering-of-multiple-objects-tp3391687p4648083.html
Sent from the VTK - Users mailing list archive at Nabble.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20110729/15c4651a/attachment.htm>


More information about the vtkusers mailing list