<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/169056</link>
    <title>MATLAB Central Newsreader - Image Region -&gt; perimeter sample</title>
    <description>Feed for thread: Image Region -&gt; perimeter sample</description>
    <language>en-us</language>
    <copyright>&amp;copy;1994-2008 by The 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>The MathWorks</title>
      <url>http://www.mathworks.com/images/membrane_icon.gif</url>
    </image>
    <item>
      <pubDate>Sat, 10 May 2008 20:42:02 -0400</pubDate>
      <title>Image Region -&gt; perimeter sample</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/169056#431382</link>
      <author>Ahmad </author>
      <description>Hi there,&lt;br&gt;
&lt;br&gt;
Given a binary image of a single connected object, what is&lt;br&gt;
the quickest way to find a sample of pixels on its&lt;br&gt;
edge/perimeter. By a sample of pixels I do not mean all&lt;br&gt;
pixels on the perimeter, but just a sample of fixed number&lt;br&gt;
of pixels, where each pixel is separated from the other by&lt;br&gt;
some margin. (I also have the Image processing toolbox)&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
Regards,&lt;br&gt;
</description>
    </item>
    <item>
      <pubDate>Sat, 10 May 2008 22:41:35 -0400</pubDate>
      <title>Re: Image Region -&gt; perimeter sample</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/169056#431392</link>
      <author>roberson@ibd.nrc-cnrc.gc.ca (Walter Roberson)</author>
      <description>In article &amp;lt;g051aq$m6a$1@fred.mathworks.com&amp;gt;,&lt;br&gt;
Ahmad  &amp;lt;ahmad.humyn@gmail.com&amp;gt; wrote:&lt;br&gt;
&lt;br&gt;
&amp;gt;Given a binary image of a single connected object, what is&lt;br&gt;
&amp;gt;the quickest way to find a sample of pixels on its&lt;br&gt;
&amp;gt;edge/perimeter. By a sample of pixels I do not mean all&lt;br&gt;
&amp;gt;pixels on the perimeter, but just a sample of fixed number&lt;br&gt;
&amp;gt;of pixels, where each pixel is separated from the other by&lt;br&gt;
&amp;gt;some margin. (I also have the Image processing toolbox)&lt;br&gt;
&lt;br&gt;
Could you expand on the bit about "where each pixel is separated&lt;br&gt;
from the other by some margin" ? Margin in what sense?&lt;br&gt;
If you are talking about geometric distances, then do you want&lt;br&gt;
the -furthest- point that is at most that distance away, or&lt;br&gt;
do you waht the -closest- point that is at least that distance away?&lt;br&gt;
If you are talking about listing the perimeter points in a list&lt;br&gt;
and taking every N'th entry from the list, then you need to&lt;br&gt;
determine your traversal algorithm; for example if you are&lt;br&gt;
coming down from the left-top of an "X" and you reach the centre,&lt;br&gt;
then which of the three other branches is the next one to follow?&lt;br&gt;
&lt;br&gt;
-- &lt;br&gt;
&amp;nbsp;&amp;nbsp;"Do diddle di do,&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;Poor Jim Jay&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;Got stuck fast&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;In Yesterday."                             -- Walter De La Mare&lt;br&gt;
</description>
    </item>
    <item>
      <pubDate>Sun, 11 May 2008 16:45:35 -0400</pubDate>
      <title>Re: Image Region -&gt; perimeter sample</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/169056#431452</link>
      <author>ImageAnalyst</author>
      <description>On May 10, 4:42=A0pm, "Ahmad " &amp;lt;ahmad.hu...@gmail.com&amp;gt; wrote:&lt;br&gt;
