Skip to content

Commit

Permalink
Update bbApply.m
Browse files Browse the repository at this point in the history
  • Loading branch information
una-dinosauria committed Feb 10, 2015
1 parent 0a03b3f commit 65d9b06
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion detector/bbApply.m
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,7 @@
for b=1:n
M=char2img(sprintf('%.4g',bb(b,5)),fh); M=M{1}==0; [h,w]=size(M);
y0=bb(b,2); y1=y0+h-1; x0=bb(b,1); x1=x0+w-1;
if( x0>=1 && y0>=1 && x1<=size(I,2) && y1<=size(I,2))
if( x0>=1 && y0>=1 && x1<=size(I,2) && y1<=size(I,1))
Ir=I(y0:y1,x0:x1,1); Ig=I(y0:y1,x0:x1,2); Ib=I(y0:y1,x0:x1,3);
Ir(M)=fcol(b,1); Ig(M)=fcol(b,2); Ib(M)=fcol(b,3);
I(y0:y1,x0:x1,:)=cat(3,Ir,Ig,Ib);
Expand Down

0 comments on commit 65d9b06

Please sign in to comment.