<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/249511</link>
    <title>MATLAB Central Newsreader - how to smooth a triangulated surface?</title>
    <description>Feed for thread: how to smooth a triangulated surface?</description>
    <language>en-us</language>
    <copyright>&amp;copy;1994-2012 by MathWorks, Inc.</copyright>
    <webmaster>webmaster@mathworks.com</webmaster>
    <generator>MATLAB Central Newsreader</generator>
    <docs>http://blogs.law.harvard.edu/tech/rss</docs>
    <ttl>60</ttl>
    <image>
      <title>MathWorks</title>
      <url>http://www.mathworks.com/images/membrane_icon.gif</url>
    </image>
    <item>
      <pubDate>Tue, 21 Apr 2009 01:20:03 -0400</pubDate>
      <title>how to smooth a triangulated surface?</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/249511#644182</link>
      <author>Pinpress </author>
      <description>Hi all,&lt;br&gt;
&lt;br&gt;
Suppose I have a triangulated surface (e.g., created by using isosurface), how can I efficiently smooth the surface? Thanks for any good input!</description>
    </item>
    <item>
      <pubDate>Tue, 21 Apr 2009 12:47:39 -0400</pubDate>
      <title>Re: how to smooth a triangulated surface?</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/249511#644317</link>
      <author>Michael Garrity</author>
      <description>&lt;br&gt;
&quot;Pinpress&quot; &amp;lt;nospam__@yahoo.com&amp;gt; wrote in message news:gsj703$rf1$1@fred.mathworks.com...&lt;br&gt;
&amp;gt; Hi all,&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; Suppose I have a triangulated surface (e.g., created by using isosurface), how can I&lt;br&gt;
&amp;gt; efficiently smooth the surface? Thanks for any good input!&lt;br&gt;
&amp;gt;&lt;br&gt;
Just a suggestion. If it really is an isosurface, you'll probably&lt;br&gt;
have better results smoothing the volume data before doing&lt;br&gt;
the isosurface. It tends to be simpler and more robust than&lt;br&gt;
messing with the surface data.&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;-Mike Garrity&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;-The MathWorks</description>
    </item>
    <item>
      <pubDate>Tue, 21 Apr 2009 13:46:01 -0400</pubDate>
      <title>Re: how to smooth a triangulated surface?</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/249511#644345</link>
      <author>Pinpress </author>
      <description>Thanks Mike.&lt;br&gt;
&lt;br&gt;
Yes, the isosurface was already based on a smoothed volume (using smooth3). However, I would still like to further smooth the resulting triangular surface. Just imaging that I created a phantom 3D image volume of a sphere using the following code:&lt;br&gt;
&lt;br&gt;
stack = zeros(100,100,100);&lt;br&gt;
[x,y,z] = meshgrid(1:size(stack,2), 1:size(stack,1), 1:size(stack,3));&lt;br&gt;
dis = dismap_pointsets_openmp([x(:) y(:) z(:)], size(stack)/2);  %% just the distance relative to the center&lt;br&gt;
ind = find(dis&amp;lt;40);&lt;br&gt;
stack(ind) = 1; &lt;br&gt;
&lt;br&gt;
When I create isosurface, I will get a somewhat jagged sphere. Because the &quot;real&quot;, or &quot;idealized&quot; surface is a perfect sphere, I was wondering if there is any way to &quot;smooth&quot; the resulting triangulated surface. &lt;br&gt;
&lt;br&gt;
Thanks for any further input!&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&quot;Michael Garrity&quot; &amp;lt;mgarrity@mathworks.com&amp;gt; wrote in message &amp;lt;gskf9d$eh7$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &quot;Pinpress&quot; &amp;lt;nospam__@yahoo.com&amp;gt; wrote in message news:gsj703$rf1$1@fred.mathworks.com...&lt;br&gt;
&amp;gt; &amp;gt; Hi all,&lt;br&gt;
&amp;gt; &amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; Suppose I have a triangulated surface (e.g., created by using isosurface), how can I&lt;br&gt;
&amp;gt; &amp;gt; efficiently smooth the surface? Thanks for any good input!&lt;br&gt;
&amp;gt; &amp;gt;&lt;br&gt;
&amp;gt; Just a suggestion. If it really is an isosurface, you'll probably&lt;br&gt;
&amp;gt; have better results smoothing the volume data before doing&lt;br&gt;
&amp;gt; the isosurface. It tends to be simpler and more robust than&lt;br&gt;
&amp;gt; messing with the surface data.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt;     -Mike Garrity&lt;br&gt;
&amp;gt;     -The MathWorks&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; </description>
    </item>
    <item>
      <pubDate>Tue, 21 Apr 2009 14:00:03 -0400</pubDate>
      <title>Re: how to smooth a triangulated surface?</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/249511#644349</link>
      <author>John D'Errico</author>
      <description>&quot;Pinpress&quot; &amp;lt;nothing@nothing.edu&amp;gt; wrote in message &amp;lt;gskimp$9ot$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; Thanks Mike.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Yes, the isosurface was already based on a smoothed volume (using smooth3). However, I would still like to further smooth the resulting triangular surface. Just imaging that I created a phantom 3D image volume of a sphere using the following code:&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; stack = zeros(100,100,100);&lt;br&gt;
