<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/258178</link>
    <title>MATLAB Central Newsreader - image processing</title>
    <description>Feed for thread: image processing</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>Mon, 10 Aug 2009 23:29:03 -0400</pubDate>
      <title>image processing</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/258178#672068</link>
      <author>Mathew Thomas</author>
      <description>Hello everyone,&lt;br&gt;
&lt;br&gt;
I have a color image and want to find the edges. The image has two colors - black n brown... I only want to find the edges of the brown portion. How can I do this ?? I tried thresholding, but I guess I could not apply it right...Any help is welcome..&lt;br&gt;
&lt;br&gt;
Thank you,&lt;br&gt;
&lt;br&gt;
Matt</description>
    </item>
    <item>
      <pubDate>Tue, 11 Aug 2009 01:15:55 -0400</pubDate>
      <title>Re: image processing</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/258178#672081</link>
      <author>ImageAnalyst</author>
      <description>On Aug 10, 7:29&#160;pm, &quot;Mathew Thomas&quot; &amp;lt;mathe...@gmail.com&amp;gt; wrote:&lt;br&gt;
&amp;gt; Hello everyone,&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; I have a color image and want to find the edges. The image has two colors - black n brown... I only want to find the edges of the brown portion. How can I do this ?? I tried thresholding, but I guess I could not apply it right...Any help is welcome..&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; Thank you,&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; Matt&lt;br&gt;
&lt;br&gt;
----------------------------------------------------------------------------------------------------------------&lt;br&gt;
Matt:&lt;br&gt;
Try this demo:&lt;br&gt;
Good luck,&lt;br&gt;
ImageAnalyst&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
% Demo macro to outline brown regions.&lt;br&gt;
% by ImageAnalyst&lt;br&gt;
clc;&lt;br&gt;
close all;&lt;br&gt;
workspace;&lt;br&gt;
rgbImage = uint8(zeros([200 200 3]));&lt;br&gt;
rgbImage(60:120, 60:120, 1) = 150;&lt;br&gt;
rgbImage(60:120, 60:120, 2) = 80;&lt;br&gt;
subplot(3,1,1);&lt;br&gt;
imshow(rgbImage);&lt;br&gt;
title('Original image.');&lt;br&gt;
% Find brown.  Since the only other color is black [0, 0, 0],&lt;br&gt;
% brown will be anyplace that is non-zero.&lt;br&gt;
% But for generality, let's look for red between 120 and 180&lt;br&gt;
% and for green between 50 and 100.&lt;br&gt;
inRedRange = rgbImage(:,:, 1) &amp;gt; 120 &amp; rgbImage(:,:, 1) &amp;lt; 180;&lt;br&gt;
inGreenRange = rgbImage(:,:, 2) &amp;gt; 50 &amp; rgbImage(:,:, 2) &amp;lt; 100;&lt;br&gt;
% AND them together to find where they're both true.&lt;br&gt;
binaryImage = inRedRange &amp; inGreenRange;&lt;br&gt;
subplot(3,1, 2);&lt;br&gt;
imshow(binaryImage, []);&lt;br&gt;
title('Thresholded image.');&lt;br&gt;
% Now find the boundaries&lt;br&gt;
[boundaries, labeledImage] = bwboundaries(binaryImage,'noholes');&lt;br&gt;
% Display them over the original image.&lt;br&gt;
subplot(3,1, 3);&lt;br&gt;
imshow(rgbImage);&lt;br&gt;
hold on; % Don't let plot() blow away our image.&lt;br&gt;
title('Original image with boundaries.');&lt;br&gt;
for k = 1:length(boundaries)&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;thisBoundary = boundaries{k};&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;plot(thisBoundary(:,2), thisBoundary(:,1), 'w', 'LineWidth', 2)&lt;br&gt;
end&lt;br&gt;
% Maximize window.&lt;br&gt;
set(gcf, 'Position', get(0, 'ScreenSize')); % Maximize figure.</description>
    </item>
    <item>
      <pubDate>Thu, 13 Aug 2009 17:34:03 -0400</pubDate>
      <title>Re: image processing</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/258178#672971</link>
      <author>Mathew Thomas</author>
      <description>Thank you so much. You really helped me understand.&lt;br&gt;
