Delete / Löschen
phalgun pandya
12.04.2011 - 13:36

Field reference for multiple structure elements that is followed by more reference blocks is an error. >>

Help me out
I am using this code:
b=regionprops(LabelMatrix,'BoundingBox')

now when i use

b.BoundingBox; results are upto the mark
b(1).BoundingBox; results are upto the mark
b(1).BoundingBox(3); results are upto the mark


b(1).BoundingBox(3)/b(1).BoundingBox(4) ;results are upto the mark

but when i use

b.BoundingBox(3)/b.BoundingBox(4);
it gives the following error
" Field reference for multiple structure elements that is followed by more reference blocks is an error."

"Matt J "
12.04.2011 - 15:12
phalgun pandya <montyjust4.u@gmail.com> wrote in message <4df74dcc-189e-41b5-8a0a-a9a01b4f8e50@glegroupsg2000goo.googlegroups.com>...

b.BoundingBox(3)/b.BoundingBox(4);
it gives the following error
" Field reference for multiple structure elements that is followed by more reference blocks is an error."
====================

Correct. You cannot do this. My guess is that you might be trying to get

bbox = vertcat(b.BoundingBox);
bbox(:,3)./bbox(:,4),

phalgun pandya
13.04.2011 - 10:54
On Apr 12, 6:120pm, "Matt J " <mattjacREM...@THISieee.spam> wrote:
phalgun pandya <montyjust...@gmail.com> wrote in message <4df74dcc-189e-4=
1b5-8a0a-a9a01b4f8...@glegroupsg2000goo.googlegroups.com>...

> b.BoundingBox(3)/b.BoundingBox(4);
> it gives the following error
> " Field reference for multiple structure elements that is followed by m=
ore reference blocks is an error."

DDDDDDDDDDDDDDDDDDDD

Correct. You cannot do this. 0My guess is that you might be trying to g=
et

bbox D vertcat(b.BoundingBox);
0bbox(:,3)./bbox(:,4),

thanks it worked for me





Share/Bookmark

<