Path: news.mathworks.com!not-for-mail
From: "us " <us@neurol.unizh.ch>
Newsgroups: comp.soft-sys.matlab
Subject: Re: How to Change the specified pixel value of an image?
Date: Tue, 6 May 2008 08:57:04 +0000 (UTC)
Organization: Universit&#228;tsSpital Z&#252;rich
Lines: 18
Message-ID: <fvp6h0$2rp$1@fred.mathworks.com>
References: <fvp5ok$m4l$1@fred.mathworks.com>
Reply-To: "us " <us@neurol.unizh.ch>
NNTP-Posting-Host: webapp-03-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1210064224 2937 172.30.248.38 (6 May 2008 08:57:04 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Tue, 6 May 2008 08:57:04 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 11
Xref: news.mathworks.com comp.soft-sys.matlab:466857


"Dawn ":
<SNIP a matter of logic...

one of the many solutions

% the images
     a=zeros(4); % the original...
     a(2,:)=1;
     b=a;
     b(2,[1,end])=0;
     b(3,:)=1; % the processed...
% the engine
     c=b;
     c(a&b)=0;
% the result
     a,b,c

us