Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: combine image parts
Date: Sun, 26 Jul 2009 18:18:01 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 22
Message-ID: <h4i6kp$ijd$1@fred.mathworks.com>
References: <h4bv2g$ac0$1@fred.mathworks.com> <701f52c0-8ab6-4b0a-ac88-7dec944aa8ce@n11g2000yqb.googlegroups.com> <h4fgav$k3q$1@fred.mathworks.com> <h4fi8p$msr$1@fred.mathworks.com> <h4fjv5$d7q$1@fred.mathworks.com> <h4hmf9$6v3$1@fred.mathworks.com> <h4hr5a$7vl$1@fred.mathworks.com> <h4i1up$13i$1@fred.mathworks.com> <h4i2a1$r36$1@fred.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: webapp-02-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1248632281 19053 172.30.248.37 (26 Jul 2009 18:18:01 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Sun, 26 Jul 2009 18:18:01 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1916313
Xref: news.mathworks.com comp.soft-sys.matlab:558434


"us " <us@neurol.unizh.ch> wrote in message <h4i2a1$r36$1@fred.mathworks.com>...
> "Brian J."
> > Dear "us", thanks a lot, but when I use  img=phantom(256); then I could not see the result :((
> 
> you must learn to be a bit more ML-self-contained, as well...
> eg, what do you get with these
> 
>      size(img)
>      r=[min(img(:)),max(img(:))]
> % compare the results with those obtained from the IMG created in the solution...
> 
> us

Let's assume that

img=imread('cameraman.tif');  or i  mg=phantom(64);
then we divide this image with the above code. And then when we add the following code to binarization;

binaryImage=im2bw(simg, graythresh(simg)); 
figure; imshow(binaryImage);

then we are getting error which is very strange, we could not solve this error :(