&amp;gt; Hi there,&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; Given a binary image of a single connected object, what is&lt;br&gt;
&amp;gt; the quickest way to find a sample of pixels on its&lt;br&gt;
&amp;gt; edge/perimeter. By a sample of pixels I do not mean all&lt;br&gt;
&amp;gt; pixels on the perimeter, but just a sample of fixed number&lt;br&gt;
&amp;gt; of pixels, where each pixel is separated from the other by&lt;br&gt;
&amp;gt; some margin. (I also have the Image processing toolbox)&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; Regards,&lt;br&gt;
----------------------------------------------------------------------------=&lt;br&gt;
--------&lt;br&gt;
Ahmad:&lt;br&gt;
What is it about bwboundary that you don't know how to deal with?&lt;br&gt;
This gives you the boundaries of objects.  You could then take a&lt;br&gt;
"sample of fixed number of pixels" from that just by taking the first&lt;br&gt;
N pixels, or using rand to generate indexes to extract or lots of&lt;br&gt;
other methods.  What are you really after when you say your want just&lt;br&gt;
a sample of the boundaries rather than all of them.  What good would&lt;br&gt;
that be?&lt;br&gt;
Regards,&lt;br&gt;
ImageAnalyst&lt;br&gt;
</description>
    </item>
    <item>
      <pubDate>Mon, 12 May 2008 13:42:03 -0400</pubDate>
      <title>Re: Image Region -&gt; perimeter sample</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/169056#431556</link>
      <author>Ahmad </author>
      <description>Thanks :) Nothing is wrong with bwboundary or&lt;br&gt;
bwtraceboundary...I just didn't know about them. Thanks for&lt;br&gt;
pointing me in the right direction. These functions were&lt;br&gt;
exactly what I was looking for :)&lt;br&gt;
&lt;br&gt;
Thank you for all the help.&lt;br&gt;
&lt;br&gt;
Regards,&lt;br&gt;
&lt;br&gt;
ImageAnalyst &amp;lt;imageanalyst@mailinator.com&amp;gt; wrote in message&lt;br&gt;
&amp;lt;f41d7a04-fb33-46b9-978d-746a147f91f6@b64g2000hsa.googlegroups.com&amp;gt;...&lt;br&gt;
&amp;gt; On May 10, 4:42=A0pm, "Ahmad " &amp;lt;ahmad.hu...@gmail.com&amp;gt; wrote:&lt;br&gt;
&amp;gt; &amp;gt; Hi there,&lt;br&gt;
&amp;gt; &amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; Given a binary image of a single connected object, what is&lt;br&gt;
&amp;gt; &amp;gt; the quickest way to find a sample of pixels on its&lt;br&gt;
&amp;gt; &amp;gt; edge/perimeter. By a sample of pixels I do not mean all&lt;br&gt;
&amp;gt; &amp;gt; pixels on the perimeter, but just a sample of fixed number&lt;br&gt;
&amp;gt; &amp;gt; of pixels, where each pixel is separated from the other by&lt;br&gt;
&amp;gt; &amp;gt; some margin. (I also have the Image processing toolbox)&lt;br&gt;
&amp;gt; &amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; Regards,&lt;br&gt;
&amp;gt;&lt;br&gt;
----------------------------------------------------------------------------=&lt;br&gt;
&amp;gt; --------&lt;br&gt;
&amp;gt; Ahmad:&lt;br&gt;
&amp;gt; What is it about bwboundary that you don't know how to&lt;br&gt;
deal with?&lt;br&gt;
&amp;gt; This gives you the boundaries of objects.  You could then&lt;br&gt;
take a&lt;br&gt;
&amp;gt; "sample of fixed number of pixels" from that just by&lt;br&gt;
taking the first&lt;br&gt;
&amp;gt; N pixels, or using rand to generate indexes to extract or&lt;br&gt;
lots of&lt;br&gt;
&amp;gt; other methods.  What are you really after when you say&lt;br&gt;
your want just&lt;br&gt;
&amp;gt; a sample of the boundaries rather than all of them.  What&lt;br&gt;
good would&lt;br&gt;
&amp;gt; that be?&lt;br&gt;
&amp;gt; Regards,&lt;br&gt;
&amp;gt; ImageAnalyst&lt;br&gt;
&lt;br&gt;
</description>
    </item>
  </channel>
</rss>
