<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/237330</link>
    <title>MATLAB Central Newsreader - ignore part of an image</title>
    <description>Feed for thread: ignore part of an image</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>Fri, 10 Oct 2008 14:44:04 -0400</pubDate>
      <title>ignore part of an image</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/237330#604649</link>
      <author>Dave Brackett</author>
      <description>Hi, I am doing some simple image processing and my first stage is to crop an image which I do as follows:&lt;br&gt;
&lt;br&gt;
% user crop image to just the region of interest&lt;br&gt;
[cropped_image,rect]=imcrop(video_snapshot);&lt;br&gt;
axes(handles.axes5)&lt;br&gt;
imshow(cropped_image)&lt;br&gt;
disp(rect)&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
I then want to be able to select a rectangular part of the cropped image to be ignored, the part being defined by the user as follows:&lt;br&gt;
&lt;br&gt;
% user select part to ignore&lt;br&gt;
ignore=imrect;&lt;br&gt;
position=wait(ignore);&lt;br&gt;
disp(position)&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
The question I now have is how can I alter the cropped_image from step 1 so that the selected part from step 2 is removed (or coloured white), and thereby ignored? &lt;br&gt;
&lt;br&gt;
Hope that makes sense. I would have thought it would be quite simple but can't work out how to do it. Thanks.</description>
    </item>
  </channel>
</rss>

