Path: news.mathworks.com!newsfeed-00.mathworks.com!news.kjsl.com!feeder.erje.net!eu.feeder.erje.net!news.albasani.net!rt.uk.eu.org!aioe.org!.POSTED!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Assignment has more non-singleton rhs dimensions than non-singleton
 subscripts
Date: Sun, 07 Jul 2013 09:49:14 -0500
Organization: Aioe.org NNTP Server
Lines: 26
Message-ID: <krbv57$in1$1@speranza.aioe.org>
References: <krbpol$2cf$1@newscl01ah.mathworks.com>
NNTP-Posting-Host: 6z92ouJs6jUrQzBaNtLMgA.user.speranza.aioe.org
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Complaints-To: abuse@aioe.org
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.28) Gecko/20120306 Thunderbird/3.1.20
X-Notice: Filtered by postfilter v. 0.8.2
Xref: news.mathworks.com comp.soft-sys.matlab:798942

On 7/7/2013 8:17 AM, alaa wrote:
> i am trying to use the FrangiFilter2D function on images extracted from
> coronary angiography video, but when i use the function is give this
> error " Assignment has more non-singleton rhs dimensions than
> non-singleton subscripts .
> Error in ==> FrangiFilter2D at 96
> ALLfiltered(:,:,i) = Ifiltered; "
> the code is like this:
> I=double(imread('vessel.jpg'));
> Ivessel=FrangiFilter2D(I);

Need more context, but as the code line shows it's trying to assign to 
the i-th plane in the routine and the target array hasn't been allocated 
sufficient space.

One presumes (the crystal ball is back in shop again) that perhaps it 
decides internally based on the dimensions of the input or some other 
optional (omitted) parameters what the number of planes should be and 
you've not met the expectations in that regard...

No luck trying to find 'FrangiFilter2D' in the TMW doc's, so you're 
pretty much on your own as to what it is/does unless can point cs-sm 
readers to something.

--