reason for this error??

1 次查看(过去 30 天)
supriya
supriya 2012-4-20
Plzz tell me what's wrong with this code?? I want to perform text filtering on my image and want to remove all the non-letter elements.. What else can i do to achieve this??
cc= bwconncomp(Bgmclose);
>> L=labelmatrix(cc);
>> props=regionprops(cc,'BoundingBox');
>> idx=([props.BoundingBox(3)]<0.5);
??? Field reference for multiple structure elements that is followed
by more reference blocks is an error.

采纳的回答

Walter Roberson
Walter Roberson 2012-4-20
bb = vertcat(probs.BoundingBox);
idx = bb(:,3) <0.5;
  5 个评论
Walter Roberson
Walter Roberson 2012-4-20
What is the "center width" or "center height" of a bounding box?
find( 0.1 < bb(:,3) & bb(:,3) < 0.9 & 0.3 < bb(:,4) & bb(:,4) < 0.7)
supriya
supriya 2012-4-20
I got it..thanxxx it was really very helpful!

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Annotations 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by