&amp;gt; [x,y,z] = meshgrid(1:size(stack,2), 1:size(stack,1), 1:size(stack,3));&lt;br&gt;
&amp;gt; dis = dismap_pointsets_openmp([x(:) y(:) z(:)], size(stack)/2);  %% just the distance relative to the center&lt;br&gt;
&amp;gt; ind = find(dis&amp;lt;40);&lt;br&gt;
&amp;gt; stack(ind) = 1; &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; When I create isosurface, I will get a somewhat jagged sphere. Because the &quot;real&quot;, or &quot;idealized&quot; surface is a perfect sphere, I was wondering if there is any way to &quot;smooth&quot; the resulting triangulated surface. &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Thanks for any further input!&lt;br&gt;
&lt;br&gt;
I'll argue that the problem is NOT that you have a&lt;br&gt;
non-smooth iso-surface. The problem is you are&lt;br&gt;
creating the approximately spherical surface in a&lt;br&gt;
poor way.&lt;br&gt;
&lt;br&gt;
You are interpolating a boolean expression. There&lt;br&gt;
is no reason this should be smooth. Fix the problem,&lt;br&gt;
not the symptom.&lt;br&gt;
&lt;br&gt;
John</description>
    </item>
    <item>
      <pubDate>Tue, 21 Apr 2009 14:12:02 -0400</pubDate>
      <title>Re: how to smooth a triangulated surface?</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/249511#644351</link>
      <author>Pinpress </author>
      <description>Hi John,&lt;br&gt;
&lt;br&gt;
I agree that if my only problem is to use a triangulated surface to represent a sphere, then I will have much better methods than what I suggested earlier. However, this is just a simple phantom image of a real world problem -- when we have a bunch of medical images of human anatomies, for example, this would be what we would go through to have the structure's outer boundary surface. In real cases, it'll be much harder to parametrize the surface (unlike the sphere case). &lt;br&gt;
&lt;br&gt;
I understand that medical images are inherently pixel- or voxel-based, which is discretized and not continuous. Therefore, my original intention was to construct a simple surface and see if I can find a way to smooth the triangulated surface and then apply the method to my real problems. &lt;br&gt;
&lt;br&gt;
Thanks.&lt;br&gt;
&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; I'll argue that the problem is NOT that you have a&lt;br&gt;
&amp;gt; non-smooth iso-surface. The problem is you are&lt;br&gt;
&amp;gt; creating the approximately spherical surface in a&lt;br&gt;
&amp;gt; poor way.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; You are interpolating a boolean expression. There&lt;br&gt;
&amp;gt; is no reason this should be smooth. Fix the problem,&lt;br&gt;
&amp;gt; not the symptom.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; John</description>
    </item>
  </channel>
</rss>