&lt;br&gt;
Matt</description>
    </item>
    <item>
      <pubDate>Thu, 13 Aug 2009 22:23:04 -0400</pubDate>
      <title>Re: image processing</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/258178#673064</link>
      <author>Chaos </author>
      <description>ImageAnalyst &amp;lt;imageanalyst@mailinator.com&amp;gt; wrote in message &amp;lt;56457914-5735-46aa-8352-5a8dc00f781e@k26g2000vbp.googlegroups.com&amp;gt;...&lt;br&gt;
&amp;gt; On Aug 10, 7:29?pm, &quot;Mathew Thomas&quot; &amp;lt;mathe...@gmail.com&amp;gt; wrote:&lt;br&gt;
&amp;gt; &amp;gt; Hello everyone,&lt;br&gt;
&amp;gt; &amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; I have a color image and want to find the edges. The image has two colors - black n brown... I only want to find the edges of the brown portion. How can I do this ?? I tried thresholding, but I guess I could not apply it right...Any help is welcome..&lt;br&gt;
&amp;gt; &amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; Thank you,&lt;br&gt;
&amp;gt; &amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; Matt&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; ----------------------------------------------------------------------------------------------------------------&lt;br&gt;
&amp;gt; Matt:&lt;br&gt;
&amp;gt; Try this demo:&lt;br&gt;
&amp;gt; Good luck,&lt;br&gt;
&amp;gt; ImageAnalyst&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; % Demo macro to outline brown regions.&lt;br&gt;
&amp;gt; % by ImageAnalyst&lt;br&gt;
&amp;gt; clc;&lt;br&gt;
&amp;gt; close all;&lt;br&gt;
&amp;gt; workspace;&lt;br&gt;
&amp;gt; rgbImage = uint8(zeros([200 200 3]));&lt;br&gt;
&amp;gt; rgbImage(60:120, 60:120, 1) = 150;&lt;br&gt;
&amp;gt; rgbImage(60:120, 60:120, 2) = 80;&lt;br&gt;
&amp;gt; subplot(3,1,1);&lt;br&gt;
&amp;gt; imshow(rgbImage);&lt;br&gt;
&amp;gt; title('Original image.');&lt;br&gt;
&amp;gt; % Find brown.  Since the only other color is black [0, 0, 0],&lt;br&gt;
&amp;gt; % brown will be anyplace that is non-zero.&lt;br&gt;
&amp;gt; % But for generality, let's look for red between 120 and 180&lt;br&gt;
&amp;gt; % and for green between 50 and 100.&lt;br&gt;
&amp;gt; inRedRange = rgbImage(:,:, 1) &amp;gt; 120 &amp; rgbImage(:,:, 1) &amp;lt; 180;&lt;br&gt;
&amp;gt; inGreenRange = rgbImage(:,:, 2) &amp;gt; 50 &amp; rgbImage(:,:, 2) &amp;lt; 100;&lt;br&gt;
&amp;gt; % AND them together to find where they're both true.&lt;br&gt;
&amp;gt; binaryImage = inRedRange &amp; inGreenRange;&lt;br&gt;
&amp;gt; subplot(3,1, 2);&lt;br&gt;
&amp;gt; imshow(binaryImage, []);&lt;br&gt;
&amp;gt; title('Thresholded image.');&lt;br&gt;
&amp;gt; % Now find the boundaries&lt;br&gt;
&amp;gt; [boundaries, labeledImage] = bwboundaries(binaryImage,'noholes');&lt;br&gt;
&amp;gt; % Display them over the original image.&lt;br&gt;
&amp;gt; subplot(3,1, 3);&lt;br&gt;
&amp;gt; imshow(rgbImage);&lt;br&gt;
&amp;gt; hold on; % Don't let plot() blow away our image.&lt;br&gt;
&amp;gt; title('Original image with boundaries.');&lt;br&gt;
&amp;gt; for k = 1:length(boundaries)&lt;br&gt;
&amp;gt;     thisBoundary = boundaries{k};&lt;br&gt;
&amp;gt;     plot(thisBoundary(:,2), thisBoundary(:,1), 'w', 'LineWidth', 2)&lt;br&gt;
&amp;gt; end&lt;br&gt;
&amp;gt; % Maximize window.&lt;br&gt;
&amp;gt; set(gcf, 'Position', get(0, 'ScreenSize')); % Maximize figure.&lt;br&gt;
&lt;br&gt;
IA  is at again with another load of bloated crap code!  this looks like something out of a textbook or matlab example tutorial, lame!&lt;br&gt;
&lt;br&gt;
go here&lt;br&gt;
&lt;a href=&quot;http://www.csse.uwa.edu.au/~pk/Research/MatlabFns/&quot;&gt;http://www.csse.uwa.edu.au/~pk/Research/MatlabFns/&lt;/a&gt;&lt;br&gt;
&lt;br&gt;
scroll down find what you need</description>
    </item>
    <item>
      <pubDate>Fri, 14 Aug 2009 01:37:40 -0400</pubDate>
      <title>Re: image processing</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/258178#673098</link>
      <author>ImageAnalyst</author>
      <description>Chaos:&lt;br&gt;
