Skip to content

Commit

Permalink
Fix commented-out rectangle to still work in matlab.
Browse files Browse the repository at this point in the history
Code runs on octave3.4.0 and ubuntu64, even with opencv2.1, I see the pictures! Will test more later.
  • Loading branch information
bilderbuchi committed Apr 13, 2011
1 parent 3aa8cef commit cbf65c3
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion bbox/bb_draw.m
Expand Up @@ -27,7 +27,13 @@ function bb_draw(bb1,varargin)
for i = 1:length(idx)
bb = bb1(:,idx(i));
if bb(3)-bb(1) > 0 && bb(4)-bb(2)>0
%rectangle('Position',[bb(1) bb(2) bb(3)-bb(1) bb(4)-bb(2)],varargin{:})
if exist('OCTAVE_VERSION')
% do nothing
% in the future draw rectangle manually. no additional properties given yet
% not working yet: line([bb(1),bb(3)],[bb(2),bb(4)])...
else
rectangle('Position',[bb(1) bb(2) bb(3)-bb(1) bb(4)-bb(2)],varargin{:})
end

if size(bb,1) == 5
cp = bb_center(bb);
Expand Down

0 comments on commit cbf65c3

Please sign in to comment.