Path: news.mathworks.com!newsfeed-00.mathworks.com!newsfeed2.dallas1.level3.net!news.level3.com!postnews.google.com!t19g2000prd.googlegroups.com!not-for-mail
From: ImageAnalyst <imageanalyst@mailinator.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: problem with imreconstruct
Date: Sat, 26 Feb 2011 07:37:04 -0800 (PST)
Organization: http://groups.google.com
Lines: 20
Message-ID: <9ff53d22-3866-4066-bb65-c3f5804317ff@t19g2000prd.googlegroups.com>
References: <ijpaam$9ep$1@fred.mathworks.com> <9dd6a81c-bf21-40dc-a7b8-9844bc58fa4c@z3g2000prz.googlegroups.com>
 <7962c764-6cf2-4fbc-99f9-4d39c198c0f9@y4g2000prh.googlegroups.com> <ikaopg$h85$1@fred.mathworks.com>
NNTP-Posting-Host: 184.57.134.178
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
X-Trace: posting.google.com 1298734625 21471 127.0.0.1 (26 Feb 2011 15:37:05 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Sat, 26 Feb 2011 15:37:05 +0000 (UTC)
Complaints-To: groups-abuse@google.com
Injection-Info: t19g2000prd.googlegroups.com; posting-host=184.57.134.178; posting-account=0rLUzAkAAABojYSRC64DkTbtiSCX77HH
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.13)
 Gecko/20101203 Firefox/3.6.13,gzip(gfe)
Xref: news.mathworks.com comp.soft-sys.matlab:712566

On Feb 26, 6:39 am, "Ferrari P. " <tkitt...@gmail.com> wrote:
> Dear ImageAnalyst,
>
> I am using Matlab209b version and getting this error:
>
> ??? Error using ==> imreconstructmex
> MARKER pixels must be <= MASK pixels.
>
> Error in ==>imreconstruct at 71
>   im =  imreconstructmex(marker,mask);
>
> Even, I checked the marker and mask sizes. They are both logical and 256x256. Have you any suggestions to get rid of this error ?
> thanks
------------------------------------------------------------------------------
Give a small demo, for example using the cameraman demo image.  Read
it in, threshold it, erode it with imerode, then reconstruct it.  Post
your code here and let me know how it goes.