Got Questions? Get Answers.
Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
Assignment has more non-singleton rhs dimensions than non-singleton subscripts

Subject: Assignment has more non-singleton rhs dimensions than non-singleton subscripts

From: alaa

Date: 7 Jul, 2013 13:17:09

Message: 1 of 4

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);

Subject: Assignment has more non-singleton rhs dimensions than non-singleton

From: dpb

Date: 7 Jul, 2013 14:49:14

Message: 2 of 4

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.

--

Subject: Assignment has more non-singleton rhs dimensions than non-singleton subscripts

From: Steven_Lord

Date: 8 Jul, 2013 15:04:05

Message: 3 of 4



"alaa " <toto.tatiana@yahoo.com> wrote in message
news:krbpol$2cf$1@newscl01ah.mathworks.com...
> 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);

When you reach line 96 of FrangiFilter2D, the variable Ifiltered is likely a
3D array (assuming vessel.jpg is a truecolor M-by-N-by-3 image)

http://www.mathworks.com/help/images/image-types-in-the-toolbox.html

You're trying to fit it into a piece of ALLfiltered that only has two
nonsingleton dimensions. You can't fit a truecolor 3D array into an
essentially 2D slice of another 3D array. It would be like trying to fit a
Lego block into a rectangular hole in a sheet of paper; the Lego block would
stick out from the page.

--
Steve Lord
slord@mathworks.com
To contact Technical Support use the Contact Us link on
http://www.mathworks.com

Subject: Assignment has more non-singleton rhs dimensions than

From: bonecrusher052@gmail.com

Date: 10 Oct, 2013 00:58:04

Message: 4 of 4

On Sunday, July 7, 2013 9:17:09 AM UTC-4, 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);

Tags for this Thread

No tags are associated with this thread.

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us