Thread Subject: Rendering of a point cloud

Subject: Rendering of a point cloud

From: Cem

Date: 25 Mar, 2009 13:29:01

Message: 1 of 6

Hello,

      I have a point cloud in which I do segmentation to find a region and calculate its volume. I want to color this region of interest and render the surface with say red color to differentiate the region of interest. I have the x, y and z arrays for the boundary. So the question is how to render anything within these coordinates as red, everything else grey color as surface, not as colored dots. Thank you.

Subject: Rendering of a point cloud

From: Gavrilo Bozovic

Date: 25 Mar, 2009 13:33:08

Message: 2 of 6

"Cem " <hiittite@gmail.com> wrote in message <gqdbit$ge8$1@fred.mathworks.com>...
> Hello,
>
> I have a point cloud in which I do segmentation to find a region and calculate its volume. I want to color this region of interest and render the surface with say red color to differentiate the region of interest. I have the x, y and z arrays for the boundary. So the question is how to render anything within these coordinates as red, everything else grey color as surface, not as colored dots. Thank you.

If you don't have too many points (depending on your machine, of course ;) ) you can generate tetrahedra using "delaunay3" on the points of your region, and then represent them using "trisurf".

Subject: Rendering of a point cloud

From: John D'Errico

Date: 25 Mar, 2009 14:03:01

Message: 3 of 6

"Cem " <hiittite@gmail.com> wrote in message <gqdbit$ge8$1@fred.mathworks.com>...
> Hello,
>
> I have a point cloud in which I do segmentation to find a region and calculate its volume. I want to color this region of interest and render the surface with say red color to differentiate the region of interest. I have the x, y and z arrays for the boundary. So the question is how to render anything within these coordinates as red, everything else grey color as surface, not as colored dots. Thank you.

If the domain is convex, then it is trivially simple.

Build a triangulated surface using convhulln,
then use trisurf to display the facets of the hull
in red.

If it is not convex, then things get more difficult.
One solution is then to use an alpha shape to define
the domain as a tessellation in 3-d. Then form the
boundary surface of the tessellation, i.e., a
non-convex hull. This surface is easy to find, since
it is composed of those traingulated facets that
appear only once in the list of all faces. Now apply
trisurf.

John

Subject: Rendering of a point cloud

From: Luigi Giaccari

Date: 25 Mar, 2009 15:10:04

Message: 4 of 6

"Cem " <hiittite@gmail.com> wrote in message <gqdbit$ge8$1@fred.mathworks.com>...
> Hello,
>
> I have a point cloud in which I do segmentation to find a region and calculate its volume. I want to color this region of interest and render the surface with say red color to differentiate the region of interest. I have the x, y and z arrays for the boundary. So the question is how to render anything within these coordinates as red, everything else grey color as surface, not as colored dots. Thank you.




http://www.mathworks.com/matlabcentral/fileexchange/22595


http://www.mathworks.com/matlabcentral/fileexchange/22185


http://giaccariluigi.altervista.org/blog/

Subject: Rendering of a point cloud

From: John D'Errico

Date: 25 Mar, 2009 15:26:02

Message: 5 of 6

"Luigi Giaccari" <giaccariluigi@msn.com> wrote in message <gqdhgc$k0h$1@fred.mathworks.com>...
> "Cem " <hiittite@gmail.com> wrote in message <gqdbit$ge8$1@fred.mathworks.com>...
> > Hello,
> >
> > I have a point cloud in which I do segmentation to find a region and calculate its volume. I want to color this region of interest and render the surface with say red color to differentiate the region of interest. I have the x, y and z arrays for the boundary. So the question is how to render anything within these coordinates as red, everything else grey color as surface, not as colored dots. Thank you.
>
>
>
>
> http://www.mathworks.com/matlabcentral/fileexchange/22595
>
>
> http://www.mathworks.com/matlabcentral/fileexchange/22185
>
>
> http://giaccariluigi.altervista.org/blog/

Luigi,

I would have pointed this person to your tools, but
if the person has a point cloud that contains internal
points, then a CRUST based tool will not find the
surface, as I understand CRUST. Clearly I need to
look more closely at these tools you have provided.
I apologize that I have not had the time to do so.

However, in reading the original post more carefully,
it looks like the points supplied are indeed boundary
points. I thought it was a full point cloud, not just
the boundary points. As such, Luigi's tools will do
very nicely here.

John

Subject: Rendering of a point cloud

From: Cem

Date: 25 Mar, 2009 23:25:08

Message: 6 of 6

Hello Joan,
     I am now working with Luigi. Thank you for introducing my problem to him.

Cem

"John D'Errico" <woodchips@rochester.rr.com> wrote in message <gqdiea$oi1$1@fred.mathworks.com>...
> "Luigi Giaccari" <giaccariluigi@msn.com> wrote in message <gqdhgc$k0h$1@fred.mathworks.com>...
> > "Cem " <hiittite@gmail.com> wrote in message <gqdbit$ge8$1@fred.mathworks.com>...
> > > Hello,
> > >
> > > I have a point cloud in which I do segmentation to find a region and calculate its volume. I want to color this region of interest and render the surface with say red color to differentiate the region of interest. I have the x, y and z arrays for the boundary. So the question is how to render anything within these coordinates as red, everything else grey color as surface, not as colored dots. Thank you.
> >
> >
> >
> >
> > http://www.mathworks.com/matlabcentral/fileexchange/22595
> >
> >
> > http://www.mathworks.com/matlabcentral/fileexchange/22185
> >
> >
> > http://giaccariluigi.altervista.org/blog/
>
> Luigi,
>
> I would have pointed this person to your tools, but
> if the person has a point cloud that contains internal
> points, then a CRUST based tool will not find the
> surface, as I understand CRUST. Clearly I need to
> look more closely at these tools you have provided.
> I apologize that I have not had the time to do so.
>
> However, in reading the original post more carefully,
> it looks like the points supplied are indeed boundary
> points. I thought it was a full point cloud, not just
> the boundary points. As such, Luigi's tools will do
> very nicely here.
>
> John

Tags for this Thread

Everyone's Tags:

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Tag Activity for This Thread
Tag Applied By Date/Time
point cloud Cem 25 Mar, 2009 09:30:22
rendering Cem 25 Mar, 2009 09:30:22
rssFeed for this Thread

Contact us at files@mathworks.com