The only crap I would ever post is if I included your prior response.&lt;br&gt;
We've been over this before.  If I thought anyone cared about your&lt;br&gt;
opinion then I'd be offended and might feel it necessary to defend&lt;br&gt;
myself again.  Luckily you've made that totally unnecessary.&lt;br&gt;
&lt;br&gt;
You swoop in here every few months with a few of your insults and&lt;br&gt;
unhelpful comments, while I'm here helping every day.  Matthew did not&lt;br&gt;
ask for your opinion of my code - in fact he thanked me for my code.&lt;br&gt;
Quit while you're ahead (if you can call it that).  With every insult&lt;br&gt;
and snide remark you hurl (and I'm not your only target) you just&lt;br&gt;
damage your reputation even further.&lt;br&gt;
ImageAnalyst</description>
    </item>
    <item>
      <pubDate>Fri, 14 Aug 2009 14:41:04 -0400</pubDate>
      <title>Re: image processing</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/258178#673228</link>
      <author>Mathew Thomas</author>
      <description>Chill guys!!!&lt;br&gt;
&lt;br&gt;
ImageAnalyst, the program you send really helped me out...I spend hours trying to figure it out and you replied in like 10 minutes. And Chaos, thanks for your help too, but you can do it in a nice way...If you feel you are a great programmer, help others as you did, but without undermining others.....&lt;br&gt;
&lt;br&gt;
Good luck guys!!!&lt;br&gt;
&lt;br&gt;
Matt&lt;br&gt;
&lt;br&gt;
ImageAnalyst &amp;lt;imageanalyst@mailinator.com&amp;gt; wrote in message &amp;lt;39a4b1f6-5198-4a95-b68c-deb80e856484@o6g2000yqj.googlegroups.com&amp;gt;...&lt;br&gt;
&amp;gt; Chaos:&lt;br&gt;
&amp;gt; The only crap I would ever post is if I included your prior response.&lt;br&gt;
&amp;gt; We've been over this before.  If I thought anyone cared about your&lt;br&gt;
&amp;gt; opinion then I'd be offended and might feel it necessary to defend&lt;br&gt;
&amp;gt; myself again.  Luckily you've made that totally unnecessary.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; You swoop in here every few months with a few of your insults and&lt;br&gt;
&amp;gt; unhelpful comments, while I'm here helping every day.  Matthew did not&lt;br&gt;
&amp;gt; ask for your opinion of my code - in fact he thanked me for my code.&lt;br&gt;
&amp;gt; Quit while you're ahead (if you can call it that).  With every insult&lt;br&gt;
&amp;gt; and snide remark you hurl (and I'm not your only target) you just&lt;br&gt;
&amp;gt; damage your reputation even further.&lt;br&gt;
&amp;gt; ImageAnalyst</description>
    </item>
  </channel>
</rss>

